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.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scalls/shm.c') diff --git a/scalls/shm.c b/scalls/shm.c index 2e8924f..979084a 100644 --- a/scalls/shm.c +++ b/scalls/shm.c @@ -4,7 +4,3 @@ int syscall_shm_open(SYS_SHM_OPEN_PARAMS *args) { return shm_open(args->name, args->oflag, args->mode); } - -int syscall_ftruncate(SYS_FTRUNCATE_PARAMS *args) { - return ftruncate(args->fildes, args->length); -} -- cgit v1.2.3