diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-08 00:26:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-08 00:26:46 -0400 |
commit | 5271ff46b9e983bec5fd9ab79d5aaf096fa54157 (patch) | |
tree | be3f83b7eb39dfbd841248a17f89967c48be4876 | |
parent | 231b9d1880bf686c0db918cea16c355f2d6598fc (diff) | |
download | musl-5271ff46b9e983bec5fd9ab79d5aaf096fa54157.tar.gz musl-5271ff46b9e983bec5fd9ab79d5aaf096fa54157.tar.bz2 musl-5271ff46b9e983bec5fd9ab79d5aaf096fa54157.tar.xz musl-5271ff46b9e983bec5fd9ab79d5aaf096fa54157.zip |
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.c | 2 |
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)); } |