Lines Matching refs:flag
66 register int flag=0;
114 flag = shp->sigflag[sig]&~SH_SIGOFF;
119 if(flag&SH_SIGIGNORE)
126 if(flag&SH_SIGDONE)
129 if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subshell)
171 if(pp->mode==SH_JMPCMD || (pp->mode==1 && shp->bltinfun) && !(flag&SH_SIGIGNORE))
180 flag = SH_SIGTRAP;
185 flag = SH_SIGSET;
210 shp->trapnote |= flag;
212 shp->sigflag[sig] |= flag;
278 register int flag;
283 else if(!((flag=sh.sigflag[sig])&(SH_SIGFAULT|SH_SIGOFF)))
289 flag |= SH_SIGOFF;
293 flag |= SH_SIGFAULT;
297 flag &= ~(SH_SIGSET|SH_SIGTRAP);
298 sh.sigflag[sig] = flag;
307 register int flag, sig = shgd->sigmax;
311 flag = sh.sigflag[sig];
312 if((flag&(SH_SIGDONE|SH_SIGIGNORE|SH_SIGINTERACTIVE)) && !(flag&(SH_SIGFAULT|SH_SIGOFF)))
325 register int flag, sig=sh.st.trapmax;
330 flag = sh.sigflag[sig]&~(SH_SIGTRAP|SH_SIGSET);
341 flag &= ~SH_SIGFAULT;
342 flag |= SH_SIGOFF;
344 sh.sigflag[sig] = flag;
368 register int flag = sh.sigflag[sig];
371 if(!(flag&SH_SIGFAULT))
373 flag &= ~(SH_SIGTRAP|SH_SIGSET);
380 sh.sigflag[sig] = flag;