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@strace.io>
6 * Copyright (c) 2015-2021 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 PRINT_TIMEX_TIME print_timex64_time
22 #define TIMEX_T kernel_timex64_t
23 #include "print_timex.h"
24 #undef TIMEX_T
25 #undef PRINT_TIMEX_TIME
26 #undef PRINT_TIMEX
27
28 #if HAVE_ARCH_TIME32_SYSCALLS
29
30 # define PRINT_TIMEX print_timex32
31 # define PRINT_TIMEX_TIME print_timex32_time
32 # define TIMEX_T kernel_timex32_t
33 # include "print_timex.h"
34 # undef TIMEX_T
35 # undef PRINT_TIMEX_TIME
36 # undef PRINT_TIMEX
37
38 #endif /* HAVE_ARCH_TIME32_SYSCALLS */
39
40 #ifdef SPARC64
41
42 # define PRINT_TIMEX print_sparc64_timex
43 # define PRINT_TIMEX_TIME print_sparc64_timex_time
44 # define TIMEX_T kernel_sparc64_timex_t
45 # include "print_timex.h"
46 # undef TIMEX_T
47 # undef PRINT_TIMEX_TIME
48 # undef PRINT_TIMEX
49
50 #endif /* SPARC64 */