* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / lcc-4.2 / include / sparc / solaris / time.h
blob6b7a3c1c4c58f7dcba66b51de13b13d30c9f6931
1 #ifndef __TIME
2 #define __TIME
4 #define CLOCKS_PER_SEC 1000000
5 #ifndef NULL
6 #define NULL ((void*)0)
7 #endif
9 #if !defined(_CLOCK_T) && !defined(_CLOCK_T_) && !defined(_CLOCK_T_DEFINED)
10 #define _CLOCK_T
11 #define _CLOCK_T_
12 #define _CLOCK_T_DEFINED
13 typedef long clock_t;
14 #endif
16 #if !defined(_TIME_T) && !defined(_TIME_T_) && !defined(_TIME_T_DEFINED)
17 #define _TIME_T
18 #define _TIME_T_
19 #define _TIME_T_DEFINED
20 typedef long time_t;
21 #endif
23 #if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
24 #define _SIZE_T
25 #define _SIZE_T_
26 #define _SIZE_T_DEFINED
27 typedef unsigned long size_t;
28 #endif
30 struct tm {
31 int tm_sec;
32 int tm_min;
33 int tm_hour;
34 int tm_mday;
35 int tm_mon;
36 int tm_year;
37 int tm_wday;
38 int tm_yday;
39 int tm_isdst;
41 extern clock_t clock(void);
42 extern double difftime(time_t, time_t);
43 extern time_t mktime(struct tm *);
44 extern time_t time(time_t *);
45 extern char *asctime(const struct tm *);
46 extern char *ctime(const time_t *);
47 extern struct tm *gmtime(const time_t *);
48 extern struct tm *localtime(const time_t *);
49 extern size_t strftime(char *, size_t, const char *, const struct tm *);
51 #endif /* __TIME */