This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC v3 10/23] RISC-V: define __NR_clock_getres as __NR_*_time64 for 32-bit
- 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:07 -0700
- Subject: [RFC v3 10/23] RISC-V: define __NR_clock_getres as __NR_*_time64 for 32-bit
- Ironport-sdr: 1yhQPYR2B14lW9BQKQg9uCwvZmURgzhBO4c7iEGPBkQkFdnCWZde1cw8mJJExKidaHfRcxUvC0 Bd9E5f+TtAM5if648HEBUNX0jW6SFMWEBYt5Pv6nrEZgZ+Jq9JXo4JjK5TTiouPZrEuaQW/UVH EEctqv7u67/8mT3V7Bk74H+5WHpSHpXI8V/1mNBxwjt4hzjiavysmKkOL9hMY85zmTHFf1yJI1 dRCHTw0L6Kn9aIGOZYIaW+vbhbWlgKldO3X3pF1vQcmkFBaboZmkPbCCSKr/0BEomKq53eqGrf qdY=
- Ironport-sdr: aPSOQbMVL0P6GVg5dXxisqnKr0djLPo3Vk6oZIsQguS739GdbpeG1MNURbWwX/rZVQQ0BW3zb4 mvDooDqGDA5mAWa2pueH+QQ8JH8KayoplLUOA5fIasmSGW1Xc/j66P7TkNoSwbpvLp/sQ3QwgI 4ifgK9y51ckUoyuMlqcTrtB/sEKk8nG6Q3cAC2B1q7FIbR/tJlWQvXy2Ev7vjd/S701DLaLlVB /geBTI4nHPuvhV71ZfTvWI8mTPtvsMnNNbOzb/SYzJMAwlDHqa8ew/iSK5JliCrPNR/xhcTiin KwbKn4ftOpJAITahN1Iro7Tp
- Ironport-sdr: zOtjEGoVxOhf5tWihdkRP0cQeeKQqtCw4tJkiM+5H7U0UtZuw5ojQr8UDL5tUpLrykjeSV7bcT w6pNUzfBPi1TRiM1e7rtPLX1OSb0MWYl2H0GhkVcVHDMTTIkoO/BV5PeSTNoY1eeLl3/91nN99 Nwd2/xACx+0tbbapWC2x41BVHbqFSsfraAE5GaKtbYXFvBq30gdfVoH8oC8OVy2KrNS5VVOah2 T7loyiKf3k9TvErYRa5L4uUVa9q7oxiM6MmRccDOh/DHpBm1vL/m/dnUbhtqOuej87BboBCXmB B3E=
- References: <cover.1563321715.git.alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
sysdeps/unix/sysv/linux/riscv/sysdep.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h
index 2c06706701..9e07edfed3 100644
--- a/sysdeps/unix/sysv/linux/riscv/sysdep.h
+++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h
@@ -163,6 +163,10 @@
# ifndef __NR_timer_settime
# define __NR_timer_settime __NR_timer_settime64
# endif
+
+# ifndef __NR_clock_getres
+# define __NR_clock_getres __NR_clock_getres_time64
+# endif
#endif /* __riscv_xlen == 32 */
#undef SYS_ify
--
2.22.0