Lines Matching refs:mode
464 int sh_eval(register Sfio_t *iop, int mode)
478 if (mode & SH_TOPFUN)
480 mode ^= SH_TOPFUN;
488 if(mode&SH_READEVAL)
494 t = (Shnode_t*)sh_parse(shp,iop,(mode&(SH_READEVAL|SH_FUNEVAL))?mode&SH_FUNEVAL:SH_NL);
495 if(!(mode&SH_FUNEVAL) || !sfreserve(iop,0,0))
497 if(!(mode&SH_READEVAL))
500 mode &= ~SH_FUNEVAL;
502 mode &= ~SH_READEVAL;
505 if((mode&~SH_FUNEVAL) && shp->hist_ptr)
508 mode = sh_state(SH_INTERACTIVE);
510 sh_exec(t,sh_isstate(SH_ERREXIT)|sh_isstate(SH_NOFORK)|(mode&~SH_FUNEVAL));
511 if(!(mode&SH_FUNEVAL))
639 static void unset_instance(Namval_t *nq, Namval_t *node, struct Namref *nr,long mode)
646 nv_putsub(nq, nr->sub, mode);
1096 long mode;
1126 mode = set_instance(shp,nq,&node,&nr);
1148 unset_instance(nq,&node,&nr,mode);
1177 ((struct checkpt*)shp->jmplist)->mode!=SH_JMPEVAL &&
1595 int jmpval = ((struct checkpt*)shp->jmplist)->mode;
1720 int jmpval = ((struct checkpt*)shp->jmplist)->mode;
2758 long mode;
2776 mode = set_instance(shp,nq,&node, &nr);
2802 unset_instance(nq, &node, &nr, mode);
2962 static void sigreset(int mode)
2969 signal(sig,mode?sh_fault:SIG_IGN);