From 215568ce97357cc64a6b05ffe01b2943ca3c1a15 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 10 May 2019 22:27:59 +0000 Subject: [PATCH] Implement printer for kernel_timex64_t This is going to be used to implement clock_adjtime64 parser. * defs.h (kernel_timex64_t): New prototype. * print_timex.c (print_timex64): New function. --- defs.h | 1 + print_timex.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/defs.h b/defs.h index 24838c73..1cb7a755 100644 --- a/defs.h +++ b/defs.h @@ -1129,6 +1129,7 @@ extern int print_timespec64(struct tcb *, kernel_ulong_t); extern const char *sprint_timespec64(struct tcb *, kernel_ulong_t); extern int print_timespec64_utime_pair(struct tcb *, kernel_ulong_t); extern int print_itimerspec64(struct tcb *, kernel_ulong_t); +extern int print_timex64(struct tcb *, kernel_ulong_t); # ifdef ALPHA typedef struct { diff --git a/print_timex.c b/print_timex.c index ddd2d67d..9c0f0941 100644 --- a/print_timex.c +++ b/print_timex.c @@ -56,6 +56,12 @@ MPERS_PRINTER_DECL(int, print_timex, # include "kernel_timex.h" +# define PRINT_TIMEX print_timex64 +# define TIMEX_T kernel_timex64_t +# include "print_timex.h" +# undef TIMEX_T +# undef PRINT_TIMEX + # if HAVE_ARCH_TIME32_SYSCALLS # define PRINT_TIMEX print_timex32 -- 2.40.0