1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_TIME_H 8 #define _UAPI_LINUX_TIME_H 9 #include <bits/timespec.h> 10 #include <linux/types.h> 11 #include <linux/time_types.h> 12 #ifndef _STRUCT_TIMESPEC 13 #define _STRUCT_TIMESPEC 14 #endif 15 struct timeval { 16 __kernel_old_time_t tv_sec; 17 __kernel_suseconds_t tv_usec; 18 }; 19 struct itimerspec { 20 struct timespec it_interval; 21 struct timespec it_value; 22 }; 23 struct itimerval { 24 struct timeval it_interval; 25 struct timeval it_value; 26 }; 27 struct timezone { 28 int tz_minuteswest; 29 int tz_dsttime; 30 }; 31 #define ITIMER_REAL 0 32 #define ITIMER_VIRTUAL 1 33 #define ITIMER_PROF 2 34 #define CLOCK_REALTIME 0 35 #define CLOCK_MONOTONIC 1 36 #define CLOCK_PROCESS_CPUTIME_ID 2 37 #define CLOCK_THREAD_CPUTIME_ID 3 38 #define CLOCK_MONOTONIC_RAW 4 39 #define CLOCK_REALTIME_COARSE 5 40 #define CLOCK_MONOTONIC_COARSE 6 41 #define CLOCK_BOOTTIME 7 42 #define CLOCK_REALTIME_ALARM 8 43 #define CLOCK_BOOTTIME_ALARM 9 44 #define CLOCK_SGI_CYCLE 10 45 #define CLOCK_TAI 11 46 #define MAX_CLOCKS 16 47 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) 48 #define CLOCKS_MONO CLOCK_MONOTONIC 49 #define TIMER_ABSTIME 0x01 50 #endif 51