From 57ce367309de9ac1b1938202156eac554420bb2a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 4 Sep 2021 15:25:40 +0200 Subject: rename file descriptors to handles --- src/shared/syscalls.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/shared/syscalls.h') 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 -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); -- cgit v1.2.3