Lines Matching refs:signo
66 int signo; in default_sigaction() local
72 for (signo = 1; signo < NSIG; ++signo) in default_sigaction()
73 actions[signo] = actions[0]; in default_sigaction()
220 sigstate_clear_pending (struct hurd_sigstate *ss, int signo) in sigstate_clear_pending() argument
223 && __sigismember (&_hurd_global_sigstate->pending, signo)) in sigstate_clear_pending()
225 __sigdelset (&_hurd_global_sigstate->pending, signo); in sigstate_clear_pending()
226 return _hurd_global_sigstate->pending_data[signo]; in sigstate_clear_pending()
229 assert (__sigismember (&ss->pending, signo)); in sigstate_clear_pending()
230 __sigdelset (&ss->pending, signo); in sigstate_clear_pending()
231 return ss->pending_data[signo]; in sigstate_clear_pending()
268 write_corefile (int signo, const struct hurd_signal_detail *detail) in libc_hidden_def()
315 signo, detail->code, detail->error, in libc_hidden_def()
413 _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread, in _hurdsig_abort_rpcs() argument
491 if (! signo || !(_hurd_sigstate_actions (ss) [signo].sa_flags & SA_RESTART)) in _hurdsig_abort_rpcs()
506 abort_all_rpcs (int signo, struct machine_thread_all_state *state, int live) in abort_all_rpcs() argument
536 reply_ports[nthreads] = _hurdsig_abort_rpcs (ss, signo, 1, in abort_all_rpcs()
620 int signo, struct hurd_signal_detail *detail, in weak_alias()
637 __sigaddset (&ss->pending, signo); in weak_alias()
640 ss->pending_data[signo] = *detail; in weak_alias()
654 abort_all_rpcs (signo, &thread_state, 1); in weak_alias()
656 __proc_mark_stop (port, signo, detail->code); in weak_alias()
701 if (signo == 0) in weak_alias()
734 if (! __sigismember (&rss->blocked, signo)) in weak_alias()
756 if (HURD_PREEMPT_SIGNAL_P (pe, signo, detail->exc_subcode)) in weak_alias()
761 &signo, detail); in weak_alias()
776 if (handler == SIG_ERR && __sigismember (&_hurdsig_preempted_set, signo)) in weak_alias()
799 action = & _hurd_sigstate_actions (ss) [signo]; in weak_alias()
801 if (!untraced && __sigismember (&_hurdsig_traced, signo)) in weak_alias()
819 switch (signo) in weak_alias()
879 if (__sigmask (signo) & STOPSIGS) in weak_alias()
885 if (signo == SIGCONT) in weak_alias()
890 if (_hurd_stopped && act != stop && (untraced || signo == SIGCONT)) in weak_alias()
896 && (__sigmask (signo) & (__sigmask (SIGTTIN) | __sigmask (SIGTTOU) in weak_alias()
902 detail->code = signo; in weak_alias()
903 signo = SIGKILL; in weak_alias()
908 if (__sigismember (&blocked, signo) || (signo != SIGKILL && _hurd_stopped)) in weak_alias()
924 (port, signo, detail->code)); in weak_alias()
953 detail->code = signo; /* XXX ? */ in weak_alias()
954 signo = SIGILL; in weak_alias()
969 abort_all_rpcs (signo, &thread_state, 0); in weak_alias()
972 int status = W_EXITCODE (0, signo); in weak_alias()
975 if (act == core && write_corefile (signo, detail)) in weak_alias()
1055 crit ? 0 : signo, 1, in weak_alias()
1087 scp = _hurd_setup_sighandler (ss, action, handler, signo, detail, in weak_alias()
1135 __sigaddset (&ss->blocked, signo); in weak_alias()
1141 && signo != SIGILL && signo != SIGTRAP) in weak_alias()
1184 int signo; in post_pending() local
1191 for (signo = 1; signo < NSIG; ++signo) in post_pending()
1192 if (__sigismember (&pending, signo)) in post_pending()
1194 detail = sigstate_clear_pending (ss, signo); in post_pending()
1198 if (! post_signal (ss, signo, &detail, 0, reply)) in post_pending()
1242 int signo, struct hurd_signal_detail *detail, in _hurd_internal_post_signal() argument
1261 ss = post_signal (ss, signo, detail, untraced, reply); in _hurd_internal_post_signal()
1266 if (signo != 0 && ss->thread != MACH_PORT_NULL) in _hurd_internal_post_signal()
1294 signal_allowed (int signo, mach_port_t refport) in signal_allowed() argument
1296 if (signo < 0 || signo >= NSIG) in signal_allowed()
1307 switch (signo) in signal_allowed()
1394 int signo, natural_t sigcode, in _S_msg_sig_post() argument
1400 if (err = signal_allowed (signo, refport)) in _S_msg_sig_post()
1410 signo, &d, reply_port, reply_port_type, in _S_msg_sig_post()
1423 int signo, natural_t sigcode, in _S_msg_sig_post_untraced() argument
1429 if (err = signal_allowed (signo, refport)) in _S_msg_sig_post_untraced()
1438 signo, &d, reply_port, reply_port_type, in _S_msg_sig_post_untraced()
1494 int signo; in _hurdsig_init() local
1495 for (signo = 1; signo < NSIG; ++signo) in _hurdsig_init()
1496 if (intarray[INIT_SIGIGN] & __sigmask(signo)) in _hurdsig_init()
1497 _hurd_global_sigstate->actions[signo].sa_handler = SIG_IGN; in _hurdsig_init()