diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-09-18 08:37:58 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2019-12-04 09:43:40 -0800 |
commit | f6fbce7dd72145ed9272ac8ef3ea6123c390a72b (patch) | |
tree | 4a2a844aa730f71e6fab8828e06ce5ebd1dcb8ed /sysdeps/unix/sysv/linux/libc-vdso.h | |
parent | d0bc5b725dac852764b98b9b3e0560c003bd000a (diff) | |
download | glibc-f6fbce7dd72145ed9272ac8ef3ea6123c390a72b.tar.gz glibc-f6fbce7dd72145ed9272ac8ef3ea6123c390a72b.tar.xz glibc-f6fbce7dd72145ed9272ac8ef3ea6123c390a72b.zip |
sysdeps: Add clock_gettime64 vDSO
Add support for the clock_gettim64 vDSO calls. These are protected by the HAVE_CLOCK_GETTIME64_VSYSCALL define. HAVE_CLOCK_GETTIME64_VSYSCALL should be defined for 32-bit platforms (WORDSIZE == 32) that only run on the 5.1 kernel or later. WORDSIZE == 64 platforms can use #define __vdso_clock_gettime64 __vdso_clock_gettime and use the __vdso_clock_gettime syscall as they don't have a __vdso_clock_gettime64 call. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/libc-vdso.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/libc-vdso.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/libc-vdso.h b/sysdeps/unix/sysv/linux/libc-vdso.h index 792ac39d85..c6d505bab3 100644 --- a/sysdeps/unix/sysv/linux/libc-vdso.h +++ b/sysdeps/unix/sysv/linux/libc-vdso.h @@ -32,6 +32,10 @@ extern int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *) attribute_hidden; #endif +#ifdef HAVE_CLOCK_GETTIME64_VSYSCALL +extern int (*VDSO_SYMBOL(clock_gettime64)) (clockid_t, struct __timespec64 *) + attribute_hidden; +#endif #ifdef HAVE_CLOCK_GETRES_VSYSCALL extern int (*VDSO_SYMBOL(clock_getres)) (clockid_t, struct timespec *) attribute_hidden; |