about summary refs log tree commit diff
path: root/src/mman/mlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman/mlock.c')
-rw-r--r--src/mman/mlock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mman/mlock.c b/src/mman/mlock.c
new file mode 100644
index 00000000..3c7c653c
--- /dev/null
+++ b/src/mman/mlock.c
@@ -0,0 +1,7 @@
+#include <sys/mman.h>
+#include "syscall.h"
+
+int mlock(const void *addr, size_t len)
+{
+	return syscall2(__NR_mlock, (long)addr, len);
+}