Browse Source

cleanup namespace in sys/time.h

rs-1.0
Rich Felker 15 years ago
parent
commit
b1b465c438
  1. 9
      include/sys/time.h

9
include/sys/time.h

@ -17,10 +17,7 @@ extern "C" {
int gettimeofday (struct timeval *, void *); int gettimeofday (struct timeval *, void *);
/* extensions */ #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
int settimeofday (const struct timeval *, void *);
int adjtime (const struct timeval *, struct timeval *);
#define ITIMER_REAL 0 #define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1 #define ITIMER_VIRTUAL 1
@ -36,7 +33,11 @@ int getitimer (int, struct itimerval *);
int setitimer (int, const struct itimerval *, struct itimerval *); int setitimer (int, const struct itimerval *, struct itimerval *);
int utimes (const char *, const struct timeval [2]); int utimes (const char *, const struct timeval [2]);
#endif
#ifdef _GNU_SOURCE #ifdef _GNU_SOURCE
int settimeofday (const struct timeval *, void *);
int adjtime (const struct timeval *, struct timeval *);
struct timezone { struct timezone {
int tz_minuteswest; int tz_minuteswest;
int tz_dsttime; int tz_dsttime;

Loading…
Cancel
Save