aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-10-28 14:55:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-10-31 11:09:25 -0300
commitc81aa64e81826c308c4ecbd1982fa086ca6e647b (patch)
tree5c11f548813e9b580ef0b47e1c983154f6d8d816 /sysdeps
parent6b1472eb2ea16f99c4729f975ca25af980ce3894 (diff)
downloadglibc-c81aa64e81826c308c4ecbd1982fa086ca6e647b.tar
glibc-c81aa64e81826c308c4ecbd1982fa086ca6e647b.tar.gz
glibc-c81aa64e81826c308c4ecbd1982fa086ca6e647b.tar.bz2
glibc-c81aa64e81826c308c4ecbd1982fa086ca6e647b.zip
Refactor adjtimex based on clock_adjtime
Checked on x86_64-linux-gnu. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/adjtimex.c2
-rw-r--r--sysdeps/unix/sysv/linux/syscalls.list2
2 files changed, 2 insertions, 2 deletions
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);
}
#ifdef VERSION_adjtimex
diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list
index 70b110979b..603e517ca6 100644
--- a/sysdeps/unix/sysv/linux/syscalls.list
+++ b/sysdeps/unix/sysv/linux/syscalls.list
@@ -4,7 +4,7 @@ alarm - alarm i:i alarm
bdflush EXTRA bdflush i:ii __compat_bdflush bdflush@GLIBC_2.0:GLIBC_2.23
capget EXTRA capget i:pp capget
capset EXTRA capset i:pp capset
-clock_adjtime EXTRA clock_adjtime i:ip clock_adjtime
+clock_adjtime EXTRA clock_adjtime i:ip __clock_adjtime clock_adjtime
create_module EXTRA create_module 3 __compat_create_module create_module@GLIBC_2.0:GLIBC_2.23
delete_module EXTRA delete_module 3 delete_module
epoll_create EXTRA epoll_create i:i epoll_create