diff options
author | dzwdz | 2021-09-04 15:25:40 +0200 |
---|---|---|
committer | dzwdz | 2021-09-04 15:25:40 +0200 |
commit | 57ce367309de9ac1b1938202156eac554420bb2a (patch) | |
tree | 7be24257975d47a7db6e4c5a999b6e1951142ff3 /src/shared | |
parent | a5bd09d5a995400c4f4ec1270e1ad380d238783c (diff) |
rename file descriptors to handles
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/syscalls.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index a4957a9..d65723d 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -3,8 +3,7 @@ #pragma once #include <stddef.h> -typedef int fd_t; -typedef int fs_handle_t; +typedef int handle_t; enum { // idc about stable syscall numbers just yet @@ -36,9 +35,9 @@ int _syscall_await(user_ptr buf, int len); */ int _syscall_fork(void); -fd_t _syscall_fs_open(const user_ptr path, int len); +handle_t _syscall_fs_open(const user_ptr path, int len); -int _syscall_fd_mount(fd_t fd, const user_ptr path, int len); -int _syscall_fd_read(fd_t fd, user_ptr buf, int len); -int _syscall_fd_write(fd_t fd, user_ptr buf, int len); -int _syscall_fd_close(fd_t fd); +int _syscall_fd_mount(handle_t, const user_ptr path, int len); +int _syscall_fd_read(handle_t, user_ptr buf, int len); +int _syscall_fd_write(handle_t, user_ptr buf, int len); +int _syscall_fd_close(handle_t); |