summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2022-04-12 19:44:38 +0200
committerdzwdz2022-04-12 19:44:38 +0200
commit008ac1574e127162f095a75f63c4c1be5d03b6d0 (patch)
tree23c7d249ec1e7b3ca85562a0e4a62a9221fb298c /src/shared
parent75ec633805db108bfddb6454ff7f8d812475feaf (diff)
kernel: make all sizes unsigned, sort out the sign mess
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/syscalls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h
index 3e21b6c..9b250ab 100644
--- a/src/shared/syscalls.h
+++ b/src/shared/syscalls.h
@@ -43,16 +43,16 @@ int _syscall_fork(void);
handle_t _syscall_open(const char __user *path, int len);
int _syscall_mount(handle_t, const char __user *path, int len);
-int _syscall_read(handle_t, void __user *buf, int len, int offset);
-int _syscall_write(handle_t, const void __user *buf, int len, int offset);
+int _syscall_read(handle_t, void __user *buf, size_t len, int offset);
+int _syscall_write(handle_t, const void __user *buf, size_t len, int offset);
int _syscall_close(handle_t);
handle_t _syscall_fs_fork2(void);
struct fs_wait_response {
enum vfs_operation op;
- int len; // how much was put in *buf
- int capacity; // how much output can be accepted by the caller
+ size_t len; // how much was put in *buf
+ size_t capacity; // how much output can be accepted by the caller
int id; // file id (returned by the open handler, passed to other calls)
int offset;
};