glibc/sysdeps
Adhemerval Zanella c79a72aa5c posix: Fix and simplify default p{read,write}v implementation
Currently all architectures but microblaze use wire-up syscall for
p{readv,write}v.  Microblaze still uses the syscall emulation using
sysdep/posix/p{readv,writev}.c and it was reported in some ocasions
[1] [2] that it might have some issues with some linux specific
usage (mainly with O_DIRECT and the alignment requirement).

Although it is not an issue for virtually all the system, this
patch refactors the sysdeps/posix p{read,write}v syscall to avoid
such issue (by using posix_memalign on the buffer used on
p{read,write} call) and by refactoring it common files to avoid
the need check on defines to correct set the alias and internal
symbols.

Checked on microblaze-linux-gnu check with run-built-tests=no and
by using the sysdeps/posix implementation on x86_64-linux-gnu (just
for sanity test where it shown no regression).

	* sysdeps/posix/preadv.c: Use sysdeps/posix/preadv_common.c.
	* sysdeps/posix/preadv64.c: Likewise.
	* sysdeps/unix/sysv/linux/preadv.c: Likewise.
	* sysdeps/unix/sysv/linux/preadv64.c: Likewise.
	* sysdeps/posix/pwritev.c: Use sysdeps/posix/pwritev_common.c.
	* sysdeps/posix/pwritev64.c: Likewise.
	* sysdeps/unix/sysv/linux/pwritev.c: Likewise.
	* sysdeps/unix/sysv/linux/pwritev64.c: Likewise.
	* sysdeps/posix/preadv_common.c: New file.
	* sysdeps/posix/pwritev_common.c: Likewise.

[1] http://www.mail-archive.com/qemu-devel@nongnu.org/msg25282.html
[2] https://bugzilla.redhat.com/show_bug.cgi?id=563103#c8
2017-05-15 16:33:45 -03:00
..
aarch64 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
alpha Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
arm Condition some sys/ucontext.h contents on __USE_MISC (bug 21457). 2017-05-11 14:15:26 +00:00
generic float128: Enable use of IEEE wrapper templates 2017-05-15 10:24:14 -03:00
gnu Add TCP_FASTOPEN_CONNECT from Linux 4.11 to netinet/tcp.h. 2017-05-01 16:18:31 +00:00
hppa Remove wrong definitions from pthread header refactor 2017-05-11 10:46:03 -03:00
i386 Condition some sys/ucontext.h contents on __USE_MISC (bug 21457). 2017-05-11 14:15:26 +00:00
ia64 Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
ieee754 float128: Add private _Float128 declarations for libm. 2017-05-15 10:23:28 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
mach [BZ 21340] add support for POSIX_SPAWN_SETSID 2017-04-25 08:51:12 -03:00
microblaze Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
mips Condition some sys/ucontext.h contents on __USE_MISC (bug 21457). 2017-05-11 14:15:26 +00:00
nacl Assume that accept4 is always available and works 2017-04-19 07:44:48 +02:00
nios2 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
nptl fork: Remove bogus parent PID assertions [BZ #21386] 2017-05-12 16:04:16 +02:00
posix posix: Fix and simplify default p{read,write}v implementation 2017-05-15 16:33:45 -03:00
powerpc Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
pthread Refer to <signal.h> instead of <pthread.h> in <bits/sigthread.h> 2017-02-28 10:34:15 +01:00
s390 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sh Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sparc Remove useless SPARC signbit aliases. 2017-05-12 16:37:12 +00:00
tile Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
unix posix: Fix and simplify default p{read,write}v implementation 2017-05-15 16:33:45 -03:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
x86 Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
x86_64 Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00