From 4e09bca9e34c226b6d7e34b4fa11248405fd988e Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 22 Oct 2023 19:50:38 +0200 Subject: Move everything into a new repo. --- scalls/shm.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scalls/shm.h (limited to 'scalls/shm.h') 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 +#include +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 -- cgit v1.2.3