Added fork and execve syscalls for Mac

This commit is contained in:
Eduard Urbach 2025-01-31 21:56:00 +01:00
parent 7fb5c8407f
commit a878448fc5
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

@ -1,3 +1,7 @@
fork() -> Int {
return syscall(0x2000002)
}
read(fd Int, address Pointer, length Int) -> Int {
return syscall(0x2000003, fd, address, length)
}
@ -22,6 +26,10 @@ munmap(address Pointer, length Int) -> Int {
return syscall(0x2000049, address, length)
}
execve(path Pointer, argv Pointer, envp Pointer) -> Int {
return syscall(0x2000059, path, argv, envp)
}
exit(status Int) {
syscall(0x2000001, status)
}