diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-13 10:51:54 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-13 10:51:54 -0700 |
commit | f2efbb46ef89c7c1693400f7209113c50c959f02 (patch) | |
tree | 1c44494a9260dc270aac0a5291a7952ab0e74514 /sys/cmd/rc/havefork.c | |
parent | 0385c87c8434873bdb8b86d35700cdd61286b749 (diff) |
Feat(rc): working(ish) version of rc shell
Removed compile commands
Diffstat (limited to 'sys/cmd/rc/havefork.c')
-rw-r--r-- | sys/cmd/rc/havefork.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/cmd/rc/havefork.c b/sys/cmd/rc/havefork.c index 02120e8..b59e679 100644 --- a/sys/cmd/rc/havefork.c +++ b/sys/cmd/rc/havefork.c @@ -67,7 +67,7 @@ Xasync(void) close(null); runq->pc = runq->code[runq->pc].i; inttoascii(npid, pid); - setvar("apid", newword(npid, (word *)0)); + setvar("apid", newword(npid, (Word *)0)); break; } } @@ -75,7 +75,7 @@ Xasync(void) void Xpipe(void) { - struct thread *p = runq; + struct Thread *p = runq; int pc = p->pc, forkid; int lfd = p->code[pc++].i; int rfd = p->code[pc++].i; @@ -112,13 +112,13 @@ Xpipe(void) void Xbackq(void) { - struct thread *p = runq; + struct Thread *p = runq; char wd[8193]; int c, n; char *s, *ewd=&wd[8192], *stop, *q; - struct io *f; - var *ifs = vlook("ifs"); - word *v, *nextv; + struct Io *f; + Var *ifs = vlook("ifs"); + Word *v, *nextv; int pfd[2]; int pid; Rune r; @@ -185,7 +185,7 @@ Xbackq(void) void Xpipefd(void) { - struct thread *p = runq; + struct Thread *p = runq; int pc = p->pc, pid; char name[40]; int pfd[2]; |