basic fork foo, function itself is empty

This commit is contained in:
user
2026-02-25 00:33:16 +01:00
parent 1ca72b695e
commit 252a36ae4e
4 changed files with 13 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ namespace Syscall {
SEND = 13,
RECEIVE = 14,
REPLY = 15,
// FORK = 16
FORK = 16
};
} // namespace Syscall
@@ -97,3 +97,8 @@ extern "C" ssize_t sys_safe_call(Syscall::ID id, size_t p1, size_t p2,
[[gnu::always_inline]] static inline bool reply(const void* buffer, size_t size) {
return sys_call(Syscall::ID::REPLY, (size_t)buffer, size,0,0,0);
}
[[gnu::always_inline]] static inline int fork() {
return sys_call(Syscall::ID::FORK,0,0,0,0,0);
}