aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/munmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sys/munmap.h')
-rw-r--r--lib/sys/munmap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sys/munmap.h b/lib/sys/munmap.h
new file mode 100644
index 0000000..4a876d6
--- /dev/null
+++ b/lib/sys/munmap.h
@@ -0,0 +1,9 @@
+#ifndef MUNMAP_H
+#define MUNMAP_H
+#include "syscall.h"
+
+static int munmap(void * addr, unsigned long size) {
+ return syscall(MUNMAP, addr, size);
+}
+
+#endif