Home
last modified time | relevance | path

Searched refs:trapnote (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfault.c99 shp->trapnote |= SH_SIGTRAP; in sh_fault()
117 if(sig==SIGINT && (shp->trapnote&SH_SIGIGNORE)) in sh_fault()
133 shp->trapnote |= SH_SIGTERM; in sh_fault()
154 shp->trapnote |= SH_SIGSET; in sh_fault()
189 shp->trapnote |= SH_SIGTSTP; in sh_fault()
210 shp->trapnote |= flag; in sh_fault()
360 sh.trapnote=0; in sh_sigreset()
391 if(!(shp->trapnote&~SH_SIGIGNORE)) in sh_chktrap()
393 shp->trapnote &= ~SH_SIGTRAP; in sh_chktrap()
397 int sav_trapnote = shp->trapnote; in sh_chktrap()
[all …]
H A Djobs.c203 int oldexit,trapnote; in job_chldtrap() local
206 trapnote = shp->trapnote; in job_chldtrap()
207 shp->trapnote = 0; in job_chldtrap()
226 shp->trapnote = trapnote; in job_chldtrap()
526 shp->trapnote |= SH_SIGTRAP; in job_reap()
559 shp->trapnote |= SH_SIGTRAP; in job_reap()
1682 if((intr && shp->trapnote) || (pid==1 && !intr)) in job_wait()
1685 if(intr && shp->trapnote) in job_wait()
H A Dio.c725 if (sh->trapnote&SH_SIGSET) in onintr()
731 if (sh->trapnote) in onintr()
845 if(errno!=EINTR || shp->trapnote) in sh_open()
1892 if((shp->trapnote&(SH_SIGSET|SH_SIGTRAP)) && errno!=EIO && errno!=ENXIO) in slowexcept()
1918 else if(shp->bltinfun && (shp->trapnote&SH_SIGTRAP) && shp->lastsig) in slowexcept()
1928 if(shp->trapnote&SH_SIGSET) in slowexcept()
1934 if(shp->trapnote&SH_SIGTRAP) in slowexcept()
1953 shp->trapnote |= SH_SIGSET; in time_grace()
1959 shp->trapnote |= SH_SIGTRAP; in time_grace()
1971 if(shp->trapnote) in piperead()
[all …]
H A Dmain.c464 shp->trapnote = 0; in exfile()
528 shp->trapnote = 0; in exfile()
H A Dexpand.c191 gp->gl_intr = &shp->trapnote; in path_expand()
H A Dsubshell.c808 shp->trapnote = 0; in sh_subshell()
817 if(shp->trapnote) in sh_subshell()
H A Dxec.c1739 shp->trapnote |= SH_SIGIGNORE; in sh_exec()
1751 shp->trapnote &= ~SH_SIGIGNORE; in sh_exec()
2921 if(shp->trapnote&SH_SIGALRM) in sh_exec()
2923 shp->trapnote &= ~SH_SIGALRM; in sh_exec()
2926 if(shp->trapnote || (shp->exitval && sh_isstate(SH_ERREXIT)) && in sh_exec()
2962 if(shp->trapnote&SH_SIGSET) in sh_exec()
3192 if(shp->trapnote&SH_SIGTERM) in _sh_fork()
3256 shp->trapnote &= ~SH_SIGTERM; in sh_fork()
3467 shp->trapnote=0; in sh_funscope()
/illumos-gate/usr/src/cmd/sh/
H A Dfault.c240 trapnote |= flag; in fault()
336 trapnote = 0; in oldsigs()
349 trapnote &= ~TRAPSET; in chktrap()
H A Dexpand.c70 if (trapnote & SIGSET) in expand()
172 while ((e = readdir(dirf)) && (trapnote & SIGSET) == 0) { in expand()
H A Dword.c419 if (trapnote & SIGSET) { in readb()
422 } else if ((trapnote & TRAPSET) && (rwait > 0)) { in readb()
427 } while ((len = read(f->fdes, f->fbuf + rest, toread)) < 0 && trapnote); in readb()
H A Ddefs.c84 BOOL trapnote; variable
H A Ddefs.h398 extern BOOL trapnote;
516 #define sigchk() if (trapnote & SIGSET) \
H A Dmain.c396 if (trapnote & TRAPSET) in exfile()
407 trapnote = 0; in exfile()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dsleep.c154 shp->trapnote &= ~SH_SIGSET; in sleep()
180 if (shp->trapnote & (SH_SIGSET | SH_SIGTRAP)) return; in sh_delay()
H A Dtrap.c127 shp->trapnote |= SH_SIGTRAP; in b_trap()
129 shp->trapnote = 0; in b_trap()
H A Dalarm.c120 tp->sh->trapnote |= SH_SIGALRM; in trap_timeout()
H A Dprint.c335 if(shp->trapnote&SH_SIGSET) in b_print()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshell.h145 unsigned char trapnote; /* set when trap/signal is pending */ member
H A Ddefs.h479 #define sh_sigcheck(shp) do{if(shp->trapnote&SH_SIGSET)sh_exit(SH_EXITSIG);} while(0)
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dcompletion.c329 if(ep->sh->trapnote&SH_SIGSET) in ed_expand()
H A Dedit.c831 if(shp->trapnote&(SH_SIGSET|SH_SIGTRAP)) in ed_read()
914 if(shp->trapnote&(SH_SIGSET|SH_SIGTRAP)) in ed_read()
H A Dhistory.c999 if(((Shell_t*)hp->histshell)->trapnote&SH_SIGSET) in hist_find()
H A Dvi.c265 if(ed->sh->trapnote&SH_SIGSET) in ed_viread()