From b5350b487cee9bee32990712bc67a5eaffe3ea98 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 3 Mar 2020 12:18:22 +0100 Subject: Linux: Clean up preadv2, pwritev2 system call names With the built-in tables __NR_preadv2 and __NR_pwritev2 are always defined. The kernel has never defined __NR_preadv64v2 and __NR_pwritev64v2 and is unlikely to do so, given that the preadv2 and pwritev2 system calls themselves are 64-bit. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/preadv2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sysdeps/unix/sysv/linux/preadv2.c') diff --git a/sysdeps/unix/sysv/linux/preadv2.c b/sysdeps/unix/sysv/linux/preadv2.c index 5f1a83589e..4e3aa923da 100644 --- a/sysdeps/unix/sysv/linux/preadv2.c +++ b/sysdeps/unix/sysv/linux/preadv2.c @@ -21,20 +21,15 @@ #ifndef __OFF_T_MATCHES_OFF64_T -# if !defined (__NR_preadv2) && defined (__NR_pread64v2) -# define __NR_preadv2 __NR_pread64v2 -# endif - ssize_t preadv2 (int fd, const struct iovec *vector, int count, off_t offset, int flags) { -# ifdef __NR_preadv2 ssize_t result = SYSCALL_CANCEL (preadv2, fd, vector, count, LO_HI_LONG (offset), flags); if (result >= 0 || errno != ENOSYS) return result; -# endif + /* Trying to emulate the preadv2 syscall flags is troublesome: * We can not temporary change the file state of the O_DSYNC and O_SYNC -- cgit v1.2.3-70-g09d2