diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 05:09:17 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 05:58:02 -0400 |
commit | 6f3f843335004fa71719a474f2a7c4916bd949dc (patch) | |
tree | f69e5917b3af0b41f91905586a09a2c479115b59 /libc/sysdeps/linux/common/posix_fallocate64.c | |
parent | 9f9d2dea175bc0ea884bd4815acf2004b859c2b5 (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_fallocate64.c')
-rw-r--r-- | libc/sysdeps/linux/common/posix_fallocate64.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/posix_fallocate64.c b/libc/sysdeps/linux/common/posix_fallocate64.c index 818d86884..76dc9b87e 100644 --- a/libc/sysdeps/linux/common/posix_fallocate64.c +++ b/libc/sysdeps/linux/common/posix_fallocate64.c @@ -21,14 +21,9 @@ int posix_fallocate64(int fd, __off64_t offset, __off64_t len) { int ret; - uint32_t off_low = offset & 0xffffffff; - uint32_t off_high = offset >> 32; - uint32_t len_low = len & 0xffffffff; - uint32_t len_high = len >> 32; INTERNAL_SYSCALL_DECL(err); ret = (int) (INTERNAL_SYSCALL(fallocate, err, 6, fd, 0, - __LONG_LONG_PAIR (off_high, off_low), - __LONG_LONG_PAIR (len_high, len_low))); + OFF64_HI_LO (offset), OFF64_HI_LO (len))); if (unlikely(INTERNAL_SYSCALL_ERROR_P (ret, err))) return INTERNAL_SYSCALL_ERRNO (ret, err); return 0; |