Home
last modified time | relevance | path

Searched refs:trapcom (Results 1 – 17 of 17) sorted by relevance

/titanic_51/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]) { 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[si in systrap()
[all...]
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dtrap.c138 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in b_trap() local
139 if(arg=trapcom[sig]) in b_trap()
152 arg = shp->st.trapcom[sig]; in b_trap()
154 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action); in b_trap()
391 register char *trap,**trapcom; in sig_list() local
394 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in sig_list()
397 if(!(trap=trapcom[sig])) in sig_list()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtrap.c151 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()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dfault.c91 trap = shp->st.trapcom[sig]; in sh_fault()
242 shp->st.trapcom = (char**)calloc(n,sizeof(char*)); in sh_siginit()
317 if(trap=sh.st.trapcom[sig]) in sh_sigreset()
324 sh.st.trapcom[sig] = 0; in sh_sigreset()
346 sh.st.trapcom[0] = 0; in sh_sigreset()
363 if(trap=sh.st.trapcom[sig]) in sh_sigclear()
367 sh.st.trapcom[sig]=0; in sh_sigclear()
406 if((sh.sigflag[SIGCHLD]&SH_SIGTRAP) && sh.st.trapcom[SIGCHLD]) in sh_chktrap()
407 job_chldtrap(&sh,sh.st.trapcom[SIGCHLD],1); in sh_chktrap()
418 if(trap=sh.st.trapcom[sig]) in sh_chktrap()
[all …]
H A Dsubshell.c193 char *trap = shp->st.trapcom[0]; in sh_subfork()
222 shp->st.trapcom[0] = trap; in sh_subfork()
525 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell()
528 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell()
575 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
578 char *trap=shp->st.trapcom[0]; in sh_subshell()
579 shp->st.trapcom[0] = 0; /* prevent recursion */ in sh_subshell()
680 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*)); in sh_subshell()
685 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
H A Dxec.c956 type = (execflg && !shp->subshell && !shp->st.trapcom[0]); 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()
1461 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_exec()
1464 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_exec()
2616 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_funscope()
2619 memcpy(savstak=stakalloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_funscope()
2661 trap = shp->st.trapcom[0]; in sh_funscope()
2662 shp->st.trapcom[0] = 0; in sh_funscope()
[all …]
H A Djobs.c385 if(sh.st.trapcom[SIGCHLD]) in job_reap()
389 job_chldtrap(&sh,sh.st.trapcom[SIGCHLD],0); in job_reap()
421 if(!sh.intrap && sh.st.trapcom[SIGCHLD] && pid>0 && (pwfg!=job_bypid(pid))) in job_reap()
H A Dinit.c1379 memset(shp->st.trapcom,0,(shp->st.trapmax+1)*sizeof(char*)); in sh_reinit()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfault.c87 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[si in sh_chktrap()
[all...]
H A Dsubshell.c187 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 Dxec.c829 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[ in sh_exec()
[all...]
H A Djobs.c520 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 Dinit.c1644 memset(shp->st.trapcom,0,(shp->st.trapmax+1)*sizeof(char*)); in sh_reinit()
/titanic_51/usr/src/lib/libshell/common/include/
H A Ddefs.h96 char **trapcom; member
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h94 char **trapcom; member
/titanic_51/usr/src/lib/libshell/common/edit/
H A Dedit.c603 pp = shp->st.trapcom[SIGWINCH]; in ed_setup()
604 shp->st.trapcom[SIGWINCH] = 0; in ed_setup()
606 shp->st.trapcom[SIGWINCH] = pp; in ed_setup()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dedit.c606 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()