Update copyright notices with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / x86_64 / clock_gettime.c
blobf7121106bc2803cb2f0cc8101f90f31e93fa6dce
1 #include "bits/libc-vdso.h"
3 #ifdef SHARED
4 # define SYSCALL_GETTIME(id, tp) \
5 ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
6 long int v_ret; \
7 PTR_DEMANGLE (f); \
8 v_ret = f (id, tp); \
9 if (INTERNAL_SYSCALL_ERROR_P (v_ret, )) { \
10 __set_errno (INTERNAL_SYSCALL_ERRNO (v_ret, )); \
11 v_ret = -1; \
12 } \
13 v_ret; })
14 # define INTERNAL_GETTIME(id, tp) \
15 ({ long int (*f) (clockid_t, struct timespec *) = __vdso_clock_gettime; \
16 PTR_DEMANGLE (f); \
17 f (id, tp); })
18 #endif
20 #include "../clock_gettime.c"