This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC v3 13/23] 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: Tue, 16 Jul 2019 17:09:15 -0700
- Subject: [RFC v3 13/23] RISC-V: Use 64-bit timespec in clock_gettime vdso calls
- Ironport-sdr: AXLVi/iAJc92/E5C3UEpM0ghymVbaDrD3UAfdFHiK/1PGR0p8F5usT+Ywe5WhU7tOTApvaF+NI jtAUJCts6j9ywLP3VMPm/VR0g3wDR+xfIimaVIeZvWF7ZZjQzzJSouss3CLRMsIssJEV7OQkME MfGsCuGMq1AdmeJ2hOgNUgT5eh2xAf/RJk0S6nPFKKC3vCzy17zTfXcTo6UIqXYudh0U0U+iI/ 1AB55WVxtn5loZ69xQ92pARSjDdRTLdtO6Pgp6EdwpHH+yn/Z1ImOA1j2OfQJGs+3Nz1j7/EJg ytQ=
- Ironport-sdr: zfmMAcjAzro5g2SQTX2n+foo5OVsScJENgogJTxcXe9sSOaGdAPnVHi8a74+6qsHpqvTYYCGv6 3lrwQNq65DldWj+85MPbUEcpokdoblCwaQ4Q0t6ybMv0hJzewJv+Yvyw34CGzLVabduiRG5V50 jy3DriYk2YSh2wf5/WY91aH7s+qOqgAXLB/CeycU3VnV5co5eVb4VrNn+YLUUH7wV+riOPlQTh jVDV4YROKm8XZT3fivXYuTDCWXDoMMycjWle4fxUpgbIszceebQ3k7fPAcYfegPZ9rk+fIpvwz ppCArqJSknIiqEebcSaxzF8g
- Ironport-sdr: l8fmYCc3vWaEUSuKu61T1s3Owv9aF+e8B4RqwOr6UUVuD9XacGHTGGNn6C32w3HWZmOhJ+3bhz wnSBvuSAMd0rHkVd1rvV2BER4PuZQ69bkpqT4suquCJFYMiuI1brZYRwto9KhualiK92fF/TUQ r2MbfxNXHPuPtpsZamFav93fO0Q+ep/KM73Ioq5McLat+jPbLycO/2H/UzXC012tIX7/QLxio3 ib2xPDKc5BcTr7uKtcpB6kg5zzf8bAt/GwnMIrrKskKmASCmZ+CcSnJWkHEPs9LNsqvku5MoDT E3w=
- References: <cover.1563321715.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 8134c79695..155a4a2c0c 100644
--- a/sysdeps/unix/sysv/linux/riscv/init-first.c
+++ b/sysdeps/unix/sysv/linux/riscv/init-first.c
@@ -25,7 +25,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_gettime)) (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 b0c46f3cb7..406801746f 100644
--- a/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
+++ b/sysdeps/unix/sysv/linux/riscv/libc-vdso.h
@@ -28,7 +28,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_gettime)) (clockid_t, struct __timespec64 *)
attribute_hidden;
extern long int (*VDSO_SYMBOL (clock_getres)) (clockid_t, struct timespec *)
attribute_hidden;
--
2.22.0