Removed old syscalls

This commit is contained in:
2025-04-15 09:31:49 +02:00
parent 6483573923
commit 19a8154e06
7 changed files with 143 additions and 107 deletions

View File

@ -3,6 +3,10 @@ const {
pid 1
}
sig {
chld 17
}
state {
exited 0x4
}

View File

@ -8,14 +8,14 @@ main() {
loop {
io.write("λ ")
n := io.in(command)
n := io.read(command)
if n <= 0 {
return
}
command[n-1] = 0
pid := sys.fork()
pid := sys.clone(sig.chld, 0, 0, 0, 0)
if pid == 0 {
sys.execve(command, 0, 0)