Home
last modified time | relevance | path

Searched refs:sh_state (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h472 #define sh_state(x) ( 1<<(x)) macro
473 #define sh_isstate(x) (sh.st.states&sh_state(x))
474 #define sh_onstate(x) (sh.st.states |= sh_state(x))
475 #define sh_offstate(x) (sh.st.states &= ~sh_state(x))
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c619 if(!(sp->nofork = sh_state(SH_NOFORK))) in sh_subshell()
621 flags |= sh_state(SH_NOFORK); in sh_subshell()
626 flags &= ~sh_state(SH_NOFORK); in sh_subshell()
H A Dxec.c617 mode = sh_state(SH_INTERACTIVE); in sh_eval()
983 int errorflg = (type&sh_state(SH_ERREXIT))|OPTIMIZE; in sh_exec()
984 int execflg = (type&sh_state(SH_NOFORK)); in sh_exec()
985 int execflg2 = (type&sh_state(SH_FORKED)); in sh_exec()
986 int mainloop = (type&sh_state(SH_INTERACTIVE)); in sh_exec()
988 int ntflag = (type&sh_state(SH_NTFORK)); in sh_exec()
1001 if(flags&sh_state(SH_INTERACTIVE)) in sh_exec()
1009 flags &= ~sh_state(SH_INTERACTIVE); in sh_exec()
1879 sh_exec(t->fork.forktre,flags|sh_state(SH_NOFORK)|sh_state(SH_FORKED)); in sh_exec()
2708 sh_exec(t->for_.fortre,flags|sh_state(SH_ERREXIT)); in sh_exec()
[all …]
H A Dmain.c582 execflags = sh_state(SH_ERREXIT)|sh_state(SH_INTERACTIVE); in exfile()
H A Dpath.c1284 sh_setstate(sh_state(SH_FORKED)); in exscript()