fix mrand48/jrand48 return value on 64-bit archs
[musl] / src / fcntl / posix_fallocate.c
index d6680c1..91d8063 100644 (file)
@@ -1,8 +1,11 @@
 #include <fcntl.h>
 #include "syscall.h"
+#include "libc.h"
 
 int posix_fallocate(int fd, off_t base, off_t len)
 {
-       return -__syscall(SYS_fallocate, fd, __SYSCALL_LL(base),
-               __SYSCALL_LL(len));
+       return -__syscall(SYS_fallocate, fd, 0, __SYSCALL_LL_E(base),
+               __SYSCALL_LL_E(len));
 }
+
+LFS64(posix_fallocate);