aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/pwritev64.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:15:06 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:15:06 +0100
commitd241dee4dda34d36a9e94468ae9dcfe07c6ac060 (patch)
tree913fc1d58593688ac14a2139a8b489749e7659cd /sysdeps/unix/sysv/linux/pwritev64.c
parent71691aae927b5f5b987bc78be1dc10f27dda6c51 (diff)
downloadglibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.tar
glibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.tar.gz
glibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.tar.bz2
glibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.zip
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/pwritev64.c')
-rw-r--r--sysdeps/unix/sysv/linux/pwritev64.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/pwritev64.c b/sysdeps/unix/sysv/linux/pwritev64.c
index 9bb0399c44..08bda27d4f 100644
--- a/sysdeps/unix/sysv/linux/pwritev64.c
+++ b/sysdeps/unix/sysv/linux/pwritev64.c
@@ -20,14 +20,10 @@
#ifdef __ASSUME_PWRITEV
-# ifndef __NR_pwritev64
-# define __NR_pwritev64 __NR_pwritev
-# endif
-
ssize_t
pwritev64 (int fd, const struct iovec *vector, int count, off64_t offset)
{
- return SYSCALL_CANCEL (pwritev64, fd, vector, count, LO_HI_LONG (offset));
+ return SYSCALL_CANCEL (pwritev, fd, vector, count, LO_HI_LONG (offset));
}
#else
static ssize_t __atomic_pwritev64_replacement (int, const struct iovec *,
@@ -35,12 +31,10 @@ static ssize_t __atomic_pwritev64_replacement (int, const struct iovec *,
ssize_t
pwritev64 (int fd, const struct iovec *vector, int count, off64_t offset)
{
-#ifdef __NR_pwritev64
- ssize_t result = SYSCALL_CANCEL (pwritev64, fd, vector, count,
+ ssize_t result = SYSCALL_CANCEL (pwritev, fd, vector, count,
LO_HI_LONG (offset));
if (result >= 0 || errno != ENOSYS)
return result;
-#endif
return __atomic_pwritev64_replacement (fd, vector, count, offset);
}
# define PWRITEV static __atomic_pwritev64_replacement