Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 457) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/cmd/mailx/
H A Dsigretro.c127 if (sig < 1 || sig > NSIG) { in sigset()
136 sighold(sig); in sigset()
171 sighold(int sig) in sighold() argument
175 if (sig < 1 || sig > NSIG) { in sighold()
199 sigrelse(int sig) in sigrelse() argument
203 if (sig < 1 || sig > NSIG) { in sigrelse()
241 if (sig < 1 || sig > NSIG) { in sigpause()
274 sigdisp(int sig) in sigdisp() argument
278 if (sig < 1 || sig > NSIG) { in sigdisp()
310 if (sig < 1 || sig > NSIG) { in _Sigtramp()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtrap.c50 while (sig = optget(argv, sh_opttrap)) switch (sig) in b_trap()
97 if(sig<0) in b_trap()
285 sig = 1; in sig_number()
352 sig = shp->gd->sigruntime[SH_SIGRTMAX]-sig; in sig_name()
359 sig = sig-shp->gd->sigruntime[SH_SIGRTMIN]; in sig_name()
391 for(sig=shp->gd->sigmax; sig>=0; sig--) in sig_list()
393 for(sig=SH_DEBUGTRAP; sig>=0; sig--) in sig_list()
408 else if(sig-- && sig < elementsof(names)) in sig_list()
424 if(sig > shp->gd->sigmax || !(sname=(char*)names[sig])) in sig_list()
428 for(sig=SH_DEBUGTRAP; sig>=0; sig--) in sig_list()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfault.c40 #define abortsig(sig) (sig==SIGABRT || sig==SIGBUS || sig==SIGILL || sig==SIGSEGV) argument
104 if(shp->subshell && trap && sig!=SIGINT && sig!=SIGQUIT && sig!=SIGWINCH && sig!=SIGCONT) in sh_fault()
246 sig = shp->gd->sigruntime[sig]; in sh_siginit()
247 if(sig>n && sig<SH_TRAP) in sh_siginit()
261 sig--; in sh_siginit()
263 sig = shp->gd->sigruntime[sig]; in sh_siginit()
309 for(sig=shgd->sigmax; sig>0; sig--) in sh_sigdone()
347 for(sig=SH_DEBUGTRAP-1;sig>=0;sig--) in sh_sigreset()
392 sig=0; in sh_chktrap()
610 if(sig) in sh_done()
[all …]
/illumos-gate/usr/src/lib/libinetutil/common/
H A Deh.c61 int sig; in iu_eh_create() local
75 for (sig = 0; sig < NSIG; sig++) { in iu_eh_create()
96 int sig; in iu_eh_destroy() local
98 for (sig = 0; sig < NSIG; sig++) in iu_eh_destroy()
299 for (sig = 0; sig < NSIG; sig++) { in iu_handle_events()
304 sig, in iu_handle_events()
366 post_signal(int sig) in post_signal() argument
369 signal_to_eh[sig]->iueh_sig_info[sig].iues_pending = B_TRUE; in post_signal()
388 if (sig < 0 || sig >= NSIG || signal_to_eh[sig] != NULL) in iu_eh_register_signal()
403 signal_to_eh[sig] = eh; in iu_eh_register_signal()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dfault.c174 done(sig) in done() argument
202 if (sig) { in done()
222 fault(int sig) in fault() argument
226 switch (sig) { in fault()
236 done(sig); in fault()
246 int sig; in handle()
261 if (sig > MINTRAP && sig < MAXTRAP) {
367 int sig; in systrap() local
375 for (sig = 0; sig < MAXTRAP; sig++) { in systrap()
395 sig >= MAXTRAP || sig < MINTRAP || in systrap()
[all …]
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_signal.c150 ((sigset)->__sigbits[SIGWORD(sig)] |= BITMASK(sig))
153 (((sigset)->__sigbits[SIGWORD(sig)] & BITMASK(sig)) != 0)
163 return (sig); in s10sig_to_native()
198 int sig; in s10sigset_to_native() local
216 for (sig = 33; sig <= SIGJVM2; sig++) in s10sigset_to_native()
221 for (sig = S10_SIGRTMIN; sig <= S10_SIGRTMAX; sig++) { in s10sigset_to_native()
241 return (sig); in nativesig_to_s10()
269 int sig; in nativesigset_to_s10() local
287 for (sig = 33; sig <= SIGJVM2; sig++) in nativesigset_to_s10()
292 for (sig = NATIVE_SIGRTMIN; sig <= NATIVE_SIGRTMAX; sig++) { in nativesigset_to_s10()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_signal.c42 sig_handlers[sig](sig, sip, (ucontext_t *)ucp, sig_data[sig]); in sig_stub()
51 ASSERT(sig > 0 && sig < NSIG && sig != SIGKILL && sig != SIGSTOP); in mdb_signal_sethandler()
54 sig_data[sig] = data; in mdb_signal_sethandler()
66 if (sig == SIGWINCH || sig == SIGTSTP) { in mdb_signal_sethandler()
83 *datap = sig_data[sig]; in mdb_signal_gethandler()
85 return (sig_handlers[sig]); in mdb_signal_gethandler()
89 mdb_signal_raise(int sig) in mdb_signal_raise() argument
95 mdb_signal_pgrp(int sig) in mdb_signal_pgrp() argument
97 return (kill(0, sig)); in mdb_signal_pgrp()
101 mdb_signal_block(int sig) in mdb_signal_block() argument
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dsignal.c80 if (sig == SIGCHLD) { in signal()
86 if (STOPDEFAULT(sig)) in signal()
96 sighold(int sig) in sighold() argument
100 CHECK_SIG(sig, -1); in sighold()
112 sigrelse(int sig) in sigrelse() argument
116 CHECK_SIG(sig, -1); in sigrelse()
128 sigignore(int sig) in sigignore() argument
133 CHECK_SIG(sig, -1); in sigignore()
143 if (sig == SIGCHLD) { in sigignore()
161 __sigpause(int sig) in __sigpause() argument
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsigaction.c52 if (sig <= 0 || sig >= NSIG || in sigaction()
84 disp = ua->u_signal[sig - 1]; in sigaction()
88 set = ua->u_sigmask[sig-1]; in sigaction()
89 if (sigismember(&p->p_siginfo, sig)) in sigaction()
102 if (sig == SIGCLD) { in sigaction()
115 if (sig == SIGCLD) in sigaction()
145 if (sig <= 0 || sig >= NSIG || in sigaction32()
177 disp = ua->u_signal[sig - 1]; in sigaction32()
181 set = ua->u_sigmask[sig-1]; in sigaction32()
195 if (sig == SIGCLD) { in sigaction32()
[all …]
H A Dsigqueue.c49 if ((uint_t)sigsend->sig >= NSIG) in sigqkill()
101 kill(pid_t pid, int sig) in kill() argument
107 v.sig = sig; in kill()
123 sigqueue(pid_t pid, int sig, /* union sigval */ void *value, in sigqueue() argument
132 if (pid <= 0 || !sigwillqueue(sig, si_code)) in sigqueue()
159 v.sig = sig; in sigqueue()
199 sigqueue32(pid_t pid, int sig, /* union sigval32 */ caddr32_t value, in sigqueue32() argument
206 return (sigqueue(pid, sig, sv.sival_ptr, si_code, block)); in sigqueue32()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dsignal.c39 sm_signal(sig, handler) in sm_signal() argument
40 int sig; in sm_signal()
105 sm_blocksignal(sig) in sm_blocksignal() argument
106 int sig; in sm_blocksignal()
112 return (sigblock(sigmask(sig)) & sigmask(sig)) != 0;
148 int sig; in sm_releasesignal()
151 return (sigsetmask(sigblock(0) & ~sigmask(sig)) & sigmask(sig)) != 0;
188 pend_signal(sig) in pend_signal() argument
189 int sig; in pend_signal()
205 switch (sig)
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsigsetops.c59 sigvalid(int sig) in sigvalid() argument
61 if (sig <= 0 || sig > (MAXBITNO * SIGSETSIZE)) in sigvalid()
69 return ((sigs.__sigbits[sigword(sig)] & bitmask(sig)) != 0); in sigvalid()
95 sigaddset(sigset_t *set, int sig) in sigaddset() argument
97 if (!sigvalid(sig)) { in sigaddset()
101 set->__sigbits[sigword(sig)] |= bitmask(sig); in sigaddset()
106 sigdelset(sigset_t *set, int sig) in sigdelset() argument
108 if (!sigvalid(sig)) { in sigdelset()
112 set->__sigbits[sigword(sig)] &= ~bitmask(sig); in sigdelset()
119 if (!sigvalid(sig)) { in sigismember()
[all …]
H A Dssignal.c48 ssignal(int sig, int (*action)(int)))(int) in ssignal() argument
52 if (sig >= MINSIG && sig <= MAXSIGNUM) { in ssignal()
53 savefn = sigs[sig-MINSIG]; in ssignal()
54 sigs[sig-MINSIG] = action; in ssignal()
63 gsignal(int sig) in gsignal() argument
67 if (sig < MINSIG || sig > MAXSIGNUM || in gsignal()
68 (sigfn = sigs[sig-MINSIG]) == (int(*)(int))(uintptr_t)SIG_DFL) { in gsignal()
74 sigs[sig-MINSIG] = (int(*)(int))(uintptr_t)SIG_DFL; in gsignal()
75 return ((*sigfn)(sig)); in gsignal()
/illumos-gate/usr/src/uts/common/os/
H A Dsig.c233 if (sig <= 0 || sig >= NSIG || (p->p_flag & SSYS)) in sigtoproc()
338 if (eat_signal(tt, sig) && sig != SIGKILL) { in sigtoproc()
494 int sig; in issig_justlooking() local
496 for (sig = 1; sig < NSIG; sig++) { in issig_justlooking()
1671 int sig; in sigdefault() local
1675 for (sig = 1; sig < NSIG; sig++) { in sigdefault()
2084 ASSERT(sig >= 1 && sig < NSIG); in sigaddqins()
2116 ASSERT(sig >= 1 && sig < NSIG); in sigaddqa()
2136 ASSERT(sig >= 1 && sig < NSIG); in sigaddq()
2379 if (sig >= 0 && sig < NSIG) { in sigwillqueue()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsigaction.c125 if ((sig == SIGCANCEL || sig == SIGAIOCANCEL) && in call_user_handler()
169 if (sig == SIGCANCEL) { in call_user_handler()
185 if (sig == SIGAIOCANCEL) { in call_user_handler()
238 take_deferred_signal(int sig) in take_deferred_signal() argument
298 if (sig != SIGCANCEL) in sigacthandler()
372 if (sig <= 0 || sig >= NSIG) { in sigaction()
412 } else if (sig == SIGCANCEL || sig == SIGAIOCANCEL) { in sigaction()
692 int sig; in signal_init() local
694 for (sig = 0; sig < NSIG; sig++) { in signal_init()
746 setup_cancelsig(int sig) in setup_cancelsig() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtsignal.c35 fmtsignal(register int sig) in fmtsignal() argument
40 if (sig >= 0) in fmtsignal()
42 if (sig <= sig_info.sigmax) in fmtsignal()
43 buf = sig_info.text[sig]; in fmtsignal()
47 sfsprintf(buf, z, "Signal %d", sig); in fmtsignal()
52 sig = -sig; in fmtsignal()
53 if (sig <= sig_info.sigmax) in fmtsignal()
54 buf = sig_info.name[sig]; in fmtsignal()
58 sfsprintf(buf, z, "%d", sig); in fmtsignal()
/illumos-gate/usr/src/boot/sys/sys/
H A D_sigset.h46 #define _SIG_IDX(sig) ((sig) - 1) argument
47 #define _SIG_WORD(sig) (_SIG_IDX(sig) >> 5) argument
48 #define _SIG_BIT(sig) (1 << (_SIG_IDX(sig) & 31)) argument
49 #define _SIG_VALID(sig) ((sig) <= _SIG_MAXSIG && (sig) > 0) argument
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsysevent_signal.c39 sig_stub(int sig, siginfo_t *sip, void *ucp) in sig_stub() argument
41 sig_handlers[sig](sig, sip, (ucontext_t *)ucp, sig_data[sig]); in sig_stub()
45 se_signal_sethandler(int sig, se_signal_f *handler, void *data) in se_signal_sethandler() argument
50 sig_handlers[sig] = handler; in se_signal_sethandler()
51 sig_data[sig] = data; in se_signal_sethandler()
63 if ((status = sigaction(sig, &act, NULL)) == 0) in se_signal_sethandler()
64 (void) se_signal_unblock(sig); in se_signal_sethandler()
70 se_signal_unblock(int sig) in se_signal_unblock() argument
75 (void) sigaddset(&set, sig); in se_signal_unblock()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dsigcrit.c35 int sig; member
77 interrupt(int sig) in interrupt() argument
79 signal(sig, interrupt); in interrupt()
80 hold |= sigmask(sig); in interrupt()
123 sigaddset(&nmask, signals[i].sig); in sigcritical()
130 mask |= sigmask(signals[i].sig); in sigcritical()
137 signal(signals[i].sig, handler[i]); in sigcritical()
138 hold &= ~sigmask(signals[i].sig); in sigcritical()
183 signal(signals[i].sig, handler[i]); in sigcritical()
189 if (hold & sigmask(signals[i].sig)) in sigcritical()
[all …]
H A Dsignal.c75 signal(int sig, Sig_handler_t fun) in signal() argument
84 if (sig < 0) in signal()
86 sig = -sig; in signal()
92 flags = sig & ~SIGNO_MASK; in signal()
93 sig &= SIGNO_MASK; in signal()
98 switch (sig) in signal()
125 if (sigaction(sig, &na, &oa)) in signal()
128 sigunblock(sig); in signal()
/illumos-gate/usr/src/ucblib/libucb/i386/sys/
H A Dsignal.c89 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
128 switch (sig) { in ucbsigvechandler()
168 (*_siguhandler[sig])(sig, code, &sc, addr); in ucbsigvechandler()
263 if (sig <= 0 || sig >= NSIG) { in ucbsigvec()
273 ohandler = _siguhandler[sig]; in ucbsigvec()
286 _siguhandler[sig] = nhandler; in ucbsigvec()
292 if (sig == SIGKILL || sig == SIGSTOP) in ucbsigvec()
306 _siguhandler[sig] = ohandler; in ucbsigvec()
394 _siginterrupt(int sig, int flag) in _siginterrupt() argument
400 ucbsiginterrupt(int sig, int flag) in ucbsiginterrupt() argument
[all …]
/illumos-gate/usr/src/ucblib/libucb/sparc/sys/
H A Dsignal.c105 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
194 switch (sig) { in ucbsigvechandler()
276 (*_siguhandler[sig])(sig, code, &sc, addr); in ucbsigvechandler()
313 if (sig == SIGFPE) { in ucbsigvechandler()
342 int sig; in __sigcleanup() local
357 sig = 0; in __sigcleanup()
379 if (sig == SIGFPE) { in __sigcleanup()
461 if (sig <= 0 || sig >= NSIG) { in ucbsigvec()
471 ohandler = _siguhandler[sig]; in ucbsigvec()
491 if (sig == SIGKILL || sig == SIGSTOP) in ucbsigvec()
[all …]
/illumos-gate/usr/src/cmd/csh/i386/
H A Dsignal.c65 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in sigvechandler() argument
93 if (sig == SIGILL || sig == SIGFPE || sig == SIGSEGV || sig == SIGBUS) in sigvechandler()
99 (*_siguhandler[sig])(sig, code, &sc, addr); in sigvechandler()
157 sigvec(int sig, struct sigvec *nvec, struct sigvec *ovec) in sigvec() argument
164 if (sig <= 0 || sig >= NSIG) { in sigvec()
169 ohandler = _siguhandler[sig]; in sigvec()
172 _sigaction(sig, (struct sigaction *)0, &nact); in sigvec()
174 _siguhandler[sig] = nhandler; in sigvec()
194 if (_sigaction(sig, nactp, &oact) < 0) { in sigvec()
195 _siguhandler[sig] = ohandler; in sigvec()
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dsignal.h50 #define CHECK_CRITICAL(sig) \ argument
53 if (InCriticalSection > 0 && (sig) != 0) \
55 pend_signal((sig)); \
69 # define FIX_SYSV_SIGNAL(sig, handler) \ argument
71 if ((sig) != 0) \
72 (void) sm_signal((sig), (handler)); \
75 # define FIX_SYSV_SIGNAL(sig, handler) { /* EMPTY */ } argument
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dsiglist4 for sig in `/bin/kill -l 2>/dev/null`
5 do case $sig in
8 *) echo "#if defined(SIG$sig) && !defined(HAD_SIG$sig)"
9 echo "0,\"$sig\",SIG$sig,"

12345678910>>...19