summaryrefslogtreecommitdiff
path: root/scalls/shm.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/shm.h
Move everything into a new repo.
Diffstat (limited to 'scalls/shm.h')
-rw-r--r--scalls/shm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/scalls/shm.h b/scalls/shm.h
new file mode 100644
index 0000000..6d4e13e
--- /dev/null
+++ b/scalls/shm.h
@@ -0,0 +1,20 @@
+#ifndef SYS_SHM_H
+#define SYS_SHM_H
+#include <stddef.h>
+#include <stdint.h>
+typedef int mode_t;
+
+typedef struct SYS_SHM_OPEN_PARAMS {
+ const char *name;
+ int oflag;
+ mode_t mode;
+} __attribute__((packed)) SYS_SHM_OPEN_PARAMS;
+
+typedef struct SYS_FTRUNCATE_PARAMS {
+ int fildes;
+ uint64_t length;
+} __attribute__((packed)) SYS_FTRUNCATE_PARAMS;
+
+int syscall_shm_open(SYS_SHM_OPEN_PARAMS *args);
+int syscall_ftruncate(SYS_FTRUNCATE_PARAMS *args);
+#endif