/osnet-11/usr/src/lib/libast/common/string/ |
H A D | fmtsignal.c | 27 * if sig>=0 then return signal text for signal sig 28 * otherwise return signal name for signal -sig 32 #include <sig.h> 35 fmtsignal(register int sig) argument 40 if (sig >= 0) 42 if (sig <= sig_info.sigmax) 43 buf = sig_info.text[sig]; 47 sfsprintf(buf, z, "Signal %d", sig); 52 sig [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | ssignal.c | 50 ssignal(int sig, int (*action)(int)))(int) argument 54 if (sig >= MINSIG && sig <= MAXSIGNUM) { 55 savefn = sigs[sig-MINSIG]; 56 sigs[sig-MINSIG] = action; 64 gsignal(int sig) argument 68 if (sig < MINSIG || sig > MAXSIGNUM || 69 (sigfn = sigs[sig-MINSIG]) == (int(*)(int))SIG_DFL) 74 sigs[sig [all...] |
H A D | sigsetops.c | 59 sigvalid(int sig) argument 61 if (sig <= 0 || sig > (MAXBITNO * SIGSETSIZE)) 69 return ((sigs.__sigbits[sigword(sig)] & bitmask(sig)) != 0); 95 sigaddset(sigset_t *set, int sig) argument 97 if (!sigvalid(sig)) { 101 set->__sigbits[sigword(sig)] |= bitmask(sig); 106 sigdelset(sigset_t *set, int sig) argument 117 sigismember(const sigset_t *set, int sig) argument [all...] |
H A D | killpg.c | 44 killpg(pid_t pgrp, int sig) argument 53 return (kill(-pgrp, sig));
|
H A D | raise.c | 42 raise(int sig) argument 46 if ((error = thr_kill(thr_self(), sig)) != 0) {
|
H A D | sigflag.c | 39 sigflag(int sig, int flag, int on) argument 44 if ((v = sigaction(sig, 0, &sa)) < 0) 50 return (sigaction(sig, &sa, 0));
|
H A D | psignal.c | 40 * Print the name of the signal indicated by "sig", along with the 58 psignal(int sig, const char *s) argument 64 if (sig < 0 || sig >= NSIG) 65 sig = 0; 66 c = strsignal(sig);
|
H A D | sigsend.c | 40 sigsend(idtype_t idtype, id_t id, int sig) argument 44 return (sigsendset(&set, sig));
|
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | siginterrupt.c | 35 siginterrupt(int sig, int flag) argument 42 if (sig <= 0 || sig >= NSIG) { 47 (void) sigaction(sig, NULL, &act); 52 return (sigaction(sig, &act, NULL));
|
H A D | signal.c | 52 * Equivalent to stopdefault set in the kernel implementation (sig.c). 65 signal(int sig, void(*func)(int)))(int) argument 70 CHECK_SIG(sig, SIG_ERR); 77 * Pay special attention if sig is SIGCHLD and 80 if (sig == SIGCHLD) { 86 if (STOPDEFAULT(sig)) 89 if (sigaction(sig, &nact, &oact) < 0) 96 sighold(int sig) argument 100 CHECK_SIG(sig, -1); 106 if (sigaddset(&set, sig) < 112 sigrelse(int sig) argument 128 sigignore(int sig) argument 161 __sigpause(int sig) argument 183 sigset(int sig, void(*func)(int)) argument [all...] |
H A D | bsd_signal.c | 47 bsd_signal(int sig, void(*func)(int)))(int) argument 52 CHECK_SIG(sig, SIG_ERR); 57 (void) sigaddset(&nact.sa_mask, sig); 59 if (sigaction(sig, &nact, &oact) == -1)
|
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | sigflag.c | 32 #include <sig.h> 35 sigflag(int sig, int flags, int set) 40 if (sigaction(sig, NiL, &sa)) 46 return sigaction(sig, &sa, NiL);
|
H A D | execve.c | 32 #include <sig.h> 39 execsig(int sig) 41 kill(childpid, sig); 42 signal(sig, execsig);
|
H A D | killpg.c | 32 #include <sig.h>
|
/osnet-11/usr/src/lib/libinetutil/common/ |
H A D | eh.c | 61 int sig; local 75 for (sig = 0; sig < NSIG; sig++) { 76 eh->iueh_sig_info[sig].iues_pending = B_FALSE; 77 eh->iueh_sig_info[sig].iues_handler = NULL; 78 eh->iueh_sig_info[sig].iues_data = NULL; 96 int sig; local 98 for (sig = 0; sig < NSI 274 int n_lit, timeout, sig, saved_errno; local 366 post_signal(int sig) argument 383 iu_eh_register_signal(iu_eh_t *eh, int sig, iu_eh_sighandler_t *handler, void *data) argument 420 iu_eh_unregister_signal(iu_eh_t *eh, int sig, void **datap) argument [all...] |
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | trap.c | 22 * trap [-p] action sig... 23 * kill [-l] [sig...] 24 * kill [-s sig] pid... 47 register int sig, clear = 0, dflag = 0, pflag = 0; local 50 while (sig = optget(argv, sh_opttrap)) switch (sig) 96 sig = sig_number(shp,arg); 97 if(sig<0) 103 if(sig&SH_TRAP) 105 sig 168 register int sig=SIGTERM, flag=0, n; local 238 register int n,o,sig=0; local 313 sig_name(Shell_t *shp,int sig, char* buf, int pfx) argument 357 register int sig; local [all...] |
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | fault.c | 40 #define abortsig(sig) (sig==SIGABRT || sig==SIGBUS || sig==SIGILL || sig==SIGSEGV) 63 void sh_fault(register int sig) argument 71 if(!(sig&SH_TRAP)) 72 signal(sig, sh_fault); 73 sig &= ~SH_TRAP; 75 if(sig 228 register int sig, n; local 276 sh_sigtrap(register int sig) argument 307 register int flag, sig = shgd->sigmax; local 325 register int flag, sig=sh.st.trapmax; local 366 sh_sigclear(register int sig) argument 389 register int sig=shp->st.trapmax; local 514 register int sig=0; local 600 sh_done(void *ptr, register int sig) argument 661 kill(getpid(),sig); local [all...] |
/osnet-11/usr/src/cmd/sendmail/include/sm/ |
H A D | signal.h | 50 #define CHECK_CRITICAL(sig) \ 53 if (InCriticalSection > 0 && (sig) != 0) \ 55 pend_signal((sig)); \ 69 # define FIX_SYSV_SIGNAL(sig, handler) \ 71 if ((sig) != 0) \ 72 (void) sm_signal((sig), (handler)); \ 75 # define FIX_SYSV_SIGNAL(sig, handler) { /* EMPTY */ }
|
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | signal.c | 41 sm_signal(sig, handler) 42 int sig; 63 if (sigaction(sig, &n, &o) < 0) 75 return signal(sig, handler); 77 return sigset(sig, handler); 88 if (sigaction(sig, &n, &o) < 0) 98 ** sig -- the signal to block. 107 sm_blocksignal(sig) 108 int sig; 114 return (sigblock(sigmask(sig)) [all...] |
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_signal.c | 149 #define SIGADDSET(sigset, sig) \ 150 ((sigset)->__sigbits[SIGWORD(sig)] |= BITMASK(sig)) 152 #define SIGISMEMBER(sigset, sig) \ 153 (((sigset)->__sigbits[SIGWORD(sig)] & BITMASK(sig)) != 0) 159 s10sig_to_native(int sig) argument 162 if (sig <= SIGJVM2) 163 return (sig); 169 if (sig < S10_SIGRTMI 198 int sig; local 237 nativesig_to_s10(int sig) argument 269 int sig; local 310 s10_sigacthandler(int sig, siginfo_t *sip, void *uvp) argument 440 s10_sigaction(sysret_t *rval, int sig, const struct sigaction *act, struct sigaction *oact) argument 551 s10_sigsendsys(sysret_t *rval, procset_t *psp, int sig) argument 620 int err, sig; local 651 int err, sig; local 754 s10_kill(sysret_t *rval, pid_t pid, int sig) argument 795 s10_lwp_kill(sysret_t *rval, id_t lwpid, int sig) argument [all...] |
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | signal.c | 37 #include <sig.h> 75 signal(int sig, Sig_handler_t fun) argument 84 if (sig < 0) 86 sig = -sig; 92 flags = sig & ~SIGNO_MASK; 93 sig &= SIGNO_MASK; 98 switch (sig) 125 if (sigaction(sig, &na, &oa)) 128 sigunblock(sig); [all...] |
H A D | sigcrit.c | 31 #include <sig.h> 35 int sig; member in struct:__anon1169 77 interrupt(int sig) argument 79 signal(sig, interrupt); 80 hold |= sigmask(sig); 123 sigaddset(&nmask, signals[i].sig); 130 mask |= sigmask(signals[i].sig); 135 if ((op & signals[i].op) && (handler[i] = signal(signals[i].sig, interrupt)) == SIG_IGN) 137 signal(signals[i].sig, handler[i]); 138 hold &= ~sigmask(signals[i].sig); [all...] |
H A D | sigdata.c | 30 #include <sig.h>
|
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | sigaction.c | 70 call_user_handler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 89 self->ul_td_evbuf.eventdata = (void *)(intptr_t)sig; 95 * while holding the sig's sig_lock for the least possible time. 96 * We must acquire the sig's sig_lock because some thread running 113 sap = &udp->siguaction[sig].sig_uaction; 116 ((sig == SIGPROF && sip->si_code == PROF_SIG) || 117 (sig == SIGEMT && sip->si_code == EMT_CPCOVF)))) { 121 rwlock_t *rwlp = &udp->siguaction[sig].sig_lock; 124 if ((sig == SIGCANCEL || sig 242 take_deferred_signal(int sig) argument 292 sigacthandler(int sig, siginfo_t *sip, void *uvp) argument 367 sigaction(int sig, const struct sigaction *nact, struct sigaction *oact) argument 697 int sig; local 751 setup_cancelsig(int sig) argument [all...] |
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_setup.c | 64 static void md_catcher(int sig); 71 unsigned sig, 72 void (*handler)(int sig), 79 if (sig >= metansig) { 82 (sig + 1) * sizeof (metahandlers[0])); 85 ((sig + 1) * sizeof (metahandlers[0]))); 87 ((sig - metansig) * sizeof (metahandlers[0]))); 89 metansig = sig; 100 if (sigaction(sig, &newhandler, &metahandlers[sig]) < 70 md_pushsig( unsigned sig, void (*handler)(int sig), md_error_t *ep ) argument 108 md_popsig( unsigned sig, md_error_t *ep ) argument 613 md_post_sig(int sig) argument 640 md_rb_sig_handling_off(int sig_seen, int sig) argument 827 int sig = 0; local [all...] |