diff options
author | dzwdz | 2022-06-29 21:52:15 +0200 |
---|---|---|
committer | dzwdz | 2022-06-29 21:52:15 +0200 |
commit | bf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 (patch) | |
tree | f302f92badf74dade9e724e37f85d1ee2dd99833 /src/init/syscalls.c | |
parent | 43de6a4d8ead1e609828ef34ad1957d34c94ee6a (diff) |
kernel/vfs: add the OPEN_CREATE flag
Diffstat (limited to 'src/init/syscalls.c')
-rw-r--r-- | src/init/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/syscalls.c b/src/init/syscalls.c index 7c3664c..e48043f 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -18,8 +18,8 @@ int _syscall_fork(int flags, handle_t __user *fs_front) { return _syscall(_SYSCALL_FORK, flags, (int)fs_front, 0, 0); } -handle_t _syscall_open(const char __user *path, int len) { - return _syscall(_SYSCALL_OPEN, (int)path, len, 0, 0); +handle_t _syscall_open(const char __user *path, int len, int flags) { + return _syscall(_SYSCALL_OPEN, (int)path, len, flags, 0); } int _syscall_mount(handle_t h, const char __user *path, int len) { |