diff options
author | dzwdz | 2022-08-11 21:16:15 +0200 |
---|---|---|
committer | dzwdz | 2022-08-11 21:16:15 +0200 |
commit | 12aee8d9c127a85105b3e8f24cbcebc61c2db3e4 (patch) | |
tree | 627cefddb41a26f5e7c4ea7fb2537db8e9faf5f4 /src/shared | |
parent | 9438c2fdaf4e75c9218a5fde84f121a7a0abb457 (diff) |
vfs: support for removing files
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/include/camellia/errno.h | 1 | ||||
-rw-r--r-- | src/shared/include/camellia/syscalls.h | 2 | ||||
-rw-r--r-- | src/shared/include/camellia/types.h | 1 |
3 files changed, 4 insertions, 0 deletions
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, }; |