From 2292b11e82a3d6d70e7bb932c512155dc13c5025 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 24 Oct 2023 14:10:07 +0200 Subject: 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. --- scalls/shm.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'scalls/shm.h') 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 -- cgit v1.2.3