strace/xlat/clocknames.in
Dmitry V. Levin 4e0c0becf9 time: use indexed lookups
* defs.h (xlat_idx): New prototype.
* xlat.c (xlat_idx): Remove static qualifier.
* time.c (do_adjtimex): Use xlat_idx instead of xlookup.
(SYS_FUNC(getitimer), SYS_FUNC(setitimer)): Use printxval_index
instead of printxval.
[ALPHA] (SYS_FUNC(osf_getitimer), SYS_FUNC(osf_setitimer)): Likewise.
(printclockname) [CLOCKID_TO_FD]: Likewise.
* xlat/adjtimex_state.in: Add "#value_indexed" directive.
* xlat/clocknames.in: Likewise.
* xlat/cpuclocknames.in: Add "#value_indexed" directive, add default
values to constants.
* xlat/itimer_which.in: Likewise.
2018-05-15 21:41:47 +00:00

14 lines
269 B
Plaintext

#value_indexed
CLOCK_REALTIME 0
CLOCK_MONOTONIC 1
CLOCK_PROCESS_CPUTIME_ID 2
CLOCK_THREAD_CPUTIME_ID 3
CLOCK_MONOTONIC_RAW 4
CLOCK_REALTIME_COARSE 5
CLOCK_MONOTONIC_COARSE 6
CLOCK_BOOTTIME 7
CLOCK_REALTIME_ALARM 8
CLOCK_BOOTTIME_ALARM 9
CLOCK_SGI_CYCLE 10
CLOCK_TAI 11