From 2c0113cb72b63ba7177d14a60bcd9e51eee8e5cf Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 15:51:45 +0200 Subject: basic mount resolving --- src/kernel/syscalls.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/syscalls.h') diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h index 5f55454..c8dca05 100644 --- a/src/kernel/syscalls.h +++ b/src/kernel/syscalls.h @@ -3,6 +3,7 @@ #include typedef int fd_t; +typedef int fs_handle_t; enum { // idc about stable syscall numbers just yet @@ -11,6 +12,7 @@ enum { _SYSCALL_FORK, _SYSCALL_FS_OPEN, + _SYSCALL_MOUNT, _SYSCALL_DEBUGLOG }; @@ -32,6 +34,7 @@ int _syscall_await(char *buf, int len); int _syscall_fork(); fd_t _syscall_fs_open(const char *path, size_t len); +int _syscall_mount(const char *path, int len, fd_t fd); /** Prints a message to the debug console. * @return the amount of bytes written (can be less than len) -- cgit v1.2.3