about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/pwritev2.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:18:22 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:18:22 +0100
commitb5350b487cee9bee32990712bc67a5eaffe3ea98 (patch)
treeb719b5330741d3f8312fe1cdfdb13fc2f372a2b4 /sysdeps/unix/sysv/linux/pwritev2.c
parent11ae9a185baa1dbe2b200659d043761206fe70e3 (diff)
downloadglibc-b5350b487cee9bee32990712bc67a5eaffe3ea98.tar.gz
glibc-b5350b487cee9bee32990712bc67a5eaffe3ea98.tar.xz
glibc-b5350b487cee9bee32990712bc67a5eaffe3ea98.zip
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/pwritev2.c')
-rw-r--r--sysdeps/unix/sysv/linux/pwritev2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/pwritev2.c b/sysdeps/unix/sysv/linux/pwritev2.c
index 53ab5e7613..a179654970 100644
--- a/sysdeps/unix/sysv/linux/pwritev2.c
+++ b/sysdeps/unix/sysv/linux/pwritev2.c
@@ -25,12 +25,12 @@ ssize_t
 pwritev2 (int fd, const struct iovec *vector, int count, off_t offset,
 	  int flags)
 {
-# ifdef __NR_pwritev2
+
   ssize_t result = SYSCALL_CANCEL (pwritev2, fd, vector, count,
 				   LO_HI_LONG (offset), flags);
   if (result >= 0 || errno != ENOSYS)
     return result;
-# endif
+
   /* Trying to emulate the pwritev2 syscall flags is troublesome:
 
      * We can not temporary change the file state of the O_DSYNC and O_SYNC