Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentime.h
Go to the documentation of this file.
00001 00007 #ifndef _SYS_TIME_H_ 00008 #define _SYS_TIME_H_ 00009 00010 #include <time.h> 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 #ifndef __STRICT_ANSI__ 00017 #ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */ 00018 #define _TIMEVAL_DEFINED 00019 struct timeval { 00020 long tv_sec; 00021 long tv_usec; 00022 }; 00023 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 00024 #define timercmp(tvp, uvp, cmp) \ 00025 (((tvp)->tv_sec != (uvp)->tv_sec) ? \ 00026 ((tvp)->tv_sec cmp (uvp)->tv_sec) : \ 00027 ((tvp)->tv_usec cmp (uvp)->tv_usec)) 00028 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 00029 #endif /* _TIMEVAL_DEFINED */ 00030 00031 #ifndef _TIMEZONE_DEFINED /* also in sys/time.h */ 00032 #define _TIMEZONE_DEFINED 00033 /* Provided for compatibility with code that assumes that 00034 the presence of gettimeofday function implies a definition 00035 of struct timezone. */ 00036 struct timezone 00037 { 00038 int tz_minuteswest; /* of Greenwich */ 00039 int tz_dsttime; /* type of dst correction to apply */ 00040 }; 00041 00042 extern int __cdecl mingw_gettimeofday (struct timeval *p, struct timezone *z); 00043 00044 #endif 00045 00046 /* 00047 Implementation as per: 00048 The Open Group Base Specifications, Issue 6 00049 IEEE Std 1003.1, 2004 Edition 00050 00051 The timezone pointer arg is ignored. Errors are ignored. 00052 */ 00053 #ifndef _GETTIMEOFDAY_DEFINED 00054 #define _GETTIMEOFDAY_DEFINED 00055 int __cdecl gettimeofday(struct timeval *__restrict__, 00056 void *__restrict__ /* tzp (unused) */); 00057 #endif 00058 00059 #endif /* __STRICT_ANSI__ */ 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif 00064 00065 /* Adding timespec definition. */ 00066 #include <sys/timeb.h> 00067 00068 00069 #endif /* _SYS_TIME_H_ */ Generated on Sun May 27 2012 04:29:50 for ReactOS by
1.7.6.1
|