From 8b54823f6e925806e12b0c57b4a199f11333208f Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 31 Jan 2025 21:59:30 +0100 Subject: [PATCH] Fixed incorrect syscall numbers for Mac --- lib/sys/sys_mac.q | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/sys/sys_mac.q b/lib/sys/sys_mac.q index 25389b5..24fd36d 100644 --- a/lib/sys/sys_mac.q +++ b/lib/sys/sys_mac.q @@ -1,3 +1,7 @@ +exit(status Int) { + syscall(0x2000001, status) +} + fork() -> Int { return syscall(0x2000002) } @@ -27,9 +31,9 @@ munmap(address Pointer, length Int) -> Int { } execve(path Pointer, argv Pointer, envp Pointer) -> Int { - return syscall(0x2000059, path, argv, envp) + return syscall(0x200003B, path, argv, envp) } -exit(status Int) { - syscall(0x2000001, status) +waitid(type Int, id Int, info Pointer, options Int) -> Int { + return syscall(0x20000AD, type, id, info, options) } \ No newline at end of file