diff options
author | dzwdz | 2022-07-10 23:17:27 +0200 |
---|---|---|
committer | dzwdz | 2022-07-10 23:17:27 +0200 |
commit | d3be139a93c578d1e055bfd5f6f79eda312091f9 (patch) | |
tree | 0d2bf35333017e41c88fea49969d12fdad0a08c2 /src/shared | |
parent | 45c5bf044a063a289fad6a53b8d27ce675d9c272 (diff) |
syscalls: implement dup
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/syscalls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index f19f05a..1383ebd 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -15,6 +15,7 @@ enum { _SYSCALL_OPEN, _SYSCALL_MOUNT, + _SYSCALL_DUP, _SYSCALL_READ, _SYSCALL_WRITE, @@ -53,8 +54,9 @@ int _syscall_await(void); int _syscall_fork(int flags, handle_t __user *fs_front); handle_t _syscall_open(const char __user *path, int len, int flags); - int _syscall_mount(handle_t h, const char __user *path, int len); +handle_t _syscall_dup(handle_t from, handle_t to, int flags); + int _syscall_read(handle_t h, void __user *buf, size_t len, int offset); int _syscall_write(handle_t h, const void __user *buf, size_t len, int offset); int _syscall_close(handle_t h); |