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

/illumos-gate/usr/src/cmd/sh/
H A Dfault.c51 static unsigned char *trapcom[MAXTRAP]; /* array of actions, one per signal */ variable
151 if (trapcom[i] != 0) {
152 free(trapcom[i]);
153 trapcom[i] = 0;
179 if (t = trapcom[0]) {
180 trapcom[0] = 0;
233 if (trapcom[sig])
331 t = trapcom[i];
353 if (t = trapcom[i]) {
376 if (trapcom[si
[all...]
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dtrap.c138 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); local
139 if(arg=trapcom[sig])
152 arg = shp->st.trapcom[sig];
154 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action);
391 register char *trap,**trapcom; local
394 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom);
397 if(!(trap=trapcom[sig]))
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dfault.c91 trap = shp->st.trapcom[sig];
242 shp->st.trapcom = (char**)calloc(n,sizeof(char*));
317 if(trap=sh.st.trapcom[sig])
324 sh.st.trapcom[sig] = 0;
346 sh.st.trapcom[0] = 0;
363 if(trap=sh.st.trapcom[sig])
367 sh.st.trapcom[sig]=0;
406 if((sh.sigflag[SIGCHLD]&SH_SIGTRAP) && sh.st.trapcom[SIGCHLD])
407 job_chldtrap(&sh,sh.st.trapcom[SIGCHLD],1);
418 if(trap=sh.st.trapcom[si
[all...]
H A Dsubshell.c193 char *trap = shp->st.trapcom[0];
222 shp->st.trapcom[0] = trap;
525 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
528 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig);
575 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell)
578 char *trap=shp->st.trapcom[0];
579 shp->st.trapcom[0] = 0; /* prevent recursion */
680 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*));
685 memcpy((char*)&shp->st.trapcom[0],savsig,nsig);
H A Dxec.c956 type = (execflg && !shp->subshell && !shp->st.trapcom[0]);
999 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV))
1176 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] &&
1455 if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK)))
1461 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
1464 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig);
2616 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
2619 memcpy(savstak=stakalloc(nsig),(char*)&shp->st.trapcom[0],nsig);
2661 trap = shp->st.trapcom[0];
2662 shp->st.trapcom[
[all...]
H A Djobs.c385 if(sh.st.trapcom[SIGCHLD])
389 job_chldtrap(&sh,sh.st.trapcom[SIGCHLD],0);
421 if(!sh.intrap && sh.st.trapcom[SIGCHLD] && pid>0 && (pwfg!=job_bypid(pid)))
H A Dinit.c1379 memset(shp->st.trapcom,0,(shp->st.trapmax+1)*sizeof(char*));
/illumos-gate/usr/src/lib/libshell/common/include/
H A Ddefs.h96 char **trapcom; member in struct:sh_scoped
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dedit.c603 pp = shp->st.trapcom[SIGWINCH];
604 shp->st.trapcom[SIGWINCH] = 0;
606 shp->st.trapcom[SIGWINCH] = pp;

Completed in 127 milliseconds