diff options
author | dzwdz | 2021-08-22 13:40:22 +0200 |
---|---|---|
committer | dzwdz | 2021-08-22 13:40:22 +0200 |
commit | ac74cec51fa9c31e4c8cea2dd9f01b7b895d61b4 (patch) | |
tree | 9bd017bf5e1f17b621dfc034b230a45159fb7e30 /src/kernel/syscalls.h | |
parent | 6d8f2d0e93228a1aaecace14eb345fe1224b211f (diff) |
fs_open() stub
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) */ |