summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2022-08-05 15:54:32 +0200
committerdzwdz2022-08-05 15:54:32 +0200
commit99e15199ef24d4f262683b47a529f1b239c4dcd9 (patch)
tree7d4514964c91fc1c46da39cb830fdec165166730 /src/shared
parent0f3c70649a3d8035b0c0f9658705505948b2c60a (diff)
add _syscall_getsize
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/include/camellia/syscalls.h2
-rw-r--r--src/shared/include/camellia/types.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/include/camellia/syscalls.h b/src/shared/include/camellia/syscalls.h
index 40cb68d..ade75a5 100644
--- a/src/shared/include/camellia/syscalls.h
+++ b/src/shared/include/camellia/syscalls.h
@@ -20,6 +20,7 @@ enum {
_SYSCALL_READ,
_SYSCALL_WRITE,
+ _SYSCALL_GETSIZE,
_SYSCALL_CLOSE,
_SYSCALL_FS_FORK2,
@@ -63,6 +64,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_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 f47e1bb..cb17b3a 100644
--- a/src/shared/include/camellia/types.h
+++ b/src/shared/include/camellia/types.h
@@ -16,5 +16,6 @@ enum vfs_operation {
VFSOP_OPEN,
VFSOP_READ,
VFSOP_WRITE,
+ VFSOP_GETSIZE,
VFSOP_CLOSE,
};