summaryrefslogtreecommitdiff
path: root/src/_forced/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/_forced/mmap.h')
-rw-r--r--src/_forced/mmap.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/_forced/mmap.h b/src/_forced/mmap.h
new file mode 100644
index 00000000..65c1ef01
--- /dev/null
+++ b/src/_forced/mmap.h
@@ -0,0 +1,11 @@
+#include "_syscall.h"
+
+#define mmap(_a, _l, _p, _fl, _fd, _o) (void*)__syscall(__sys_mmap, _a, _l, _p, _fl, _fd, _o)
+
+#define PROT_NONE 0x0
+#define PROT_READ 0x1
+#define PROT_WRITE 0x2
+#define MAP_PRIVATE 0x02
+#define MAP_FAILED (void*)(-1)
+#define MAP_ANONYMOUS (0x20)
+