mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user