Added fork and execve syscalls for Mac
This commit is contained in:
parent
8de582abf6
commit
6f6af97919
@ -1,3 +1,7 @@
|
|||||||
|
fork() -> Int {
|
||||||
|
return syscall(0x2000002)
|
||||||
|
}
|
||||||
|
|
||||||
read(fd Int, address Pointer, length Int) -> Int {
|
read(fd Int, address Pointer, length Int) -> Int {
|
||||||
return syscall(0x2000003, fd, address, length)
|
return syscall(0x2000003, fd, address, length)
|
||||||
}
|
}
|
||||||
@ -22,6 +26,10 @@ munmap(address Pointer, length Int) -> Int {
|
|||||||
return syscall(0x2000049, address, length)
|
return syscall(0x2000049, address, length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execve(path Pointer, argv Pointer, envp Pointer) -> Int {
|
||||||
|
return syscall(0x2000059, path, argv, envp)
|
||||||
|
}
|
||||||
|
|
||||||
exit(status Int) {
|
exit(status Int) {
|
||||||
syscall(0x2000001, status)
|
syscall(0x2000001, status)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user