mirror of
git://git.musl-libc.org/musl
synced 2024-12-26 00:22:35 +00:00
fix broken fallocate syscall in posix_fallocate
the syscall takes an extra flag argument which should be zero to meet the POSIX requirements.
This commit is contained in:
parent
231b9d1880
commit
5271ff46b9
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user