diff options
Diffstat (limited to 'src/cmd/rc/exec.h')
-rw-r--r-- | src/cmd/rc/exec.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cmd/rc/exec.h b/src/cmd/rc/exec.h index 1704b6f3..06d2991f 100644 --- a/src/cmd/rc/exec.h +++ b/src/cmd/rc/exec.h @@ -5,6 +5,7 @@ extern void Xappend(void), Xasync(void), Xbackq(void), Xbang(void), Xclose(void) extern void Xconc(void), Xcount(void), Xdelfn(void), Xdol(void), Xqdol(void), Xdup(void); extern void Xexit(void), Xfalse(void), Xfn(void), Xfor(void), Xglob(void); extern void Xjump(void), Xmark(void), Xmatch(void), Xpipe(void), Xread(void); +extern void Xrdwr(void); extern void Xrdfn(void), Xunredir(void), Xstar(void), Xreturn(void), Xsubshell(void); extern void Xtrue(void), Xword(void), Xwrite(void), Xpipefd(void), Xcase(void); extern void Xlocal(void), Xunlocal(void), Xassign(void), Xsimple(void), Xpopm(void); @@ -51,7 +52,6 @@ struct thread{ int iflag; /* interactive? */ int lineno; /* linenumber */ int pid; /* process for Xpipewait to wait for */ - int done; /* have we seen a wait message for this process? */ char status[NSTATUS]; /* status for Xpipewait */ tree *treenodes; /* tree nodes created by this process */ thread *ret; /* who continues when this finishes */ @@ -61,12 +61,16 @@ code *codecopy(code*); code *codebuf; /* compiler output */ int ntrap; /* number of outstanding traps */ int trap[NSIG]; /* number of outstanding traps per type */ -extern struct builtin{ +struct builtin{ char *name; void (*fnc)(void); -}Builtin[]; +}; +extern struct builtin Builtin[]; int eflagok; /* kludge flag so that -e doesn't exit in startup */ +int havefork; + void execcd(void), execwhatis(void), execeval(void), execexec(void); +int execforkexec(void); void execexit(void), execshift(void); void execwait(void), execumask(void), execdot(void), execflag(void); void execfunc(var*), execcmds(io *); |