From be2479222f3bb666f56a9da82bcfcf2eeb6534cb Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 11 May 2019 22:35:56 +0000 Subject: [PATCH] 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. --- time.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)) { -- 2.40.0