xref: /aosp_15_r20/external/ltp/include/lapi/posix_clocks.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker /*
3*49cdfc7eSAndroid Build Coastguard Worker  * Copyright (c) 2019, Linux Test Project
4*49cdfc7eSAndroid Build Coastguard Worker  * Copyright (c) 2013 Cyril Hrubis <[email protected]>
5*49cdfc7eSAndroid Build Coastguard Worker  */
6*49cdfc7eSAndroid Build Coastguard Worker 
7*49cdfc7eSAndroid Build Coastguard Worker #include <time.h>
8*49cdfc7eSAndroid Build Coastguard Worker 
9*49cdfc7eSAndroid Build Coastguard Worker #ifndef LAPI_POSIX_CLOCKS_H__
10*49cdfc7eSAndroid Build Coastguard Worker #define LAPI_POSIX_CLOCKS_H__
11*49cdfc7eSAndroid Build Coastguard Worker 
12*49cdfc7eSAndroid Build Coastguard Worker #define MAX_CLOCKS 16
13*49cdfc7eSAndroid Build Coastguard Worker 
14*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_MONOTONIC_RAW
15*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_MONOTONIC_RAW 4
16*49cdfc7eSAndroid Build Coastguard Worker #endif
17*49cdfc7eSAndroid Build Coastguard Worker 
18*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_REALTIME_COARSE
19*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_REALTIME_COARSE 5
20*49cdfc7eSAndroid Build Coastguard Worker #endif
21*49cdfc7eSAndroid Build Coastguard Worker 
22*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_MONOTONIC_COARSE
23*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_MONOTONIC_COARSE 6
24*49cdfc7eSAndroid Build Coastguard Worker #endif
25*49cdfc7eSAndroid Build Coastguard Worker 
26*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_BOOTTIME
27*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_BOOTTIME 7
28*49cdfc7eSAndroid Build Coastguard Worker #endif
29*49cdfc7eSAndroid Build Coastguard Worker 
30*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_REALTIME_ALARM
31*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_REALTIME_ALARM 8
32*49cdfc7eSAndroid Build Coastguard Worker #endif
33*49cdfc7eSAndroid Build Coastguard Worker 
34*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_BOOTTIME_ALARM
35*49cdfc7eSAndroid Build Coastguard Worker # define CLOCK_BOOTTIME_ALARM 9
36*49cdfc7eSAndroid Build Coastguard Worker #endif
37*49cdfc7eSAndroid Build Coastguard Worker 
38*49cdfc7eSAndroid Build Coastguard Worker #ifndef CLOCK_TAI
39*49cdfc7eSAndroid Build Coastguard Worker #define CLOCK_TAI 11
40*49cdfc7eSAndroid Build Coastguard Worker #endif
41*49cdfc7eSAndroid Build Coastguard Worker 
42*49cdfc7eSAndroid Build Coastguard Worker #endif /* LAPI_POSIX_CLOCKS_H__ */
43