2 * Acess2 POSIX Emulation
3 * - By John Hodge (thePowersGang)
8 #ifndef _LIBPOSIX__SYS__TIME_H_
9 #define _LIBPOSIX__SYS__TIME_H_
13 typedef unsigned long suseconds_t;
21 // struct timezone . tz_dsttime
25 DST_USA, // USA style DST
26 DST_AUST, // Australian style DST
27 DST_WET, // Western European DST
28 DST_MET, // Middle European DST
29 DST_EET, // Eastern European DST
31 DST_GB, // Great Britain and Eire
34 DST_AUSTALT, // Australia with 1986 shift
45 struct timeval it_interval;
46 struct timeval it_value;
49 // TODO: This should also define fd_set and select()
51 extern int getitimer(int which, struct itimerval *current_value);
52 extern int setitimer(int which, const struct itimerval *new_value, struct itimerval *old_value);
53 extern int gettimeofday(struct timeval *tv, struct timezone *tz);
54 // extern int settimeofday(const struct timeval *tv, const struct timezone *tz); //ifdef _BSD_SOURCE
56 extern int utimes(const char *, const struct timeval [2]);