diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
commit | 4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch) | |
tree | 80f156b7940d9d19971395f335530170c69516c7 /scalls/mmap.h |
Move everything into a new repo.
Diffstat (limited to 'scalls/mmap.h')
-rw-r--r-- | scalls/mmap.h | 13 |
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); |