Lines Matching full:sig
39 sm_signal(sig, handler) in sm_signal() argument
40 int sig; in sm_signal()
61 if (sigaction(sig, &n, &o) < 0)
73 return signal(sig, handler);
75 return sigset(sig, handler);
86 if (sigaction(sig, &n, &o) < 0)
96 ** sig -- the signal to block.
105 sm_blocksignal(sig) in sm_blocksignal() argument
106 int sig; in sm_blocksignal()
112 return (sigblock(sigmask(sig)) & sigmask(sig)) != 0;
117 handler = sigset(sig, SIG_HOLD);
126 (void) sigaddset(&sset, sig);
130 return sigismember(&oset, sig);
138 ** sig -- the signal to release.
147 sm_releasesignal(sig) in sm_releasesignal() argument
148 int sig; in sm_releasesignal()
151 return (sigsetmask(sigblock(0) & ~sigmask(sig)) & sigmask(sig)) != 0;
156 handler = sigset(sig, SIG_HOLD);
157 if (sigrelse(sig) < 0)
165 (void) sigaddset(&sset, sig);
169 return sigismember(&oset, sig);
177 ** sig -- signal to add
188 pend_signal(sig) in pend_signal() argument
189 int sig; in pend_signal()
205 switch (sig)
323 ** sig -- signal received
331 sm_signal_noop(sig) in sm_signal_noop() argument
332 int sig; in sm_signal_noop()
336 FIX_SYSV_SIGNAL(sig, sm_signal_noop);