summaryrefslogtreecommitdiff
path: root/scalls/mmap.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
commit4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch)
tree80f156b7940d9d19971395f335530170c69516c7 /scalls/mmap.h
Move everything into a new repo.
Diffstat (limited to 'scalls/mmap.h')
-rw-r--r--scalls/mmap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/scalls/mmap.h b/scalls/mmap.h
new file mode 100644
index 0000000..f5e121e
--- /dev/null
+++ b/scalls/mmap.h
@@ -0,0 +1,13 @@
+#include <stddef.h>
+#include <stdint.h>
+
+typedef struct SYS_MMAP_PARAMS {
+ void *addr;
+ size_t length;
+ int prot;
+ int flags;
+ int fd;
+ size_t offset;
+} __attribute__((packed)) SYS_MMAP_PARAMS;
+
+void *syscall_mmap(SYS_MMAP_PARAMS *args);