diff options
author | dzwdz | 2021-09-07 18:33:56 +0200 |
---|---|---|
committer | dzwdz | 2021-09-07 18:33:56 +0200 |
commit | 844cd82f89e003a83d763402a6a20abc22252322 (patch) | |
tree | 7144f7c7aa4fad572759dbc05b2374f999ffa0d4 /src/shared | |
parent | e447090093a01fea0b27c4340fcb54bbf9ae3396 (diff) |
implement fs_create(), front/back fs handles
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/syscalls.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index 0222f37..29836b0 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -19,6 +19,8 @@ enum { _SYSCALL_READ, _SYSCALL_WRITE, _SYSCALL_CLOSE, + + _SYSCALL_FS_CREATE, }; /** Kills the current process. @@ -43,3 +45,8 @@ int _syscall_mount(handle_t, const user_ptr path, int len); int _syscall_read(handle_t, user_ptr buf, int len); int _syscall_write(handle_t, user_ptr buf, int len); int _syscall_close(handle_t); + +/** Creates a pair of front/back filesystem handles. + * @param back a pointer to a handle_t which will store the back pointer + */ +handle_t _syscall_fs_create(user_ptr back); |