]> granicus.if.org Git - strace/blob - print_timex.c
tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
[strace] / print_timex.c
1 /*
2  * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3  * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4  * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5  * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
6  * Copyright (c) 2015-2019 The strace developers.
7  * All rights reserved.
8  *
9  * SPDX-License-Identifier: LGPL-2.1-or-later
10  */
11
12 #include "defs.h"
13 #include "kernel_timex.h"
14 #include <sys/timex.h>
15
16 #include "xlat/adjtimex_modes.h"
17 #include "xlat/adjtimex_status.h"
18
19
20 #define PRINT_TIMEX print_timex64
21 #define TIMEX_T kernel_timex64_t
22 #include "print_timex.h"
23 #undef TIMEX_T
24 #undef PRINT_TIMEX
25
26 #if HAVE_ARCH_TIME32_SYSCALLS
27
28 # define PRINT_TIMEX print_timex32
29 # define TIMEX_T kernel_timex32_t
30 # include "print_timex.h"
31 # undef TIMEX_T
32 # undef PRINT_TIMEX
33
34 #endif /* HAVE_ARCH_TIME32_SYSCALLS */
35
36 #ifdef SPARC64
37
38 # define PRINT_TIMEX print_sparc64_timex
39 # define TIMEX_T kernel_sparc64_timex_t
40 # include "print_timex.h"
41 # undef TIMEX_T
42 # undef PRINT_TIMEX
43
44 #endif /* SPARC64 */