Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libshell/common/include/
H A Ddefs.h422 #define sh_state(x) ( 1<<(x)) macro
423 #define sh_isstate(x) (sh.st.states&sh_state(x))
424 #define sh_onstate(x) (sh.st.states |= sh_state(x))
425 #define sh_offstate(x) (sh.st.states &= ~sh_state(x))
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dmain.c591 execflags = sh_state(SH_ERREXIT)|sh_state(SH_INTERACTIVE); in exfile()
597 execflags |= sh_state(SH_NOFORK); in exfile()
H A Dsubshell.c564 if(!(sp->nofork = sh_state(SH_NOFORK))) in sh_subshell()
566 flags |= sh_state(SH_NOFORK); in sh_subshell()
571 flags &= ~sh_state(SH_NOFORK); in sh_subshell()
H A Dxec.c508 mode = sh_state(SH_INTERACTIVE); in sh_eval()
662 int errorflg = (type&sh_state(SH_ERREXIT))|OPTIMIZE; in sh_exec()
663 int execflg = (type&sh_state(SH_NOFORK)); in sh_exec()
664 int execflg2 = (type&sh_state(SH_FORKED)); in sh_exec()
665 int mainloop = (type&sh_state(SH_INTERACTIVE)); in sh_exec()
667 int ntflag = (type&sh_state(SH_NTFORK)); in sh_exec()
680 if(flags&sh_state(SH_INTERACTIVE)) in sh_exec()
686 flags &= ~sh_state(SH_INTERACTIVE); in sh_exec()
1361 sh_exec(t->fork.forktre,flags|sh_state(SH_NOFORK)|sh_state(SH_FORKED)); in sh_exec()
1455 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec()
H A Dpath.c1243 sh_setstate(sh_state(SH_FORKED)); in exscript()