preadv/pwritev: bugfix preadv/pwritev syscall should be 5 args
commit8b233f2491b286a2bd741b042719fdf5fde50eb2
authorGuo Ren <ren_guo@c-sky.com>
Mon, 25 Sep 2017 13:15:04 +0000 (25 21:15 +0800)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 1 Oct 2017 06:54:13 +0000 (1 08:54 +0200)
tree1399ccbb0ee451aecd9b9659f0266b7b95ca86de
parent2a3bb4daf5778c5875674cd26a3c75b3d460a042
preadv/pwritev: bugfix preadv/pwritev syscall should be 5 args

The current uclibc-ng use 4 arguments, and this will cause
ltp-testsuite's preadv/pwritev case failed.

The syscall of preadv/pwritev in current linux-kernel is 5 arguments:

linux/fs/read_write.c:

SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec,
unsigned long, vlen, unsigned long, pos_l, unsigned long, pos_h)

SYSCALL_DEFINE5(pwritev, unsigned long, fd, const struct iovec __user *, vec,
unsigned long, vlen, unsigned long, pos_l, unsigned long, pos_h)

So just update to 5-args-syscall, and off_t could be 32bit or 64bit.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
libc/sysdeps/linux/common/preadv.c
libc/sysdeps/linux/common/pwritev.c