From 12aee8d9c127a85105b3e8f24cbcebc61c2db3e4 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 11 Aug 2022 21:16:15 +0200 Subject: vfs: support for removing files --- src/shared/include/camellia/errno.h | 1 + src/shared/include/camellia/syscalls.h | 2 ++ src/shared/include/camellia/types.h | 1 + 3 files changed, 4 insertions(+) (limited to 'src/shared') diff --git a/src/shared/include/camellia/errno.h b/src/shared/include/camellia/errno.h index 5a9e743..e352015 100644 --- a/src/shared/include/camellia/errno.h +++ b/src/shared/include/camellia/errno.h @@ -7,3 +7,4 @@ #define ERANGE 6 #define ENOMEM 7 #define ENOENT 8 +#define ENOTEMPTY 9 diff --git a/src/shared/include/camellia/syscalls.h b/src/shared/include/camellia/syscalls.h index ade75a5..b6c93fe 100644 --- a/src/shared/include/camellia/syscalls.h +++ b/src/shared/include/camellia/syscalls.h @@ -21,6 +21,7 @@ enum { _SYSCALL_READ, _SYSCALL_WRITE, _SYSCALL_GETSIZE, + _SYSCALL_REMOVE, _SYSCALL_CLOSE, _SYSCALL_FS_FORK2, @@ -65,6 +66,7 @@ handle_t _syscall_dup(handle_t from, handle_t to, int flags); long _syscall_read(handle_t h, void __user *buf, size_t len, long offset); long _syscall_write(handle_t h, const void __user *buf, size_t len, long offset, int flags); long _syscall_getsize(handle_t h); +long _syscall_remove(handle_t h); long _syscall_close(handle_t h); struct fs_wait_response { diff --git a/src/shared/include/camellia/types.h b/src/shared/include/camellia/types.h index cb17b3a..622d705 100644 --- a/src/shared/include/camellia/types.h +++ b/src/shared/include/camellia/types.h @@ -17,5 +17,6 @@ enum vfs_operation { VFSOP_READ, VFSOP_WRITE, VFSOP_GETSIZE, + VFSOP_REMOVE, VFSOP_CLOSE, }; -- cgit v1.2.3