Rev 80 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | /*************************************** |
||
22 | |||
23 | |||
24 | |||
25 | ***************************************/ |
||
26 | |||
27 | /* |
||
80 | pj | 28 | * CVS : $Id: util.h,v 1.2 2003-03-13 13:37:58 pj Exp $ |
2 | pj | 29 | * |
30 | * File: $File$ |
||
80 | pj | 31 | * Revision: $Revision: 1.2 $ |
32 | * Last update: $Date: 2003-03-13 13:37:58 $ |
||
2 | pj | 33 | */ |
34 | |||
35 | /* |
||
36 | * Copyright (C) 1999,2000 Massimiliano Giorgi |
||
37 | * |
||
38 | * This program is free software; you can redistribute it and/or modify |
||
39 | * it under the terms of the GNU General Public License as published by |
||
40 | * the Free Software Foundation; either version 2 of the License, or |
||
41 | * (at your option) any later version. |
||
42 | * |
||
43 | * This program is distributed in the hope that it will be useful, |
||
44 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
45 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
46 | * GNU General Public License for more details. |
||
47 | * |
||
48 | * You should have received a copy of the GNU General Public License |
||
49 | * along with this program; if not, write to the Free Software |
||
50 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
51 | * |
||
52 | */ |
||
53 | |||
54 | #ifndef _FS_UTIL_H |
||
55 | #define _FS_UTIL_H |
||
56 | |||
57 | #include <fs/types.h> |
||
58 | #include <fs/stdarg.h> |
||
59 | |||
1689 | fabio | 60 | #include <arch/i386/stdio.h> |
61 | //#include <arch/string.h> strcasecmp moved!!! |
||
2 | pj | 62 | #include <string.h> |
1689 | fabio | 63 | #include <arch/stdlib.h> |
2 | pj | 64 | |
65 | #include <kernel/log.h> |
||
1689 | fabio | 66 | #include <arch/sys/cdefs.h> |
2 | pj | 67 | |
80 | pj | 68 | __BEGIN_DECLS |
69 | |||
2 | pj | 70 | #define panic(x) sys_panic(x) |
71 | |||
72 | /* local time, number of seconds since the Epoch (0:0:0 1 Gen 1970 GMT) */ |
||
73 | /* must be in sync with <drivers/rtc.h> */ |
||
74 | extern __time_t sys_getdate(void); |
||
75 | #define gettimek() sys_getdate() |
||
76 | |||
77 | /* all in usec */ |
||
78 | //extern void __delayk(int usec); |
||
79 | //extern long __gettimer(void); |
||
80 | pj | 80 | |
81 | __END_DECLS |
||
2 | pj | 82 | #endif |