This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC v5 12/21] 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: Thu, 29 Aug 2019 09:50:32 -0700
- Subject: [RFC v5 12/21] RISC-V: Use 64-bit timespec in clock_gettime vdso calls
- Ironport-sdr: XTIITYHEKLYbki2h0gT9qisicgyfFjbBze5wieq/ZCFM5lfbd9emMJ0eIujlew136g/uUjeZLX 22ogFpTHutOZ8jBXThAFDx2scxe2alG05aS2iATBi6Oeg+HQ0lefBofzHxkWiOUTvIex9lRLW0 7igGK4eRPlUjieYFA3sdjAUs0D803MJSUGADHlLQAudu5FXZur4fZBEqX/4CIY6WPLQNUfb8Jv q1lBkGKewZAo4mM/I6mqoNo04jz4R/SrOygQZN377Fn8TVFd1cNpmAugaYUAbdr69csHT8Cl6u vnw=
- Ironport-sdr: nBONAgHcaZFphUlVYwKsKRZq+d6V9wUrsUUBZ8Jpg6W9jVIWrqhN3pmFnjmL0rRc58U/0odoLs xditrjhXIO1cFAcxlyK2QBL5lBBnX6AEpP3ePq1vr+Sv6iHXIzOZpKeQVx7g2pLSYHhjZEfcZK XJFez0iQ3NhvlR00o7+N6AgkPJy+KVynoZEZWuzfmT1Df60zUCF0z20Sb8okiN/ZV/jKh4DlxY TafiGa6GSwum1vsOpAxuo8Art76HzoSIP8o4oxnvAPY6VurfAGQMaQ6mOgOaPr+llZs8hfyeGs 7WPjymIGbFdC1Cpzrn+7I0oQ
- Ironport-sdr: UqXqUlG31DKvzgN8ZCzJuS9FSxzNqOKxAP/rouXaQ5/7uW//51k3Wl5HbGCa8izN6X45GzWqRm F7785mCUmus/9FJST1MX5Y6I7g7vqWbJgKO2T8kK9X3Qgw6pFDmPkbSEJ01UsfoAlIVDqDOkre BTGKCh6QvfMEdWMv2n56c3HRwgVKdYuMohmU9unTNjyZmyQjWFVAQszrM8Wxc+60mdpDEqmVd+ zVH6kHeCd/+C0vqBMpse7UsyZy4d0+TqefYfXDGYM8zGmCozZ3SDd2AscSfuJaWw8kXtR2ZR9i Wkk=
- References: <cover.1567097252.git.alistair.francis@wdc.com>
- Wdcironportexception: Internal
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
* sysdeps/unix/sysv/linux/riscv/init-first.c: Use 64-bit timespec in
clock_gettime vdso calls.
* sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
---
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