From: Rich Felker Date: Sat, 8 Sep 2012 04:26:46 +0000 (-0400) Subject: fix broken fallocate syscall in posix_fallocate X-Git-Tag: v0.9.5~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5271ff46b9e983bec5fd9ab79d5aaf096fa54157;p=oweals%2Fmusl.git fix broken fallocate syscall in posix_fallocate the syscall takes an extra flag argument which should be zero to meet the POSIX requirements. --- diff --git a/src/fcntl/posix_fallocate.c b/src/fcntl/posix_fallocate.c index bd726242..80a65cbf 100644 --- a/src/fcntl/posix_fallocate.c +++ b/src/fcntl/posix_fallocate.c @@ -3,6 +3,6 @@ int posix_fallocate(int fd, off_t base, off_t len) { - return -__syscall(SYS_fallocate, fd, __SYSCALL_LL_O(base), + return -__syscall(SYS_fallocate, fd, 0, __SYSCALL_LL_E(base), __SYSCALL_LL_E(len)); }