]> granicus.if.org Git - strace/commit
Convert parser of struct timex to new mpers infrastructure
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Sep 2015 21:58:36 +0000 (21:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 17 Sep 2015 13:25:53 +0000 (13:25 +0000)
commitdad1eef568375be367868a2e3c4783251dbb7627
tree3e160e167302a8de6b33e3d9dabacf6280c51133
parentdd6bf4b6b47b8bf176e9af94195446bdec62889a
Convert parser of struct timex to new mpers infrastructure

* defs.h (adjtimex_modes, adjtimex_status): New xlat prototypes.
* print_timex.c (struct_timex): New typedef.  Mpersify it.
[IN_MPERS]: Do not include "xlat/adjtimex_modes.h"
and "xlat/adjtimex_status.h".
[SUPPORTED_PERSONALITIES > 1]: Remove.
(tprint_timeval): Remove.
(tprint_timex): Rename to print_timex.  Mpersify it.
* time.c (do_adjtimex): Rename tprint_timex to print_timex.
* tests/adjtimex.c: New file.
* tests/adjtimex.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add adjtimex.
(TESTS): Add adjtimex.test.
* tests/.gitignore: Add adjtimex.
defs.h
print_timex.c
tests/.gitignore
tests/Makefile.am
tests/adjtimex.c [new file with mode: 0644]
tests/adjtimex.test [new file with mode: 0755]
time.c