glibc/sysdeps/unix/sysv/linux/wordsize-64
Adhemerval Zanella 071af4769f Consolidate pwrite/pwrite64 implementations
This patch consolidates all the pwrite/pwrite64 implementation for Linux
in only one (sysdeps/unix/sysv/linux/pwrite{64}.c).  It also removes the
syscall from the auto-generation using assembly macros.

For pwrite{64} offset argument placement the new SYSCALL_LL{64} macro
is used.  For pwrite ports that do not define __NR_pwrite will use
__NR_pwrite64 and for pwrite64 ports that dot define __NR_pwrite64 will
use __NR_pwrite for the syscall.

Checked on x86_64, x32, i386, aarch64, and ppc64le.

	* sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
	* sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
	syscalls generation.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
	[__NR_pwrite64] (__NR_write): Remove define.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
	[__NR_pwrite64] (__NR_write): Remove define.
	* sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
	Remove define.
	(__libc_pwrite): Use SYSCALL_LL macro on offset argument.
	* sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
	Remove define.
	(__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
	* sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
	Linux implementation as base.
	* sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2016-04-11 10:08:01 -03:00
..
aio_read64.c
aio_read.c
aio_write64.c
aio_write.c
creat64.c
dl-fxstatat64.c
fallocate64.c
fallocate.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fstatfs64.c
fstatvfs64.c
fstatvfs.c Fix pathconf statvfs namespace (bug 18507). 2015-06-09 19:52:01 +00:00
ftruncate64.c
fxstat64.c
fxstat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fxstatat64.c
fxstatat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
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 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mmap64.c
mmap.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
open64.c
openat64.c
openat.c Remove unused definition of __openat(64)_nocancel 2015-08-11 09:37:38 +02:00
posix_fadvise64.c
posix_fadvise.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
posix_fallocate64.c
posix_fallocate.c Remove __ASSUME_FALLOCATE. 2016-03-17 12:15:51 +00:00
preadv64.c
preadv.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
pwritev64.c
pwritev.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
readdir64_r.c
readdir64.c
readdir_r.c
readdir.c
sendfile64.c
setrlimit64.c
statfs64.c
statvfs64.c
statvfs.c Fix pathconf statvfs namespace (bug 18507). 2015-06-09 19:52:01 +00:00
syscalls.list Consolidate pwrite/pwrite64 implementations 2016-04-11 10:08:01 -03:00
truncate64.c
Versions
xstat64.c
xstat.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00