Lines Matching refs:sigaction
195 struct sigaction nsa; in do_default_handler()
196 struct sigaction osa; in do_default_handler()
205 (void)sigaction(signo, &nsa, &osa); in do_default_handler()
214 (void)sigaction(signo, &osa, NULL); in do_default_handler()
266 struct sigaction sa; in sig_setup()
267 struct sigaction osa; in sig_setup()
289 (void)sigaction(SIGTSTP, &sa, NULL); in sig_setup()
290 (void)sigaction(SIGTTIN, &sa, NULL); in sig_setup()
291 (void)sigaction(SIGTTOU, &sa, NULL); in sig_setup()
305 if (sigaction(SIGHUP, &sa, &osa) != -1 && osa.sa_handler == SIG_IGN) in sig_setup()
308 if (sigaction(SIGINT, &sa, &osa) != -1 && osa.sa_handler == SIG_IGN) in sig_setup()
326 (void)sigaction(SIGPIPE, &sa, NULL); in sig_setup()
376 sig_ignore(int sig, struct sigaction *osa, sigset_t *oset) in sig_ignore()
378 struct sigaction act; in sig_ignore()
385 error = sigaction(sig, &act, osa); in sig_ignore()
401 sig_restore(int sig, struct sigaction *osa, sigset_t *oset) in sig_restore()
409 error = sigaction(sig, osa, NULL); in sig_restore()
420 sig_setflags(int signo, int flags, struct sigaction *osa) in sig_setflags()
422 struct sigaction sa; in sig_setflags()
424 if (sigaction(signo, NULL, &sa) == -1) in sig_setflags()
429 return sigaction(signo, &sa, NULL); in sig_setflags()