This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC v4 13/24] RISC-V: Use 64-bit timespec in clock_gettime vdso calls
- From: Alistair Francis <alistair dot francis at wdc dot com>
- To: libc-alpha at sourceware dot org
- Cc: arnd at arndb dot de, adhemerval dot zanella at linaro dot org, fweimer at redhat dot com, palmer at sifive dot com, macro at wdc dot com, zongbox at gmail dot com, alistair dot francis at wdc dot com, alistair23 at gmail dot com
- Date: Fri, 9 Aug 2019 18:00:21 -0700
- Subject: [RFC v4 13/24] RISC-V: Use 64-bit timespec in clock_gettime vdso calls
- Ironport-sdr: HC0v/Zx/Bm16/yZaBoOOP3NvmaMsBfBD6BfwRxUM9KGp/Z/fhhOadK0xv3R1sSVsPWXJNoM+JB fHwX171fh8amwLwFWfdrkXno0RIoO4ul65XuuctV/5brMmuZy2TIZ5fVI80wj0cuUoa9B+6qOO yW5UkoK6bWi0Sgb/JDokKkRucA9PK/EU31OQ7fS7iB+9Tv8G30WTi0kKuiFMz7GnFAAdp6DrN0 FW7q+uZi2dlXgQJNi/HFLaWCLkqAlQx65sSjAWlV0Pr+6k95kCS80wwgCgw9S1xo4vTYJjIADB GTw=
- Ironport-sdr: Y7p53ptUIcAfzmDTxT7p/d2Kq/Mxdc/LGqP6x1e7l+3i1ZhSlr9qCd18O07H6PBCYkeNtxCjl/ H3DKKBZxLaNUYd1mIbNux5Pxf2EQd39pJ6F5L6IEExda2GzDQkXmK8yuFpXVNRj575F0WyNUiO /IWmexc9k9upVVshRzt0Mv1cLG4blBS4kS8B8fDFWUhUt3bUSiOwRE3Hz99MxMkFJ4k3jbrodN BTyzTIOSb/pwL+xdVqbnHHDG+ehjxJJfJofFFiyUhcS/TNfm2DwGeJyw5Lo0MKjMqhzTtW+B0/ fYeN9LjL6yfDsG6F3/SjyJjc
- Ironport-sdr: xp6I1YqGR6BAvdgUEY5GRZ4FmtHxmAgFgNsgMx2cC4ZaMDqq5sMkBreQYPGzSmyenChIP2tYih ooCmwQrZc/WzGY2plHnWlnVERdmI7lK/j7aIIacXBzf6s3Kurk5DVYOtvFsYd5e6tmzc7k4gD4 T7LmiJ7ux+MQT1PERKnVrVivbt7XBzjv4VqUHLFf4CLp5rL4bATETzYoRm6IPqLXUG40ntrqFX 7bXE1JnczvWGoWVhVKcOyjK2hBhzW2SCxXUbvx++5rlFRWZHYUmXmJyx/SXNR1zvPfcLl/RImU vRQ=
- References: <cover.1565398513.git.alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
sysdeps/unix/sysv/linux/riscv/init-first.c | 2 +-
sysdeps/unix/sysv/linux/riscv/libc-vdso.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/riscv/init-first.c b/sysdeps/unix/sysv/linux/riscv/init-first.c
index 98a8ce33adb..35dc8a8d386 100644
--- a/sysdeps/unix/sysv/linux/riscv/init-first.c
+++ b/sysdeps/unix/sysv/linux/riscv/init-first.c
@@ -24,7 +24,7 @@ long int (*VDSO_SYMBOL (getcpu)) (unsigned int *, unsigned int *, void *)
attribute_hidden;
long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *)
attribute_hidden;
-long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *)
+long int (*VDSO_SYMBOL (__clock_gettime64)) (clockid_t, struct __timespec64 *)
attribute_hidden;
long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *)
attribute_hidden;
diff --git a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
index 2373292ab9e..16905d5b78d 100644
--- a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
+++ b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
@@ -26,7 +26,7 @@ extern long int (*VDSO_SYMBOL (getcpu)) (unsigned int *, unsigned int *, void *)
attribute_hidden;
extern long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *)
attribute_hidden;
-extern long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *)
+extern long int (*VDSO_SYMBOL (__clock_gettime64)) (clockid_t, struct __timespec64 *)
attribute_hidden;
extern long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *)
attribute_hidden;
--
2.22.0