From ba1952bf4c08b7783854d501ba30815a2aa2574c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 24 Oct 2023 20:16:04 +0200 Subject: Add ftruncate syscalls that I forgot to add --- scalls/ftruncate.c | 6 ++++++ scalls/ftruncate.h | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 scalls/ftruncate.c create mode 100644 scalls/ftruncate.h (limited to 'scalls') diff --git a/scalls/ftruncate.c b/scalls/ftruncate.c new file mode 100644 index 0000000..6bc1170 --- /dev/null +++ b/scalls/ftruncate.c @@ -0,0 +1,6 @@ +#include +#include + +int syscall_ftruncate(int fd, size_t length) { + return vfs_ftruncate(fd, length); +} diff --git a/scalls/ftruncate.h b/scalls/ftruncate.h new file mode 100644 index 0000000..9213e85 --- /dev/null +++ b/scalls/ftruncate.h @@ -0,0 +1,2 @@ +#include +int syscall_ftruncate(int fd, size_t length); -- cgit v1.2.3