Reorganized sys functions
This commit is contained in:
15
lib/sys/proc_mac.q
Normal file
15
lib/sys/proc_mac.q
Normal file
@ -0,0 +1,15 @@
|
||||
exit(status Int) {
|
||||
syscall(0x2000001, status)
|
||||
}
|
||||
|
||||
fork() -> Int {
|
||||
return syscall(0x2000002)
|
||||
}
|
||||
|
||||
execve(path Pointer, argv Pointer, envp Pointer) -> Int {
|
||||
return syscall(0x200003B, path, argv, envp)
|
||||
}
|
||||
|
||||
waitid(type Int, id Int, info Pointer, options Int) -> Int {
|
||||
return syscall(0x20000AD, type, id, info, options)
|
||||
}
|
Reference in New Issue
Block a user