summaryrefslogtreecommitdiff
path: root/src/mman/mincore.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-09 16:37:19 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-09 16:37:19 -0400
commita660180c6a93681c6efb54fb5826c08d4df60208 (patch)
treeb44ffaf951f7bb76b913130097e53882cdc35d7b /src/mman/mincore.c
parent2416c63b81f7f79ea781725cf1117c191775c699 (diff)
downloadmusl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.gz
musl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.bz2
musl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.xz
musl-a660180c6a93681c6efb54fb5826c08d4df60208.zip
mincore syscall wrapper
Diffstat (limited to 'src/mman/mincore.c')
-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);
+}