Fixed incorrect syscall numbers for Mac
This commit is contained in:
parent
a878448fc5
commit
cad7e4b625
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue