make includes fix from trunk
[minix.git] / include / sys / time.h
blob00bb13235f353be3806428a3c411bfcf55a26d58
1 /*
2 sys/time.h
3 */
5 #ifndef _SYS__TIME_H
6 #define _SYS__TIME_H
8 #include <ansi.h>
10 /* Open Group Base Specifications Issue 6 (not complete) */
11 struct timeval
13 long /*time_t*/ tv_sec;
14 long /*useconds_t*/ tv_usec;
17 struct timezone {
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 */
32 struct itimerval
34 struct timeval it_interval;
35 struct timeval it_value;
38 #define ITIMER_REAL 0
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 */