summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/posix_fallocate64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/posix_fallocate64.c')
-rw-r--r--libc/sysdeps/linux/common/posix_fallocate64.c7
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;