Dmitry V. Levin
4e0c0becf9
* 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.
8 lines
84 B
Plaintext
8 lines
84 B
Plaintext
#value_indexed
|
|
TIME_OK 0
|
|
TIME_INS 1
|
|
TIME_DEL 2
|
|
TIME_OOP 3
|
|
TIME_WAIT 4
|
|
TIME_ERROR 5
|