about summary refs log tree commit diff
path: root/src/mman
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman')
-rw-r--r--src/mman/mincore.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mman/mincore.c b/src/mman/mincore.c
new file mode 100644
index 00000000..4bb19f85
--- /dev/null
+++ b/src/mman/mincore.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <sys/mman.h>
+#include "syscall.h"
+
+int mincore (void *addr, size_t len, unsigned char *vec)
+{
+	return syscall(SYS_mincore, addr, len, vec);
+}