summaryrefslogtreecommitdiff
path: root/src/init/syscalls.c
diff options
context:
space:
mode:
authordzwdz2021-09-07 18:33:56 +0200
committerdzwdz2021-09-07 18:33:56 +0200
commit844cd82f89e003a83d763402a6a20abc22252322 (patch)
tree7144f7c7aa4fad572759dbc05b2374f999ffa0d4 /src/init/syscalls.c
parente447090093a01fea0b27c4340fcb54bbf9ae3396 (diff)
implement fs_create(), front/back fs handles
Diffstat (limited to 'src/init/syscalls.c')
-rw-r--r--src/init/syscalls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init/syscalls.c b/src/init/syscalls.c
index 730a243..4c645c2 100644
--- a/src/init/syscalls.c
+++ b/src/init/syscalls.c
@@ -36,3 +36,7 @@ int _syscall_write(handle_t handle, user_ptr buf, int len) {
int _syscall_close(handle_t handle) {
return _syscall(_SYSCALL_CLOSE, handle, 0, 0);
}
+
+handle_t _syscall_fs_create(user_ptr back) {
+ return _syscall(_SYSCALL_FS_CREATE, (int)back, 0, 0);
+}