X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Fsys%2Ftime.h;h=79e40138bf0fead598682fc196efe2d58ed3bb35;hb=e7a76b0d8a0cc6aa77966509780973a6f8216ef7;hp=5cd28762c22fbe2b51fbb100cfac1ff91d9d34ec;hpb=d0b4559f2936f6d9f06be0f7c3c51527a480ec0d;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h b/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h index 5cd28762..79e40138 100644 --- a/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h +++ b/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h @@ -8,6 +8,8 @@ #ifndef _LIBPOSIX__SYS__TIME_H_ #define _LIBPOSIX__SYS__TIME_H_ +#include + typedef unsigned long suseconds_t; struct timeval @@ -16,6 +18,28 @@ struct timeval suseconds_t tv_usec; }; +// struct timezone . tz_dsttime +enum +{ + DST_NONE, // No DST + DST_USA, // USA style DST + DST_AUST, // Australian style DST + DST_WET, // Western European DST + DST_MET, // Middle European DST + DST_EET, // Eastern European DST + DST_CAN, // Canada + DST_GB, // Great Britain and Eire + DST_RUM, // Rumania + DST_TUR, // Turkey + DST_AUSTALT, // Australia with 1986 shift +}; + +struct timezone +{ + int tz_minuteswest; + int tz_dsttime; +}; + struct itimerval { struct timeval it_interval; @@ -24,9 +48,10 @@ struct itimerval // TODO: This should also define fd_set and select() -extern int getitimer(int, struct itimerval *); -extern int setitimer(int, const struct itimerval *, struct itimerval *); -extern int gettimeofday(struct timeval *, void *); +extern int getitimer(int which, struct itimerval *current_value); +extern int setitimer(int which, const struct itimerval *new_value, struct itimerval *old_value); +extern int gettimeofday(struct timeval *tv, struct timezone *tz); +// extern int settimeofday(const struct timeval *tv, const struct timezone *tz); //ifdef _BSD_SOURCE // select extern int utimes(const char *, const struct timeval [2]);