powerpc: Fix Copyright dates and CL entry
[platform/upstream/glibc.git] / sysdeps / unix / sysv / linux / x86_64 / clock_gettime.c
1 #include "bits/libc-vdso.h"
2
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
19
20 #include "../clock_gettime.c"