summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/posix_fadvise64.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-04-01 05:09:17 -0400
committerMike Frysinger <vapier@gentoo.org>2013-04-01 05:58:02 -0400
commit6f3f843335004fa71719a474f2a7c4916bd949dc (patch)
treef69e5917b3af0b41f91905586a09a2c479115b59 /libc/sysdeps/linux/common/posix_fadvise64.c
parent9f9d2dea175bc0ea884bd4815acf2004b859c2b5 (diff)
linux: use OFF64_HI_LO rather than __LONG_LONG_PAIR
This macro takes care of the shift/mask split for us, so no need to open code this ourselves and then use __LONG_LONG_PAIR. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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);