summaryrefslogtreecommitdiff
path: root/lib/libc/mman/posix_madvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/mman/posix_madvise.c')
-rw-r--r--lib/libc/mman/posix_madvise.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/mman/posix_madvise.c b/lib/libc/mman/posix_madvise.c
new file mode 100644
index 00000000..a19adec2
--- /dev/null
+++ b/lib/libc/mman/posix_madvise.c
@@ -0,0 +1,7 @@
+#include <sys/mman.h>
+#include <syscall.h>
+
+int posix_madvise(void *addr, size_t len, int advice)
+{
+ return syscall(madvise, addr, len, advice);
+}