Searched refs:trapcom (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/cmd/sh/ |
H A D | fault.c | 51 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]) { in done() 180 trapcom[0] = 0; in done() 233 if (trapcom[sig]) in fault() 331 t = trapcom[i]; in oldsigs() 353 if (t = trapcom[i]) { in chktrap() 376 if (trapcom[sig]) { in systrap() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | fault.c | 87 trap = shp->st.trapcom[sig]; in sh_fault() 253 shp->st.trapcom = (char**)calloc(n,sizeof(char*)); in sh_siginit() 328 if(trap=sh.st.trapcom[sig]) in sh_sigreset() 335 sh.st.trapcom[sig] = 0; in sh_sigreset() 357 sh.st.trapcom[0] = 0; in sh_sigreset() 374 if(trap=sh.st.trapcom[sig]) in sh_sigclear() 378 sh.st.trapcom[sig]=0; in sh_sigclear() 417 if((shp->sigflag[SIGCHLD]&SH_SIGTRAP) && shp->st.trapcom[SIGCHLD]) in sh_chktrap() 418 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],1); in sh_chktrap() 431 if(trap=shp->st.trapcom[sig]) in sh_chktrap() [all …]
|
H A D | subshell.c | 187 char *trap = shp->st.trapcom[0]; in sh_subfork() 218 shp->st.trapcom[0] = trap; in sh_subfork() 580 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell() 583 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell() 634 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell() 637 char *trap=shp->st.trapcom[0]; in sh_subshell() 638 shp->st.trapcom[0] = 0; /* prevent recursion */ in sh_subshell() 733 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*)); in sh_subshell() 739 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
|
H A D | xec.c | 829 if((trap=shp->st.trapcom[sig]) && *trap==0) in sh_coexec() 1350 type = (execflg && !shp->subshell && !shp->st.trapcom[0]); in sh_exec() 1391 … !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV)) in sh_exec() 1616 !(shp->st.trapcom[SIGINT] && *shp->st.trapcom[SIGINT]) && in sh_exec() 1617 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && in sh_exec() 1993 …if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK… in sh_exec() 1999 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_exec() 2002 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_exec() 2026 shp->st.trapcom[0]=0; in sh_exec() 3396 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_funscope() [all …]
|
H A D | jobs.c | 520 if(shp->st.trapcom[SIGCHLD]) in job_reap() 524 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],0); in job_reap() 556 if(!shp->intrap && shp->st.trapcom[SIGCHLD] && pid>0 && (pwfg!=job_bypid(pid))) in job_reap()
|
H A D | init.c | 1644 memset(shp->st.trapcom,0,(shp->st.trapmax+1)*sizeof(char*)); in sh_reinit()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | trap.c | 151 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in b_trap() local 152 if(arg=trapcom[sig]) in b_trap() 167 arg = shp->st.trapcom[sig]; in b_trap() 169 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action); in b_trap() 416 register char *trap,**trapcom; in sig_list() local 419 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in sig_list() 422 if(!(trap=trapcom[sig])) in sig_list()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | defs.h | 94 char **trapcom; member
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | edit.c | 606 pp = shp->st.trapcom[SIGWINCH]; in ed_setup() 607 shp->st.trapcom[SIGWINCH] = 0; in ed_setup() 609 shp->st.trapcom[SIGWINCH] = pp; in ed_setup()
|