Removed old syscalls
This commit is contained in:
parent
fb19ee2373
commit
4550892f58
7 changed files with 143 additions and 107 deletions
|
@ -3,6 +3,10 @@ const {
|
|||
pid 1
|
||||
}
|
||||
|
||||
sig {
|
||||
chld 17
|
||||
}
|
||||
|
||||
state {
|
||||
exited 0x4
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue