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. --- userland/libc/include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/libc/include') diff --git a/userland/libc/include/unistd.h b/userland/libc/include/unistd.h index e43dc33..7d74097 100644 --- a/userland/libc/include/unistd.h +++ b/userland/libc/include/unistd.h @@ -10,7 +10,7 @@ extern int opterr, optind, optopt; extern char *optarg; int close(int fildes); -int ftruncate(int fildes, uint64_t length); +int ftruncate(int fildes, size_t length); int execv(char *path, char **argv); int pipe(int fd[2]); int dup2(int org_fd, int new_fd); -- cgit v1.2.3