This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC v3 09/23] RISC-V: define __NR_* as __NR_*_time64/64 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:04 -0700
- Subject: [RFC v3 09/23] RISC-V: define __NR_* as __NR_*_time64/64 for 32-bit
- Ironport-sdr: DUdK5Ps7KmRrOwk7W5u7nfYOTr9haEMSS3rk9E1KHo3rWoDDzbvKCPopo85PWbKZr7en30sDMR Eaj7TnxIkq1qo07zV8NX7yWPo/Fit1GvRgui7T6ybMTbV1UcMkCdtCi2WHL3jPQ4qvHx3S7uUy WZ3SZYdNUFrf/qiJ7dez7fqMixpwzsZJc82LatwJwEmTmeVwlTb7KVerk1IInaUNwaju3ECjiG JhxAf9wkqOdClM475Ekbg/4l9T8LBzJsOGry1um0W3GOy5JBgxpclILYZP9JPaADyMgPS/84eg TCs=
- Ironport-sdr: RpwFGwnqOPNj29ctlgJJz2UnWzWECcQCFFuK1cZFcrc9Z9X348lf1ZLizh0j84foC3V2r/Q4Kq yDHs6CsTJykrSk5TTycxeEUyqaHG8YN3yR4NH1BTFjVBESsT4dHqDyO679sNMkeuBjQqWNEa/2 XZEQ8HQ6ExSrjGKSOuDi95PFBbvjuMa/Xfioo346ksvyOiOIbMwNpgcaHJfHWCmt3OOo/Kof6X E3+JPqxXa8zym9cbglCpW4Y36EYMPyFzgLUBR2UAsuq/W85vrjIZfLjgCRU9Ng7wA9zxsf9dRA W5w1H0SFHp6n9vSMBJ3MtDts
- Ironport-sdr: hnxfgmH85N0ohcOXjZNZDjhIiHVKEZtHsaNPsltkO6HJHNcW8qsRAX8MCLSng+z4R5ffm6qniT R/5IZnKGT5vBRkSgfU+UTi3RIs+TcOIt+d5bf6+9zZRm7eErJ98OiJQ0RoWFsiGiKdhOMjkg3v 5lBBIu/fomxG5ZxQ7zdj8lSeWKGuWK6q6zqaYig1QQ354HrrCi/uC+ydkkKr/AUXvW8xSoAL4d mevq2IZnpnjLAP5SrS19nSRsF34oNjwJdEMVrpMY24kgTPNJtvzBTU5XbE8DKuxtzst7zd6vU5 67A=
- References: <cover.1563321715.git.alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
sysdeps/unix/sysv/linux/riscv/sysdep.h | 42 +++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h
index b7607ef9f1..2c06706701 100644
--- a/sysdeps/unix/sysv/linux/riscv/sysdep.h
+++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h
@@ -123,7 +123,47 @@
# ifndef __NR_futex
# define __NR_futex __NR_futex_time64
# endif
-#endif
+
+# ifndef __NR_rt_sigtimedwait
+# define __NR_rt_sigtimedwait __NR_rt_sigtimedwait_time64
+# endif
+
+# ifndef __NR_ppoll
+# define __NR_ppoll __NR_ppoll_time64
+# endif
+
+# ifndef __NR_utimensat
+# define __NR_utimensat __NR_utimensat_time64
+# endif
+
+# ifndef __NR_pselect6
+# define __NR_pselect6 __NR_pselect6_time64
+# endif
+
+# ifndef __NR_recvmmsg
+# define __NR_recvmmsg __NR_recvmmsg_time64
+# endif
+
+# ifndef __NR_semtimedop
+# define __NR_semtimedop __NR_semtimedop_time64
+# endif
+
+# ifndef __NR_mq_timedreceive
+# define __NR_mq_timedreceive __NR_mq_timedreceive_time64
+# endif
+
+# ifndef __NR_mq_timedsend
+# define __NR_mq_timedsend __NR_mq_timedsend_time64
+# endif
+
+# ifndef __NR_timer_gettime
+# define __NR_timer_gettime __NR_timer_gettime64
+# endif
+
+# ifndef __NR_timer_settime
+# define __NR_timer_settime __NR_timer_settime64
+# endif
+#endif /* __riscv_xlen == 32 */
#undef SYS_ify
#define SYS_ify(syscall_name) __NR_##syscall_name
--
2.22.0