Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_TIME_H |
| 8 | #define _UAPI_LINUX_TIME_H |
Elliott Hughes | 875d405 | 2023-03-20 15:07:16 +0000 | [diff] [blame] | 9 | #include <bits/timespec.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 10 | #include <linux/types.h> |
Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 11 | #include <linux/time_types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #ifndef _STRUCT_TIMESPEC |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #define _STRUCT_TIMESPEC |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 14 | #endif |
| 15 | struct timeval { |
Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 16 | __kernel_old_time_t tv_sec; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 17 | __kernel_suseconds_t tv_usec; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | struct itimerspec { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 20 | struct timespec it_interval; |
| 21 | struct timespec it_value; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | }; |
| 23 | struct itimerval { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | struct timeval it_interval; |
| 25 | struct timeval it_value; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 26 | }; |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 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 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | #define CLOCK_REALTIME 0 |
| 35 | #define CLOCK_MONOTONIC 1 |
| 36 | #define CLOCK_PROCESS_CPUTIME_ID 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 41 | #define CLOCK_BOOTTIME 7 |
| 42 | #define CLOCK_REALTIME_ALARM 8 |
| 43 | #define CLOCK_BOOTTIME_ALARM 9 |
| 44 | #define CLOCK_SGI_CYCLE 10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | #define CLOCK_TAI 11 |
| 46 | #define MAX_CLOCKS 16 |
| 47 | #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC) |
| 48 | #define CLOCKS_MONO CLOCK_MONOTONIC |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 49 | #define TIMER_ABSTIME 0x01 |
| 50 | #endif |