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 | |
| parent | 11292853de086dce7d443d5f80bf5a0e8ffc0335 (diff) | |
Add ftruncate syscalls that I forgot to add
| -rw-r--r-- | scalls/ftruncate.c | 6 | ||||
| -rw-r--r-- | scalls/ftruncate.h | 2 |
2 files changed, 8 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); +} 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 <stddef.h> +int syscall_ftruncate(int fd, size_t length); |