From d241dee4dda34d36a9e94468ae9dcfe07c6ac060 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 3 Mar 2020 12:15:06 +0100 Subject: Linux: Clean up preadv, pwritev system call names The names __NR_preadv64, __NR_pwritev64 appear to be a glibc invention. With the built-in tables, __NR_preadv and __NR_pwritev are always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/preadv.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sysdeps/unix/sysv/linux/preadv.c') diff --git a/sysdeps/unix/sysv/linux/preadv.c b/sysdeps/unix/sysv/linux/preadv.c index 2a55d8c142..9fccb917a1 100644 --- a/sysdeps/unix/sysv/linux/preadv.c +++ b/sysdeps/unix/sysv/linux/preadv.c @@ -22,10 +22,6 @@ # ifdef __ASSUME_PREADV -# ifndef __NR_preadv -# define __NR_preadv __NR_preadv64 -# endif - ssize_t preadv (int fd, const struct iovec *vector, int count, off_t offset) { @@ -37,12 +33,10 @@ static ssize_t __atomic_preadv_replacement (int, const struct iovec *, ssize_t preadv (int fd, const struct iovec *vector, int count, off_t offset) { -# ifdef __NR_preadv ssize_t result = SYSCALL_CANCEL (preadv, fd, vector, count, LO_HI_LONG (offset)); if (result >= 0 || errno != ENOSYS) return result; -# endif return __atomic_preadv_replacement (fd, vector, count, offset); } # define PREADV static __atomic_preadv_replacement -- cgit 1.4.1