summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-08 00:26:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-08 00:26:46 -0400
commit5271ff46b9e983bec5fd9ab79d5aaf096fa54157 (patch)
treebe3f83b7eb39dfbd841248a17f89967c48be4876
parent231b9d1880bf686c0db918cea16c355f2d6598fc (diff)
downloadmusl-5271ff46b9e983bec5fd9ab79d5aaf096fa54157.tar.gz
fix broken fallocate syscall in posix_fallocate
the syscall takes an extra flag argument which should be zero to meet the POSIX requirements.
-rw-r--r--src/fcntl/posix_fallocate.c2
1 files changed, 1 insertions, 1 deletions
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));
}