summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2022-05-02 19:25:02 +0200
committerdzwdz2022-05-02 19:25:02 +0200
commit577ed9e01a83c13bf151b5137e6fe1eace1c4f7c (patch)
tree750dd8a3536ce70d817e6920c89042ee94899a29 /src/shared
parentd9dc6a0c4c5047c3789a16ef623eeff7c240f5a9 (diff)
syscalls: fork() noreap flag
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/syscalls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h
index 9b250ab..5773190 100644
--- a/src/shared/syscalls.h
+++ b/src/shared/syscalls.h
@@ -2,6 +2,8 @@
#include <shared/types.h>
#include <stddef.h>
+#define FORK_NOREAP 1
+
enum {
// idc about stable syscall numbers just yet
_SYSCALL_EXIT,
@@ -38,7 +40,7 @@ int _syscall_await(void);
* All user memory pages get copied too.
* @return 0 in the child, a meaningless positive value in the parent.
*/
-int _syscall_fork(void);
+int _syscall_fork(int flags);
handle_t _syscall_open(const char __user *path, int len);