Move the sources to trunk
[opencv] / apps / Hawk / CVEiCL / EiC / module / stdClib / src / _NETBSD / time.h
1 #define CLOCKS_PER_SEC 100
2
3 #ifndef _EiC
4 #define unsafe 
5 #endif
6
7 #define _need_time_t
8 #define _need_clock_t
9 #include "sys/stdtypes.h"
10 #undef _need_clock_t
11 #undef _need_time_t
12
13 typedef struct timespec {
14         time_t  tv_sec;
15         long    tv_nsec;
16 } timespec_t;
17
18 struct tm {
19         int     tm_sec;         /* seconds after the minute [0-60] */
20         int     tm_min;         /* minutes after the hour [0-59] */
21         int     tm_hour;        /* hours since midnight [0-23] */
22         int     tm_mday;        /* day of the month [1-31] */
23         int     tm_mon;         /* months since January [0-11] */
24         int     tm_year;        /* years since 1900 */
25         int     tm_wday;        /* days since Sunday [0-6] */
26         int     tm_yday;        /* days since January 1 [0-365] */
27         int     tm_isdst;       /* Daylight Savings Time flag */
28         long    tm_gmtoff;      /* offset from CUT in seconds */
29         char    *unsafe tm_zone; /* timezone abbreviation */
30 };
31
32 char *asctime(struct tm *);
33 clock_t clock(void);
34 char *ctime(const time_t *);
35 double difftime(time_t, time_t);
36 struct tm *gmtime(const time_t *);
37 struct tm *localtime(const time_t *);
38 time_t mktime(struct tm *);
39 size_t strftime(char *, size_t bufsize, const char *, const struct tm *);
40 time_t time(time_t *);
41
42 #ifndef _EiC
43 #undef unsafe 
44 #endif