Added fork and execve syscalls for Mac

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

View File

@ -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)
} }