Fixed incorrect syscall numbers for Mac

This commit is contained in:
Eduard Urbach 2025-01-31 21:59:30 +01:00
parent 6f6af97919
commit 8b54823f6e
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -1,3 +1,7 @@
exit(status Int) {
syscall(0x2000001, status)
}
fork() -> Int { fork() -> Int {
return syscall(0x2000002) return syscall(0x2000002)
} }
@ -27,9 +31,9 @@ munmap(address Pointer, length Int) -> Int {
} }
execve(path Pointer, argv Pointer, envp Pointer) -> Int { execve(path Pointer, argv Pointer, envp Pointer) -> Int {
return syscall(0x2000059, path, argv, envp) return syscall(0x200003B, path, argv, envp)
} }
exit(status Int) { waitid(type Int, id Int, info Pointer, options Int) -> Int {
syscall(0x2000001, status) return syscall(0x20000AD, type, id, info, options)
} }