Lines Matching defs:sig
52 * Equivalent to stopdefault set in the kernel implementation (sig.c).
65 signal(int sig, void(*func)(int)))(int)
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)
100 CHECK_SIG(sig, -1);
106 if (sigaddset(&set, sig) < 0)
112 sigrelse(int sig)
116 CHECK_SIG(sig, -1);
122 if (sigaddset(&set, sig) < 0)
128 sigignore(int sig)
133 CHECK_SIG(sig, -1);
140 * Pay special attention if sig is SIGCHLD and
143 if (sig == SIGCHLD) {
148 if (STOPDEFAULT(sig))
151 if (sigaction(sig, &act, (struct sigaction *)0) < 0)
155 if (sigaddset(&set, sig) < 0)
161 __sigpause(int sig)
166 CHECK_SIG(sig, -1);
172 * so we have to unblock sig overtly.
175 if (sigdelset(&set, sig) < 0)
178 (void) sigrelse(sig);
183 sigset(int sig, void(*func)(int)))(int)
191 CHECK_SIG(sig, SIG_ERR);
194 if (sigaddset(&nset, sig) < 0)
200 if (sigaction(sig, (struct sigaction *)0, &oact) < 0)
207 * Pay special attention if sig is SIGCHLD and
210 if (sig == SIGCHLD) {
216 if (STOPDEFAULT(sig))
219 if (sigaction(sig, &nact, &oact) < 0)
226 if ((code = sigismember(&oset, sig)) < 0)