summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2021-11-02 20:22:51 +0100
committerdzwdz2021-11-02 20:22:51 +0100
commit55121883effaca2c8b35cff956092e6f0a99f8ce (patch)
treecb38e53d855e3dab3eb6962fb19d9bff7c7bc20e /src/shared
parenta957c8f0c6b35171378522e03b4360cfc5527832 (diff)
fork2() refactor: implement fs_fork2()
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/syscalls.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h
index 1779dc8..f136ed2 100644
--- a/src/shared/syscalls.h
+++ b/src/shared/syscalls.h
@@ -15,7 +15,7 @@ enum {
_SYSCALL_WRITE,
_SYSCALL_CLOSE,
- _SYSCALL_FS_CREATE,
+ _SYSCALL_FS_FORK2,
_SYSCALL_FS_WAIT,
_SYSCALL_FS_RESPOND,
@@ -47,10 +47,8 @@ int _syscall_read(handle_t, char __user *buf, int len, int offset);
int _syscall_write(handle_t, const char __user *buf, int len, int offset);
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(void);
+handle_t _syscall_fs_fork2(void);
+
struct fs_wait_response {
int len; // how much was put in *buf
int id; // file id (returned by the open handler, passed to other calls)