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