summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/posix_fadvise64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/posix_fadvise64.c')
-rw-r--r--libc/sysdeps/linux/common/posix_fadvise64.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/posix_fadvise64.c b/libc/sysdeps/linux/common/posix_fadvise64.c
index 067085430..5a302d3c9 100644
--- a/libc/sysdeps/linux/common/posix_fadvise64.c
+++ b/libc/sysdeps/linux/common/posix_fadvise64.c
@@ -25,13 +25,11 @@ int posix_fadvise64(int fd, off64_t offset, off64_t len, int advice)
INTERNAL_SYSCALL_DECL (err);
# if defined __powerpc__ || defined __arm__ || defined __xtensa__
int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd, advice,
- __LONG_LONG_PAIR((long)(offset >> 32), (long)offset),
- __LONG_LONG_PAIR((long)(len >> 32), (long)len));
+ OFF64_HI_LO (offset), OFF64_HI_LO (len));
# else
int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
- __LONG_LONG_PAIR((long)(offset >> 32), (long)offset),
- __LONG_LONG_PAIR((long)(len >> 32), (long)len),
- advice);
+ OFF64_HI_LO (offset), OFF64_HI_LO (len),
+ advice);
# endif
if (INTERNAL_SYSCALL_ERROR_P (ret, err))
return INTERNAL_SYSCALL_ERRNO (ret, err);