Lines Matching refs:trap
395 int sh_debug(Shell_t *shp, const char *trap, const char *name, const char *subscript, char *const a… in sh_debug() argument
445 shp->st.trap[SH_DEBUGTRAP] = 0; in sh_debug()
446 n = sh_trap(trap,0); in sh_debug()
705 char *trap; in sh_exec() local
868 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
870 int n = sh_debug(shp,trap,(char*)0,(char*)0, com, ARG_RAW); in sh_exec()
999 … !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV)) in sh_exec()
1176 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && in sh_exec()
1455 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec()
1591 char *cp, *trap, *nullptr = 0; in sh_exec() local
1672 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
1679 sh_debug(shp,trap,(char*)0,(char*)0,av,0); in sh_exec()
1799 register char *trap; in sh_exec() local
1809 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
1810 sh_debug(shp,trap,(char*)0, (char*)0, arg, ARG_ARITH); in sh_exec()
1835 char *trap, *r = sh_macpat(shp,tt->sw.swarg,OPTIMIZE); in sh_exec() local
1838 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
1845 sh_debug(shp,trap, (char*)0, (char*)0, av, 0); in sh_exec()
2136 register char *trap; in sh_exec() local
2142 if(trap=shp->st.trap[SH_DEBUGTRAP]) in sh_exec()
2153 if(trap) in sh_exec()
2163 sh_debug(shp,trap,(char*)0,(char*)0,argv, 0); in sh_exec()
2171 if(trap || traceon) in sh_exec()
2176 if(trap) in sh_exec()
2183 sh_debug(shp,trap,(char*)0,(char*)0,argv, pattern); in sh_exec()
2553 register char *trap; in sh_funscope() local
2661 trap = shp->st.trapcom[0]; in sh_funscope()
2678 if(trap) in sh_funscope()
2680 sh_trap(trap,0); in sh_funscope()
2681 free(trap); in sh_funscope()
2964 register char *trap; in sigreset() local
2968 if((trap=sh.st.trapcom[sig]) && *trap==0) in sigreset()