summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/preadv.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-05-10 07:23:53 -0700
committerWaldemar Brodkorb <wbx@openadk.org>2019-05-13 09:11:02 +0200
commit423e49023eeb9b93dcf335d7b03e86a44e584dc8 (patch)
tree0397d840dc6e651ee10923f8756e8f3d71a5ea91 /libc/sysdeps/linux/common/preadv.c
parentb56bd489812c685819bdec6d83f7990f21473be8 (diff)
preadv/pwritev: fix offset argument type
preadv/pwritev don't provide separate version for 64-bit wide off_t, and default to 32-bit wide off_t, which results in a mismatch between declaration and definition for user programs built with -D_FILE_OFFSET_BITS=64. Make offset argument of both functions __off64_t. This fixes test misc/tst-preadvwritev on xtensa. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/preadv.c')
-rw-r--r--libc/sysdeps/linux/common/preadv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/preadv.c b/libc/sysdeps/linux/common/preadv.c
index fd9dde4b9..6a07d5df8 100644
--- a/libc/sysdeps/linux/common/preadv.c
+++ b/libc/sysdeps/linux/common/preadv.c
@@ -21,7 +21,7 @@
#ifdef __NR_preadv
ssize_t
-preadv (int fd, const struct iovec *vector, int count, off_t offset)
+preadv (int fd, const struct iovec *vector, int count, __off64_t offset)
{
unsigned long pos_l, pos_h;