提交 5271ff46 编写于 作者: R Rich Felker

fix broken fallocate syscall in posix_fallocate

the syscall takes an extra flag argument which should be zero to meet
the POSIX requirements.
上级 231b9d18
......@@ -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));
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册