diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-09-09 21:20:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-09-09 21:20:07 +0200 |
commit | def0d92193606e184d356c4d2d1752526573f87c (patch) | |
tree | b2460ec3b5eb1f11aa1d92f8909747dae123f0b0 /libc/sysdeps/linux/common/posix_fallocate64.c | |
parent | 032f47c7fd7580087d71f2e938dc4f95cc94ce92 (diff) | |
parent | 62d3a427afdea136c82bb599a18a593d9b32c533 (diff) |
Merge remote-tracking branch 'origin/upstream'
Diffstat (limited to 'libc/sysdeps/linux/common/posix_fallocate64.c')
-rw-r--r-- | libc/sysdeps/linux/common/posix_fallocate64.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/common/posix_fallocate64.c b/libc/sysdeps/linux/common/posix_fallocate64.c index 76dc9b87e..12ddbc2bc 100644 --- a/libc/sysdeps/linux/common/posix_fallocate64.c +++ b/libc/sysdeps/linux/common/posix_fallocate64.c @@ -14,21 +14,15 @@ #include <stdint.h> #if defined __NR_fallocate - # if __WORDSIZE == 64 /* Can use normal posix_fallocate() */ # elif __WORDSIZE == 32 +extern __typeof(fallocate64) __libc_fallocate64 attribute_hidden; int posix_fallocate64(int fd, __off64_t offset, __off64_t len) { - int ret; - INTERNAL_SYSCALL_DECL(err); - ret = (int) (INTERNAL_SYSCALL(fallocate, err, 6, fd, 0, - OFF64_HI_LO (offset), OFF64_HI_LO (len))); - if (unlikely(INTERNAL_SYSCALL_ERROR_P (ret, err))) - return INTERNAL_SYSCALL_ERRNO (ret, err); - return 0; + return __libc_fallocate64(fd, 0, offset, len); } # else -# error your machine is neither 32 bit or 64 bit ... it must be magical +# error your machine is neither 32 bit or 64 bit ... it must be magical # endif #endif |