mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
af5fdf5a35
This patch consolidates all the pwritev{64} implementation for Linux in only one (sysdeps/unix/sysv/linux/pwritev{64}.c). It also removes the syscall from the auto-generation using assembly macros. It was based on previous pwrite/pwrite64 consolidation patch. The new macro SYSCALL_LL{64} is used to handle the offset argument and alias is created for __ASSUME_OFF_DIFF_OFF64 in case of pread64. Checked on x86_64, i386, aarch64, and powerpc64le. * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation required flags. (CFLAGS-pwritev64.c): Likewise. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file. * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise. * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise. * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise. * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove syscall from auto-generation. * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation. [WORDSIZE == 64] (pwritev64): Remove macro. [!PWRITEV] (PWRITEV): Likewise. [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise. [!PWRITEV] (PWRITE): Likewise. [!PWRITEV] (OFF_T): Likewise. [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise. (LO_HI_LONG): Remove macro. [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function. * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation. (PWRITEV): Remove macro. (PWRITEV_REPLACEMENTE): Likewise. (PWRITE): Likewise. (OFF_T): Likewise. (pwritev64): New function. * nptl/tst-cancel4.c (tf_writev): Add test. |
||
---|---|---|
.. | ||
aio_read64.c | ||
aio_read.c | ||
aio_write64.c | ||
aio_write.c | ||
creat64.c | ||
dl-fxstatat64.c | ||
fallocate64.c | ||
fallocate.c | ||
fstatfs64.c | ||
fstatvfs64.c | ||
fstatvfs.c | ||
ftruncate64.c | ||
fxstat64.c | ||
fxstat.c | ||
fxstatat64.c | ||
fxstatat.c | ||
getdents64.c | ||
getdents.c | ||
getdirentries64.c | ||
getdirentries.c | ||
getrlimit64.c | ||
glob64.c | ||
internal_statvfs64.c | ||
lio_listio64.c | ||
lio_listio.c | ||
lxstat64.c | ||
lxstat.c | ||
mmap64.c | ||
mmap.c | ||
open64.c | ||
openat64.c | ||
openat.c | ||
posix_fadvise64.c | ||
posix_fadvise.c | ||
posix_fallocate64.c | ||
posix_fallocate.c | ||
readdir64_r.c | ||
readdir64.c | ||
readdir_r.c | ||
readdir.c | ||
sendfile64.c | ||
setrlimit64.c | ||
statfs64.c | ||
statvfs64.c | ||
statvfs.c | ||
syscalls.list | ||
truncate64.c | ||
Versions | ||
xstat64.c | ||
xstat.c |