about summary refs log tree commit diff
path: root/misc/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-06-14 17:56:33 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-06-21 11:29:18 -0300
commit4751bbe2ad4d1bfa05774e29376d553ecfe563b0 (patch)
tree029d8253f0c76d8ab16f6f477dd53007113e7c55 /misc/Makefile
parentdf2258c6cb4250e53f12b59785987c338b5cf396 (diff)
downloadglibc-4751bbe2ad4d1bfa05774e29376d553ecfe563b0.tar.gz
glibc-4751bbe2ad4d1bfa05774e29376d553ecfe563b0.tar.xz
glibc-4751bbe2ad4d1bfa05774e29376d553ecfe563b0.zip
Fix p{readv,writev}{64} consolidation implementation
This patch fixes the p{readv,writev}{64} consolidation implementation
from commits 4e77815 and af5fdf5.  Different from pread/pwrite
implementation, preadv/pwritev implementation does not require
__ALIGNMENT_ARG because kernel syscall prototypes define
the high and low part of the off_t, if it is the case, directly
(different from pread/pwrite where the architecture ABI for passing
64-bit values must be in consideration for passsing the arguments).

It also adds some basic tests for preadv/pwritev.

Tested on x86_64, i686, and armhf.

	* misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
	* misc/tst-preadvwritev.c: New file.
	* misc/tst-preadvwritev64.c: Likewise.
	* sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
	usage.
	* sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
	* sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
	* sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
	* sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
Diffstat (limited to 'misc/Makefile')
-rw-r--r--misc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 6498adc3aa..56e20ce521 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -77,7 +77,8 @@ gpl2lgpl := error.c error.h
 
 tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \
 	 tst-error1 tst-pselect tst-insremque tst-mntent2 bug-hsearch1 \
-	 tst-mntent-blank-corrupt tst-mntent-blank-passno bug18240
+	 tst-mntent-blank-corrupt tst-mntent-blank-passno bug18240 \
+	 tst-preadvwritev tst-preadvwritev64
 ifeq ($(run-built-tests),yes)
 tests-special += $(objpfx)tst-error1-mem.out
 endif