From 5271ff46b9e983bec5fd9ab79d5aaf096fa54157 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 8 Sep 2012 00:26:46 -0400 Subject: [PATCH] fix broken fallocate syscall in posix_fallocate the syscall takes an extra flag argument which should be zero to meet the POSIX requirements. --- src/fcntl/posix_fallocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.25.1