| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 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. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_LINUX_TIME_H | 
|  | 20 | #define _UAPI_LINUX_TIME_H | 
|  | 21 | #include <linux/types.h> | 
|  | 22 | #ifndef _STRUCT_TIMESPEC | 
|  | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 24 | #define _STRUCT_TIMESPEC | 
|  | 25 | struct timespec { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | __kernel_time_t tv_sec; | 
|  | 27 | long tv_nsec; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 29 | }; | 
|  | 30 | #endif | 
|  | 31 | struct timeval { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | __kernel_time_t tv_sec; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | __kernel_suseconds_t tv_usec; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | }; | 
|  | 36 | struct timezone { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 37 | int tz_minuteswest; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | int tz_dsttime; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | }; | 
|  | 41 | #define ITIMER_REAL 0 | 
|  | 42 | #define ITIMER_VIRTUAL 1 | 
|  | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 44 | #define ITIMER_PROF 2 | 
|  | 45 | struct itimerspec { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 46 | struct timespec it_interval; | 
|  | 47 | struct timespec it_value; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 49 | }; | 
|  | 50 | struct itimerval { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | struct timeval it_interval; | 
|  | 52 | struct timeval it_value; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 54 | }; | 
|  | 55 | #define CLOCK_REALTIME 0 | 
|  | 56 | #define CLOCK_MONOTONIC 1 | 
|  | 57 | #define CLOCK_PROCESS_CPUTIME_ID 2 | 
|  | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 59 | #define CLOCK_THREAD_CPUTIME_ID 3 | 
|  | 60 | #define CLOCK_MONOTONIC_RAW 4 | 
|  | 61 | #define CLOCK_REALTIME_COARSE 5 | 
|  | 62 | #define CLOCK_MONOTONIC_COARSE 6 | 
|  | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 64 | #define CLOCK_BOOTTIME 7 | 
|  | 65 | #define CLOCK_REALTIME_ALARM 8 | 
|  | 66 | #define CLOCK_BOOTTIME_ALARM 9 | 
|  | 67 | #define CLOCK_SGI_CYCLE 10 | 
|  | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 69 | #define CLOCK_TAI 11 | 
|  | 70 | #define MAX_CLOCKS 16 | 
|  | 71 | #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) | 
|  | 72 | #define CLOCKS_MONO CLOCK_MONOTONIC | 
|  | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ | 
|  | 74 | #define TIMER_ABSTIME 0x01 | 
|  | 75 | #endif |