about summary refs log tree commit diff
path: root/src/mman/mlockall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman/mlockall.c')
-rw-r--r--src/mman/mlockall.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mman/mlockall.c b/src/mman/mlockall.c
new file mode 100644
index 00000000..782fc9db
--- /dev/null
+++ b/src/mman/mlockall.c
@@ -0,0 +1,7 @@
+#include <sys/mman.h>
+#include "syscall.h"
+
+int mlockall(int flags)
+{
+	return syscall1(__NR_mlockall, flags);
+}