From: Dmitry V. Levin Date: Sat, 11 May 2019 22:35:56 +0000 (+0000) Subject: Implement parsers of 32-bit adjtimex and clock_adjtime syscalls X-Git-Tag: v5.1~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be2479222f3bb666f56a9da82bcfcf2eeb6534cb;p=strace Implement parsers of 32-bit adjtimex and clock_adjtime syscalls * time.c [HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(adjtimex32), SYS_FUNC(clock_adjtime32)): New functions. --- diff --git a/time.c b/time.c index 982c4675..75e65a52 100644 --- a/time.c +++ b/time.c @@ -169,6 +169,15 @@ SYS_FUNC(adjtimex) return 0; } +#if HAVE_ARCH_TIME32_SYSCALLS +SYS_FUNC(adjtimex32) +{ + if (exiting(tcp)) + return do_adjtimex(tcp, print_timex32, tcp->u_arg[0]); + return 0; +} +#endif + #include "xlat/clockflags.h" #include "xlat/clocknames.h" @@ -287,6 +296,13 @@ SYS_FUNC(clock_adjtime) return do_clock_adjtime(tcp, print_timex); } +#if HAVE_ARCH_TIME32_SYSCALLS +SYS_FUNC(clock_adjtime32) +{ + return do_clock_adjtime(tcp, print_timex32); +} +#endif + SYS_FUNC(timer_create) { if (entering(tcp)) {