1 #ifndef _LINUX_TIME_H
2 #define _LINUX_TIME_H
3
4 struct timespec {
5 long tv_sec;
6 long tv_nsec;
7 };
8
9 struct timeval {
10 int tv_sec;
11 int tv_usec;
12 };
13
14 struct timezone {
15 int tz_minuteswest;
16 int tz_dsttime;
17 };
18
19 #define NFDBITS __NFDBITS
20
21 #ifdef __KERNEL__
22 void do_gettimeofday(struct timeval *tv);
23 void do_settimeofday(struct timeval *tv);
24 #endif
25
26 #define FD_SETSIZE __FD_SETSIZE
27 #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
28 #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
29 #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
30 #define FD_ZERO(fdsetp) __FD_ZERO(fdsetp)
31
32
33
34
35
36 #define ITIMER_REAL 0
37 #define ITIMER_VIRTUAL 1
38 #define ITIMER_PROF 2
39
40 struct itimerspec {
41 struct timespec it_interval;
42 struct timespec it_value;
43 };
44
45 struct itimerval {
46 struct timeval it_interval;
47 struct timeval it_value;
48 };
49
50 #endif