X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibposix.so_src%2Finclude_exp%2Fsys%2Ftime.h;h=cef859bbaeff548385f63e7a6fe82173a88ec4e6;hb=7f2068235fabc311332962711cd3220ce8ee2638;hp=7a734a5a184119aabd22e6acdf1b59c1f36958cf;hpb=e91f60e14b8857312238d729fa580d6ab44ba27a;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 7a734a5a..cef859bb 100644 --- a/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h +++ b/Usermode/Libraries/libposix.so_src/include_exp/sys/time.h @@ -10,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + typedef unsigned long suseconds_t; struct timeval @@ -18,6 +22,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; @@ -26,11 +52,16 @@ 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]); +#ifdef __cplusplus +} +#endif + #endif