Searched refs:trapcom (Results 1 - 8 of 8) sorted by relevance

/ast/src/cmd/ksh93/bltins/
H A Dtrap.c140 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); local
141 if(arg=trapcom[sig])
154 arg = shp->st.trapcom[sig];
156 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action);
397 register char *trap,**trapcom; local
400 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom);
403 if(!(trap=trapcom[sig]))
/ast/src/cmd/ksh93/sh/
H A Dfault.c87 trap = shp->st.trapcom[sig];
253 shp->st.trapcom = (char**)calloc(n,sizeof(char*));
328 if(trap=sh.st.trapcom[sig])
335 sh.st.trapcom[sig] = 0;
357 sh.st.trapcom[0] = 0;
374 if(trap=sh.st.trapcom[sig])
378 sh.st.trapcom[sig]=0;
417 if((shp->sigflag[SIGCHLD]&SH_SIGTRAP) && shp->st.trapcom[SIGCHLD])
418 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],1);
431 if(trap=shp->st.trapcom[si
[all...]
H A Dsubshell.c185 char *trap = shp->st.trapcom[0];
216 shp->st.trapcom[0] = trap;
574 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
577 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig);
628 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell)
631 char *trap=shp->st.trapcom[0];
632 shp->st.trapcom[0] = 0; /* prevent recursion */
728 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*));
734 memcpy((char*)&shp->st.trapcom[0],savsig,nsig);
H A Dxec.c823 if((trap=shp->st.trapcom[sig]) && *trap==0)
1341 type = (execflg && !shp->subshell && !shp->st.trapcom[0]);
1382 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV))
1606 !(shp->st.trapcom[SIGINT] && *shp->st.trapcom[SIGINT]) &&
1607 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] &&
1981 if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK)))
1987 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
1990 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig);
2014 shp->st.trapcom[
[all...]
H A Djobs.c519 if(shp->st.trapcom[SIGCHLD])
523 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],0);
555 if(!shp->intrap && shp->st.trapcom[SIGCHLD] && pid>0 && (pwfg!=job_bypid(pid)))
H A Dinit.c1634 memset(shp->st.trapcom,0,(shp->st.trapmax+1)*sizeof(char*));
/ast/src/cmd/ksh93/include/
H A Ddefs.h94 char **trapcom; member in struct:sh_scoped
/ast/src/cmd/ksh93/edit/
H A Dedit.c606 pp = shp->st.trapcom[SIGWINCH];
607 shp->st.trapcom[SIGWINCH] = 0;
609 shp->st.trapcom[SIGWINCH] = pp;

Completed in 40 milliseconds