]> granicus.if.org Git - strace/commit
x32: fix decoding of flags argument of preadv2 and pwritev2 syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 25 Feb 2017 15:55:31 +0000 (15:55 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 25 Feb 2017 15:55:31 +0000 (15:55 +0000)
commitf7b9a6ac636c97090f35453f00f2cde6e09714ae
tree4dd4cc17a6fcccffd4317e092dd1740461ea8419
parent7519e5493799a8a9980e5256a7e0d11d6b4c6572
x32: fix decoding of flags argument of preadv2 and pwritev2 syscalls

x32 is the only linux architecture where preadv2 and pwritev2 syscalls
take 5 arguments instead of 6.

* io.c (PREADV2_PWRITEV2_FLAGS_ARG_NO): New macro.
(SYS_FUNC(preadv2), SYS_FUNC(pwritev2)): Use it.
* linux/x32/syscallent.h (preadv2, pwritev2): Change nargs to 5.
* NEWS: Mention this fix.
* tests/preadv2-pwritev2.c (main): Fix invocation of preadv2
and pwritev2 syscalls on x32.
NEWS
io.c
linux/x32/syscallent.h
tests/preadv2-pwritev2.c