add syscall wrappers for posix_fadvise, posix_fallocate
[musl] / src / fcntl / posix_fallocate.c
diff --git a/src/fcntl/posix_fallocate.c b/src/fcntl/posix_fallocate.c
new file mode 100644 (file)
index 0000000..d6680c1
--- /dev/null
@@ -0,0 +1,8 @@
+#include <fcntl.h>
+#include "syscall.h"
+
+int posix_fallocate(int fd, off_t base, off_t len)
+{
+       return -__syscall(SYS_fallocate, fd, __SYSCALL_LL(base),
+               __SYSCALL_LL(len));
+}