/freebsd-current/contrib/kyua/utils/signals/ |
H A D | misc.cpp | 55 /// \param signo The number of the signal handler to reset. 60 signals::reset(const int signo) argument 67 if (::sigaction(signo, &sa, NULL) == -1) { 69 throw system_error(F("Failed to reset signal %s") % signo, 83 for (int signo = 1; signo <= signals::last_signo; ++signo) { 84 if (signo == SIGKILL || signo == SIGSTOP) { 88 signals::reset(signo); [all...] |
H A D | programmer.cpp | 51 int signo; member in struct:utils::signals::programmer::impl 63 signo(signo_), 79 /// \param signo The signal for which to install the handler. 83 signals::programmer::programmer(const int signo, const handler_type handler) : argument 84 _pimpl(new impl(signo)) 91 if (::sigaction(_pimpl->signo, &sa, &_pimpl->old_sa) == -1) { 94 _pimpl->signo, original_errno); 133 if (::sigaction(_pimpl->signo, &_pimpl->old_sa, NULL) == -1) { 136 _pimpl->signo, original_errno);
|
H A D | interrupts_test.cpp | 64 /// \param signo The signal that triggered the handler. 66 signal_handler(const int signo) argument 68 PRE(fired_signal == -1 || fired_signal == signo); 69 fired_signal = signo; 94 /// \param signo The signal to check. 98 check_interrupts_handler(const int signo, const bool explicit_unprogram) argument 102 signals::programmer test_handler(signo, signal_handler); 111 ::kill(getpid(), signo); local 113 F("Interrupted by signal %s") % signo, 120 ::kill(getpid(), signo); local 134 ::kill(getpid(), signo); local 145 check_interrupts_inhibiter(const int signo) argument 153 ::kill(::getpid(), signo); local 156 ::kill(::getpid(), signo); local [all...] |
H A D | exceptions.hpp | 58 int signo(void) const;
|
H A D | programmer_test.cpp | 53 void handler_1(const int signo) { argument 54 PRE(signo == SIGCHLD); 59 void handler_2(const int signo) { argument 60 PRE(signo == SIGCHLD);
|
/freebsd-current/lib/libc/gen/ |
H A D | sigsetops.c | 36 sigaddset(sigset_t *set, int signo) argument 39 if (signo <= 0 || signo > _SIG_MAXSIG) { 43 set->__bits[_SIG_WORD(signo)] |= _SIG_BIT(signo); 48 sigdelset(sigset_t *set, int signo) argument 51 if (signo <= 0 || signo > _SIG_MAXSIG) { 55 set->__bits[_SIG_WORD(signo)] &= ~_SIG_BIT(signo); 111 sigismember(const sigset_t *set, int signo) argument [all...] |
/freebsd-current/bin/sh/ |
H A D | trap.c | 97 int signo; local 99 signo = atoi(sig); 100 return ((signo >= 0 && signo < NSIG) ? signo : (-1)); 152 int signo; local 166 for (signo = 0 ; signo < sys_nsig ; signo++) { 167 if (signo < NSI 251 setsignal(int signo) argument 332 getsigaction(int signo, sig_t *sigact) argument 347 ignoresig(int signo) argument 371 onsig(int signo) argument [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/API/ |
H A D | SBUnixSignals.cpp | 65 const char *SBUnixSignals::GetSignalAsCString(int32_t signo) const { 66 LLDB_INSTRUMENT_VA(this, signo); 69 return ConstString(signals_sp->GetSignalAsStringRef(signo)).GetCString(); 83 bool SBUnixSignals::GetShouldSuppress(int32_t signo) const { 84 LLDB_INSTRUMENT_VA(this, signo); 87 return signals_sp->GetShouldSuppress(signo); 92 bool SBUnixSignals::SetShouldSuppress(int32_t signo, bool value) { argument 93 LLDB_INSTRUMENT_VA(this, signo, value); 98 return signals_sp->SetShouldSuppress(signo, value); 103 bool SBUnixSignals::GetShouldStop(int32_t signo) cons 112 SetShouldStop(int32_t signo, bool value) argument 132 SetShouldNotify(int32_t signo, bool value) argument [all...] |
/freebsd-current/contrib/kyua/utils/ |
H A D | sanity.cpp | 84 /// \param signo The received signal. 86 crash_handler(const int signo) argument 90 err_write(F("*** Fatal signal %s received\n") % signo); 99 ::kill(::getpid(), signo); local 109 /// \param signo The fatal signal for which to install a handler. 111 install_one_crash_handler(const int signo) argument 118 if (::sigaction(signo, &sa, NULL) == -1) { 121 signo % std::strerror(original_errno)); 123 LD(F("Installed crash handler for signal %s") % signo);
|
/freebsd-current/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBUnixSignals.h | 33 const char *GetSignalAsCString(int32_t signo) const; 37 bool GetShouldSuppress(int32_t signo) const; 39 bool SetShouldSuppress(int32_t signo, bool value); 41 bool GetShouldStop(int32_t signo) const; 43 bool SetShouldStop(int32_t signo, bool value); 45 bool GetShouldNotify(int32_t signo) const; 47 bool SetShouldNotify(int32_t signo, bool value);
|
/freebsd-current/contrib/llvm-project/lldb/source/Target/ |
H A D | UnixSignals.cpp | 103 void UnixSignals::AddSignal(int signo, llvm::StringRef name, argument 109 m_signals.insert(std::make_pair(signo, new_signal)); 113 void UnixSignals::AddSignalCode(int signo, int code, argument 116 collection::iterator signal = m_signals.find(signo); 124 void UnixSignals::RemoveSignal(int signo) { argument 125 collection::iterator pos = m_signals.find(signo); 131 llvm::StringRef UnixSignals::GetSignalAsStringRef(int32_t signo) const { 132 const auto pos = m_signals.find(signo); 139 UnixSignals::GetSignalDescription(int32_t signo, std::optional<int32_t> code, argument 145 collection::const_iterator pos = m_signals.find(signo); 209 int32_t signo; local 236 GetSignalInfo(int32_t signo, bool &should_suppress, bool &should_stop, bool &should_notify) const argument 256 SetShouldSuppress(int signo, bool value) argument 267 const int32_t signo = GetSignalNumberFromName(signal_name); local 280 SetShouldStop(int signo, bool value) argument 291 const int32_t signo = GetSignalNumberFromName(signal_name); local 304 SetShouldNotify(int signo, bool value) argument 315 const int32_t signo = GetSignalNumberFromName(signal_name); local 364 IncrementSignalHitCount(int signo) argument 390 ResetSignal(int32_t signo, bool reset_stop, bool reset_notify, bool reset_suppress) argument [all...] |
/freebsd-current/contrib/netbsd-tests/rump/kernspace/ |
H A D | sendsig.c | 46 rumptest_sendsig(char *signo) argument 52 sig = strtoull(signo, NULL, 10); 75 rumptest_localsig(int signo) argument 80 psignal(p, signo);
|
/freebsd-current/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | HostProcessPosix.cpp | 31 Status HostProcessPosix::Signal(int signo) const { 38 return HostProcessPosix::Signal(m_process, signo); 41 Status HostProcessPosix::Signal(lldb::process_t process, int signo) { argument 44 if (-1 == ::kill(process, signo))
|
H A D | MainLoopPosix.cpp | 40 static void SignalHandler(int signo, siginfo_t *info, void *) { argument 41 assert(signo < NSIG); 42 g_signal_flags[signo] = 1; 279 MainLoopPosix::RegisterSignal(int signo, const Callback &callback, argument 281 auto signal_it = m_signals.find(signo); 285 return SignalHandleUP(new SignalHandle(*this, signo, callback_it)); 294 sigaddset(&new_action.sa_mask, signo); 297 g_signal_flags[signo] = 0; 301 int ret = sigaction(signo, &new_action, &info.old_action); 307 EV_SET(&ev, signo, EVFILT_SIGNA 331 UnregisterSignal( int signo, std::list<Callback>::iterator callback_it) argument 389 ProcessSignal(int signo) argument [all...] |
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | UnixSignals.h | 32 llvm::StringRef GetSignalAsStringRef(int32_t signo) const; 35 GetSignalDescription(int32_t signo, 41 bool SignalIsValid(int32_t signo) const; 51 /// \param[in] signo 63 bool GetSignalInfo(int32_t signo, bool &should_suppress, bool &should_stop, 66 bool GetShouldSuppress(int32_t signo) const; 68 bool SetShouldSuppress(int32_t signo, bool value); 72 bool GetShouldStop(int32_t signo) const; 74 bool SetShouldStop(int32_t signo, bool value); 77 bool GetShouldNotify(int32_t signo) cons [all...] |
/freebsd-current/contrib/openbsm/bin/auditdistd/ |
H A D | sigtimedwait.h | 51 int error, signo; local 69 PJDLOG_VERIFY(sigwait(&mask, &signo) == 0); 80 if (signo == SIGALRM) { 82 signo = -1; 87 return (signo);
|
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Host/posix/ |
H A D | HostProcessPosix.h | 26 virtual Status Signal(int signo) const; 27 static Status Signal(lldb::process_t process, int signo);
|
H A D | MainLoopPosix.h | 48 SignalHandleUP RegisterSignal(int signo, const Callback &callback, 55 void UnregisterSignal(int signo, std::list<Callback>::iterator callback_it); 61 void ProcessSignal(int signo); 68 SignalHandle(MainLoopPosix &mainloop, int signo, argument 70 : m_mainloop(mainloop), m_signo(signo), m_callback_it(callback_it) {}
|
/freebsd-current/contrib/diff/lib/ |
H A D | c-stack.c | 119 die (int signo) argument 122 segv_action (signo); 123 message = signo ? program_error_message : stack_overflow_message; 128 if (! signo) 130 kill (getpid (), signo); local 170 segv_handler (int signo, siginfo_t *info, argument 180 signo = 0; 194 signo = 0; 200 "segv_handler fault=%p base=%p size=%lx page=%lx signo=%d\n", 202 (unsigned long) page_size, signo); [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_sigalarm.c | 47 alarm_handler(int signo, siginfo_t *si, void *ctx) argument 49 ATF_REQUIRE_EQ_MSG(si->si_signo, signo, "Received unexpected signal"); 54 alarm_handler(int signo) argument 56 ATF_REQUIRE_EQ_MSG(SIGALRM, signo, "Received unexpected signal");
|
/freebsd-current/usr.bin/tip/tip/ |
H A D | tipout.c | 57 intIOT(int signo) argument 70 intEMT(int signo) argument 100 intTERM(int signo) argument 104 if (signo && tipin_pid) 105 kill(tipin_pid, signo); 111 intSYS(int signo) argument
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | readpassphrase.c | 49 static volatile sig_atomic_t signo[_NSIG]; variable 71 signo[i] = 0; 152 const int sigttou = signo[SIGTTOU]; 156 errno == EINTR && !signo[SIGTTOU]) 158 signo[SIGTTOU] = sigttou; 177 if (signo[i]) { 209 signo[s] = 1;
|
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | readpassphrase.c | 55 static volatile sig_atomic_t signo[NSIG]; variable 77 signo[i] = 0; 156 const int sigttou = signo[SIGTTOU]; 160 errno == EINTR && !signo[SIGTTOU]) 162 signo[SIGTTOU] = sigttou; 181 if (signo[i]) { 212 signo[s] = 1;
|
/freebsd-current/contrib/libedit/ |
H A D | sig.c | 72 sig_handler(int signo) argument 79 (void) sigaddset(&nset, signo); 82 sel->el_signal->sig_no = signo; 84 switch (signo) { 102 if (signo == sighdl[i]) 105 (void) sigaction(signo, &sel->el_signal->sig_action[i], NULL); 110 (void) kill(0, signo);
|
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeThreadNetBSD.cpp | 76 void NativeThreadNetBSD::SetStoppedBySignal(uint32_t signo, argument 79 LLDB_LOG(log, "tid = {0} in called with signal {1}", GetID(), signo); 84 m_stop_info.signo = signo; 88 switch (signo) { 102 m_stop_info.signo = SIGTRAP; 108 m_stop_info.signo = SIGTRAP; 114 m_stop_info.signo = SIGTRAP; 129 m_stop_info.signo = SIGTRAP; 137 m_stop_info.signo [all...] |