blob: 62fb7df185d60380c877f845f2878b22225ca4bf [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
Elliott Hughes3503ce22013-11-05 13:28:36 -080019#ifndef _UAPI_LINUX_TIME_H
20#define _UAPI_LINUX_TIME_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/types.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022#ifndef _STRUCT_TIMESPEC
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define _STRUCT_TIMESPEC
25struct timespec {
Elliott Hughes3503ce22013-11-05 13:28:36 -080026 __kernel_time_t tv_sec;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027 long tv_nsec;
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029};
30#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031struct timeval {
Elliott Hughes3503ce22013-11-05 13:28:36 -080032 __kernel_time_t tv_sec;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes3503ce22013-11-05 13:28:36 -080034 __kernel_suseconds_t tv_usec;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036struct timezone {
37 int tz_minuteswest;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 int tz_dsttime;
40};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041#define ITIMER_REAL 0
42#define ITIMER_VIRTUAL 1
Elliott Hughes3503ce22013-11-05 13:28:36 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define ITIMER_PROF 2
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045struct itimerspec {
46 struct timespec it_interval;
47 struct timespec it_value;
Elliott Hughes3503ce22013-11-05 13:28:36 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080050struct itimerval {
51 struct timeval it_interval;
52 struct timeval it_value;
Elliott Hughes3503ce22013-11-05 13:28:36 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055#define CLOCK_REALTIME 0
56#define CLOCK_MONOTONIC 1
57#define CLOCK_PROCESS_CPUTIME_ID 2
Elliott Hughes3503ce22013-11-05 13:28:36 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define CLOCK_THREAD_CPUTIME_ID 3
Elliott Hughes3503ce22013-11-05 13:28:36 -080060#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
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080067#define CLOCK_SGI_CYCLE 10
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes3503ce22013-11-05 13:28:36 -080069#define CLOCK_TAI 11
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080070#define MAX_CLOCKS 16
71#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
72#define CLOCKS_MONO CLOCK_MONOTONIC
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes3503ce22013-11-05 13:28:36 -080074#define TIMER_ABSTIME 0x01
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#endif