From 844cd82f89e003a83d763402a6a20abc22252322 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 7 Sep 2021 18:33:56 +0200 Subject: implement fs_create(), front/back fs handles --- src/shared/syscalls.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/shared') 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); -- cgit v1.2.3