Home
last modified time | relevance | path

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

123

/dports/shells/heirloom-sh/heirloom-sh-050706/
H A Dfault.c149 if (trapcom[i] != 0) { in clrsig()
150 free(trapcom[i]); in clrsig()
151 trapcom[i] = 0; in clrsig()
177 if (t = trapcom[0]) in done()
179 trapcom[0] = 0; in done()
226 if (trapcom[sig]) in fault()
331 t = trapcom[i]; in oldsigs()
355 if (t = trapcom[i]) in chktrap()
378 if (trapcom[sig]) { in systrap()
381 prs_buff(trapcom[sig]); in systrap()
[all …]
/dports/devel/sunpromake/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/devel/sccs/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/devel/schilybase/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/net/rscsi/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/archivers/star/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/sysutils/cdrtools/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/editors/ved/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/devel/smake/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/sysutils/schilyutils/schily-2021-09-18/sh/
H A Dfault.c250 if (dofree && trapcom[i] != 0) {
251 free(trapcom[i]);
252 trapcom[i] = 0;
282 trapcom[0] = 0;
498 t = trapcom[i];
526 t = trapcom[i]; in restoresigs()
633 if (trapcom[sig])
634 prs_buff(trapcom[sig]);
645 prs_buff(trapcom[sig]);
681 if (trapcom[sig] || hasp)
[all …]
/dports/shells/v7sh/v7sh-1.0_1/
H A Dfault.c14 STRING trapcom[MAXTRAP]; variable
83 ELSE flag = (trapcom[sig] ? TRAPSET : SIGSET);
147 DO t=trapcom[i]; in oldsigs()
159 free((BLKPTR) trapcom[i]); trapcom[i]=0;
183 IF (t=trapcom[i])!=NIL /* GCC */ in chktrap()
H A Derror.c78 IF (t=trapcom[0])!=NIL /* GCC */ in done()
79 THEN trapcom[0]=0; /*should free but not long */ in done()
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/bltins/
H A Dtrap.c170 char **trapcom = (shp->st.otrapcom ? shp->st.otrapcom : shp->st.trapcom); in b_trap() local
171 arg = trapcom[sig]; in b_trap()
179 arg = shp->st.trapcom[sig]; in b_trap()
181 shp->st.trapcom[sig] = strdup(""); in b_trap()
191 shp->st.trapcom[sig] = strdup(cp); in b_trap()
/dports/shells/ksh93-devel/ast-cc1bca27/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()
418 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],1); in sh_chktrap()
431 if(trap=shp->st.trapcom[sig]) in sh_chktrap()
614 if(t=shp->st.trapcom[0]) in sh_done()
[all …]
H A Dsubshell.c185 char *trap = shp->st.trapcom[0]; in sh_subfork()
216 shp->st.trapcom[0] = trap; in sh_subfork()
574 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell()
577 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell()
628 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
631 char *trap=shp->st.trapcom[0]; in sh_subshell()
632 shp->st.trapcom[0] = 0; /* prevent recursion */ in sh_subshell()
728 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*)); in sh_subshell()
734 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
/dports/shells/ksh93/ast-93u/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()
418 job_chldtrap(shp,shp->st.trapcom[SIGCHLD],1); in sh_chktrap()
431 if(trap=shp->st.trapcom[sig]) in sh_chktrap()
614 if(t=shp->st.trapcom[0]) in sh_done()
[all …]
H A Dsubshell.c185 char *trap = shp->st.trapcom[0]; in sh_subfork()
216 shp->st.trapcom[0] = trap; in sh_subfork()
574 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell()
577 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell()
628 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
631 char *trap=shp->st.trapcom[0]; in sh_subshell()
632 shp->st.trapcom[0] = 0; /* prevent recursion */ in sh_subshell()
728 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*)); in sh_subshell()
734 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
/dports/shells/ksh93/ast-93u/src/cmd/ksh93/bltins/
H A Dtrap.c140 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in b_trap() local
141 if(arg=trapcom[sig]) in b_trap()
154 arg = shp->st.trapcom[sig]; in b_trap()
156 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action); in b_trap()
397 register char *trap,**trapcom; in sig_list() local
400 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in sig_list()
403 if(!(trap=trapcom[sig])) in sig_list()
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/ksh93/bltins/
H A Dtrap.c140 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in b_trap() local
141 if(arg=trapcom[sig]) in b_trap()
154 arg = shp->st.trapcom[sig]; in b_trap()
156 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action); in b_trap()
397 register char *trap,**trapcom; in sig_list() local
400 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in sig_list()
403 if(!(trap=trapcom[sig])) in sig_list()
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/ksh93/sh/
H A Dfault.c127 trap = shp->st.trapcom[sig]; in sh_fault()
366 if(trap=shp->st.trapcom[sig]) in sh_sigreset()
373 shp->st.trapcom[sig] = 0; in sh_sigreset()
395 shp->st.trapcom[0] = 0; in sh_sigreset()
412 if(trap=shp->st.trapcom[sig]) in sh_sigclear()
416 shp->st.trapcom[sig]=0; in sh_sigclear()
482 if(trap=shp->st.trapcom[sig]) in sh_chktrap()
643 if(shp->st.trapcom && (t=shp->st.trapcom[0])) in sh_done()
788 register char *trap,**trapcom; in sh_siglist() local
791 trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in sh_siglist()
[all …]
H A Dsubshell.c179 char *trap = shp->st.trapcom[0]; in sh_subfork()
223 shp->st.trapcom[0] = trap; in sh_subfork()
576 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0]) in sh_subshell()
579 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig); in sh_subshell()
642 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
645 char *trap=shp->st.trapcom[0]; in sh_subshell()
646 shp->st.trapcom[0] = 0; /* prevent recursion */ in sh_subshell()
654 shp->st.trapcom[0] = 0; in sh_subshell()
763 memset(&shp->st.trapcom[savst.trapmax],0,n*sizeof(char*)); in sh_subshell()
769 memcpy((char*)&shp->st.trapcom[0],savsig,nsig); in sh_subshell()
H A Dtimers.c98 if(shp->st.trapcom[SIGALRM] && *shp->st.trapcom[SIGALRM]) in sigalrm()
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/sh/
H A Dfault.c134 trap = shp->st.trapcom[sig]; in sh_fault()
317 trap = shp->st.trapcom[sig]; in sh_sigreset()
322 shp->st.trapcom[sig] = 0; in sh_sigreset()
338 shp->st.trapcom[0] = 0; in sh_sigreset()
353 trap = shp->st.trapcom[sig]; in sh_sigclear()
356 shp->st.trapcom[sig] = 0; in sh_sigclear()
407 trap = shp->st.trapcom[sig]; in sh_chktrap()
432 trap = shp->st.trapcom[sig]; in sh_chktrap()
536 if (shp->st.trapcom && (t = shp->st.trapcom[0])) { in sh_done()
660 char *trap, **trapcom; in sh_siglist() local
[all …]
H A Dsubshell.c175 char *trap = shp->st.trapcom[0]; in sh_subfork()
212 shp->st.trapcom[0] = trap; in sh_subfork()
525 if (nsig > 0 || shp->st.trapcom[0]) { in sh_subshell()
529 savsig[isig] = shp->st.trapcom[isig] ? strdup(shp->st.trapcom[isig]) : NULL; in sh_subshell()
587 char *trap = shp->st.trapcom[0]; in sh_subshell()
588 shp->st.trapcom[0] = 0; // prevent recursion in sh_subshell()
595 shp->st.trapcom[0] = 0; in sh_subshell()
681 if (n > 0) memset(&shp->st.trapcom[savst.trapmax], 0, n * sizeof(char *)); in sh_subshell()
687 if (shp->st.trapcom[isig]) { in sh_subshell()
688 free(shp->st.trapcom[isig]); in sh_subshell()
[all …]
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/ksh93/bltins/
H A Dtrap.c163 char **trapcom = (shp->st.otrapcom?shp->st.otrapcom:shp->st.trapcom); in b_trap() local
164 if(arg=trapcom[sig]) in b_trap()
177 arg = shp->st.trapcom[sig]; in b_trap()
178 shp->st.trapcom[sig] = Empty; in b_trap()
191 shp->st.trapcom[sig] = strdup(cp); in b_trap()

123