1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/types.h>
17 #ifndef _STRUCT_TIMESPEC
18 #define _STRUCT_TIMESPEC
35 #define NFDBITS __NFDBITS
37 #define FD_SETSIZE __FD_SETSIZE
38 #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp)
39 #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp)
40 #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp)
41 #define FD_ZERO(fdsetp) __FD_ZERO(fdsetp)
44 #define ITIMER_VIRTUAL 1
48 struct timespec it_interval;
49 struct timespec it_value;
53 struct timeval it_interval;
54 struct timeval it_value;
57 #define CLOCK_REALTIME 0
58 #define CLOCK_MONOTONIC 1
59 #define CLOCK_PROCESS_CPUTIME_ID 2
60 #define CLOCK_THREAD_CPUTIME_ID 3
62 #define CLOCK_SGI_CYCLE 10
64 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
65 #define CLOCKS_MONO CLOCK_MONOTONIC
67 #define TIMER_ABSTIME 0x01