diff options
author | Anton Kling <anton@kling.gg> | 2023-10-24 20:16:04 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-24 20:16:04 +0200 |
commit | ba1952bf4c08b7783854d501ba30815a2aa2574c (patch) | |
tree | 0ec3e1efde111c336568b8804cbb0eeefa389080 /scalls/ftruncate.c | |
parent | 11292853de086dce7d443d5f80bf5a0e8ffc0335 (diff) |
Add ftruncate syscalls that I forgot to add
Diffstat (limited to 'scalls/ftruncate.c')
-rw-r--r-- | scalls/ftruncate.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <fs/vfs.h> +#include <scalls/ftruncate.h> + +int syscall_ftruncate(int fd, size_t length) { + return vfs_ftruncate(fd, length); +} |