diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:15:06 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:15:06 +0100 |
commit | d241dee4dda34d36a9e94468ae9dcfe07c6ac060 (patch) | |
tree | 913fc1d58593688ac14a2139a8b489749e7659cd /sysdeps/unix/sysv/linux/pwritev.c | |
parent | 71691aae927b5f5b987bc78be1dc10f27dda6c51 (diff) | |
download | glibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.tar.gz glibc-d241dee4dda34d36a9e94468ae9dcfe07c6ac060.tar.xz 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/pwritev.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pwritev.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/pwritev.c b/sysdeps/unix/sysv/linux/pwritev.c index 7abe47be06..d6cb3c8d5c 100644 --- a/sysdeps/unix/sysv/linux/pwritev.c +++ b/sysdeps/unix/sysv/linux/pwritev.c @@ -22,10 +22,6 @@ # ifdef __ASSUME_PREADV -# ifndef __NR_pwritev -# define __NR_pwritev __NR_pwritev64 -# endif - ssize_t pwritev (int fd, const struct iovec *vector, int count, off_t offset) { @@ -37,12 +33,10 @@ static ssize_t __atomic_pwritev_replacement (int, const struct iovec *, ssize_t pwritev (int fd, const struct iovec *vector, int count, off_t offset) { -# ifdef __NR_pwritev ssize_t result = SYSCALL_CANCEL (pwritev, fd, vector, count, LO_HI_LONG (offset)); if (result >= 0 || errno != ENOSYS) return result; -# endif return __atomic_pwritev_replacement (fd, vector, count, offset); } # define PWRITEV static __atomic_pwritev_replacement |