diff options
Diffstat (limited to 'src/kernel/syscalls.h')
-rw-r--r-- | src/kernel/syscalls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h index 83a68b2..5f55454 100644 --- a/src/kernel/syscalls.h +++ b/src/kernel/syscalls.h @@ -2,12 +2,16 @@ #pragma once #include <stddef.h> +typedef int fd_t; + enum { // idc about stable syscall numbers just yet _SYSCALL_EXIT, _SYSCALL_AWAIT, _SYSCALL_FORK, + _SYSCALL_FS_OPEN, + _SYSCALL_DEBUGLOG }; @@ -27,6 +31,8 @@ int _syscall_await(char *buf, int len); */ int _syscall_fork(); +fd_t _syscall_fs_open(const char *path, size_t len); + /** Prints a message to the debug console. * @return the amount of bytes written (can be less than len) */ |