This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Refactor adjtimex based on clock_adjtime
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org, Alistair Francis <alistair23 at gmail dot com>
- Date: Thu, 31 Oct 2019 09:48:38 +0100
- Subject: Re: [PATCH] Refactor adjtimex based on clock_adjtime
- References: <20191030202517.4805-1-adhemerval.zanella@linaro.org>
* Adhemerval Zanella:
> diff --git a/sysdeps/unix/sysv/linux/adjtimex.c b/sysdeps/unix/sysv/linux/adjtimex.c
> index 6d62c72a17..95be503109 100644
> --- a/sysdeps/unix/sysv/linux/adjtimex.c
> +++ b/sysdeps/unix/sysv/linux/adjtimex.c
> @@ -22,7 +22,7 @@
> int
> ___adjtimex (struct timex *buf)
> {
> - return INLINE_SYSCALL_CALL (adjtimex, buf);
> + return __clock_adjtime (CLOCK_REALTIME, buf);
> }
Based on my investigation of the kernel sources, both the old and new
system call eventually call do_adjtimex, so this should be okay.
Thanks,
Florian