about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-06-27 14:00:18 -0700
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-12 16:03:58 -0200
commitca677d3c3cd0eba7d1f03092517aea553a0e8569 (patch)
treea5a899aa528f57614bc472895e47bb2088f97bae /sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
parent49a9f6ab6407fa38cd74db471678fced967c975e (diff)
downloadglibc-ca677d3c3cd0eba7d1f03092517aea553a0e8569.tar.gz
glibc-ca677d3c3cd0eba7d1f03092517aea553a0e8569.tar.xz
glibc-ca677d3c3cd0eba7d1f03092517aea553a0e8569.zip
Add x86 32 bit vDSO time function support
Linux 3.15 adds support for clock_gettime, gettimeofday, and time vDSO
(commit id 37c975545ec63320789962bf307f000f08fabd48).  This patch adds
GLIBC supports to use such symbol when they are avaiable.

Along with x86 vDSO support, this patch cleanup x86_64 code by moving
all common code to x86 common folder.  Only init-first.c is different
between implementations.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/clock_gettime.c')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/clock_gettime.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/clock_gettime.c b/sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
deleted file mode 100644
index f7121106bc..0000000000
--- a/sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "bits/libc-vdso.h"
-
-#ifdef SHARED
-# define SYSCALL_GETTIME(id, tp) \
-  ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
-  long int v_ret;							  \
-  PTR_DEMANGLE (f);							  \
-  v_ret = f (id, tp);							  \
-  if (INTERNAL_SYSCALL_ERROR_P (v_ret, )) {				  \
-    __set_errno (INTERNAL_SYSCALL_ERRNO (v_ret, ));			  \
-    v_ret = -1;								  \
-  }									  \
-  v_ret; })
-# define INTERNAL_GETTIME(id, tp) \
-  ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
-  PTR_DEMANGLE (f);							  \
-  f (id, tp); })
-#endif
-
-#include "../clock_gettime.c"