10 /* Open Group Base Specifications Issue 6 (not complete) */
13 long /*time_t*/ tv_sec
;
14 long /*useconds_t*/ tv_usec
;
18 int tz_minuteswest
; /* minutes west of Greenwich */
19 int tz_dsttime
; /* type of dst correction */
22 /* Operations on timevals. */
23 #define timerclear(tp) (tp)->tv_sec = (tp)->tv_usec = 0L
24 #define timerisset(tp) ((tp)->tv_sec || (tp)->tv_usec)
26 int gettimeofday(struct timeval
*_RESTRICT tp
, void *_RESTRICT tzp
);
28 /* Compatibility with other Unix systems */
29 int settimeofday(const struct timeval
*tp
, const void *tzp
);
31 /* setitimer/getitimer interface */
34 struct timeval it_interval
;
35 struct timeval it_value
;
39 #define ITIMER_VIRTUAL 1 /* Not implemented */
40 #define ITIMER_PROF 2 /* Not implemented */
42 int getitimer(int which
, struct itimerval
*value
);
43 int setitimer(int which
, const struct itimerval
*_RESTRICT value
,
44 struct itimerval
*_RESTRICT ovalue
);
46 #include <sys/select.h>
48 #endif /* _SYS__TIME_H */