diff options
author | Anton Kling <anton@kling.gg> | 2023-10-24 14:10:07 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-24 14:10:07 +0200 |
commit | 2292b11e82a3d6d70e7bb932c512155dc13c5025 (patch) | |
tree | da7d90e778495bc9a67ee0e09b32813c11dc6fe5 /scalls/shm.h | |
parent | e93a49d1eadf4a4b36369e67f112f8c45a0d567e (diff) |
VFS/LibC: Create ftruncate function and corresponding syscall and libc implementation
Previously this function was only used for shared memory region created
by shm_open because I was lazy. Now exists for all files.
Diffstat (limited to 'scalls/shm.h')
-rw-r--r-- | scalls/shm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scalls/shm.h b/scalls/shm.h index 6d4e13e..80e4366 100644 --- a/scalls/shm.h +++ b/scalls/shm.h @@ -10,11 +10,5 @@ typedef struct SYS_SHM_OPEN_PARAMS { 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 |