This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Refactor adjtimex based on clock_adjtime


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]