Searched refs:sh_state (Results 1 – 5 of 5) sorted by relevance
472 #define sh_state(x) ( 1<<(x)) macro473 #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))
617 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()1993 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec()[all …]
619 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()
582 execflags = sh_state(SH_ERREXIT)|sh_state(SH_INTERACTIVE); in exfile()
1284 sh_setstate(sh_state(SH_FORKED)); in exscript()