Reorganized sys functions

This commit is contained in:
2025-02-06 13:46:37 +01:00
parent 170931cf5d
commit 9dcd43be46
15 changed files with 110 additions and 120 deletions

19
lib/sys/proc_linux.q Normal file
View File

@ -0,0 +1,19 @@
clone(flags Int, stack Pointer) -> Int {
return syscall(56, flags, stack)
}
fork() -> Int {
return syscall(57)
}
execve(path Pointer, argv Pointer, envp Pointer) -> Int {
return syscall(59, path, argv, envp)
}
exit(status Int) {
syscall(60, status)
}
waitid(type Int, id Int, info Pointer, options Int) -> Int {
return syscall(247, type, id, info, options)
}