diff options
author | dzwdz | 2021-09-20 19:30:37 +0200 |
---|---|---|
committer | dzwdz | 2021-09-20 19:30:37 +0200 |
commit | 6371724809b057b25a4efd6c022e7d95068c42f1 (patch) | |
tree | 5cc6484ae767cd27f2ae4ccd24c0fb01e9beb163 /src/init/syscalls.c | |
parent | 9a08099fb7148a69b0655f0e559661b1021b17b5 (diff) |
add an offset parameter to read() and write()
Diffstat (limited to 'src/init/syscalls.c')
-rw-r--r-- | src/init/syscalls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 7d0fef9..f32594e 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -22,12 +22,12 @@ int _syscall_mount(handle_t handle, const char __user *path, int len) { return _syscall(_SYSCALL_MOUNT, handle, (int)path, len, 0); } -int _syscall_read(handle_t handle, char __user *buf, int len) { - return _syscall(_SYSCALL_READ, handle, (int)buf, len, 0); +int _syscall_read(handle_t handle, char __user *buf, int len, int offset) { + return _syscall(_SYSCALL_READ, handle, (int)buf, len, offset); } -int _syscall_write(handle_t handle, const char __user *buf, int len) { - return _syscall(_SYSCALL_WRITE, handle, (int)buf, len, 0); +int _syscall_write(handle_t handle, const char __user *buf, int len, int offset) { + return _syscall(_SYSCALL_WRITE, handle, (int)buf, len, offset); } int _syscall_close(handle_t handle) { |