/freebsd/bin/sh/ |
H A D | trap.c | 97 int signo; in sigstring_to_signum() local 100 return ((signo >= 0 && signo < NSIG) ? signo : (-1)); in sigstring_to_signum() 152 int signo; in trapcmd() local 166 for (signo = 0 ; signo < sys_nsig ; signo++) { in trapcmd() 167 if (signo < NSIG && trap[signo] != NULL) { in trapcmd() 202 if (signo != 0) in trapcmd() 305 signo == SIGTTIN || signo == SIGTTOU)) { in setsignal() 352 if (sigmode[signo] != S_IGN && sigmode[signo] != S_HARD_IGN) { in ignoresig() 371 onsig(int signo) in onsig() argument 383 if (signo == SIGINT || signo == SIGQUIT) in onsig() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBUnixSignals.cpp | 66 LLDB_INSTRUMENT_VA(this, signo); in GetSignalAsCString() 84 LLDB_INSTRUMENT_VA(this, signo); in GetShouldSuppress() 87 return signals_sp->GetShouldSuppress(signo); in GetShouldSuppress() 93 LLDB_INSTRUMENT_VA(this, signo, value); in SetShouldSuppress() 104 LLDB_INSTRUMENT_VA(this, signo); in GetShouldStop() 107 return signals_sp->GetShouldStop(signo); in GetShouldStop() 113 LLDB_INSTRUMENT_VA(this, signo, value); in SetShouldStop() 118 return signals_sp->SetShouldStop(signo, value); in SetShouldStop() 124 LLDB_INSTRUMENT_VA(this, signo); in GetShouldNotify() 127 return signals_sp->GetShouldNotify(signo); in GetShouldNotify() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | UnixSignals.cpp | 132 const auto pos = m_signals.find(signo); in GetSignalAsStringRef() 209 int32_t signo; in GetSignalNumberFromName() local 210 if (llvm::to_integer(name, signo)) in GetSignalNumberFromName() 211 return signo; in GetSignalNumberFromName() 238 const auto pos = m_signals.find(signo); in GetSignalInfo() 268 if (signo != LLDB_INVALID_SIGNAL_NUMBER) in SetShouldSuppress() 293 return SetShouldStop(signo, value); in SetShouldStop() 317 return SetShouldNotify(signo, value); in SetShouldNotify() 340 signo = GetNextSignalNumber(signo)) { in GetFilteredSignals() 358 result.push_back(signo); in GetFilteredSignals() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | sigsetops.c | 36 sigaddset(sigset_t *set, int signo) in sigaddset() argument 39 if (signo <= 0 || signo > _SIG_MAXSIG) { in sigaddset() 43 set->__bits[_SIG_WORD(signo)] |= _SIG_BIT(signo); in sigaddset() 48 sigdelset(sigset_t *set, int signo) in sigdelset() argument 51 if (signo <= 0 || signo > _SIG_MAXSIG) { in sigdelset() 55 set->__bits[_SIG_WORD(signo)] &= ~_SIG_BIT(signo); in sigdelset() 111 sigismember(const sigset_t *set, int signo) in sigismember() argument 114 if (signo <= 0 || signo > _SIG_MAXSIG) { in sigismember() 118 return ((set->__bits[_SIG_WORD(signo)] & _SIG_BIT(signo)) ? 1 : 0); in sigismember()
|
/freebsd/contrib/kyua/utils/signals/ |
H A D | misc.cpp | 60 signals::reset(const int signo) in reset() argument 67 if (::sigaction(signo, &sa, NULL) == -1) { in reset() 69 throw system_error(F("Failed to reset signal %s") % signo, in reset() 83 for (int signo = 1; signo <= signals::last_signo; ++signo) { in reset_all() local 84 if (signo == SIGKILL || signo == SIGSTOP) { in reset_all() 88 signals::reset(signo); in reset_all() 91 if (signo == SIGTHR) { in reset_all()
|
H A D | interrupts_test.cpp | 66 signal_handler(const int signo) in signal_handler() argument 68 PRE(fired_signal == -1 || fired_signal == signo); in signal_handler() 69 fired_signal = signo; in signal_handler() 111 ::kill(getpid(), signo); in check_interrupts_handler() 120 ::kill(getpid(), signo); in check_interrupts_handler() 134 ::kill(getpid(), signo); in check_interrupts_handler() 135 ATF_REQUIRE_EQ(signo, fired_signal); in check_interrupts_handler() 145 check_interrupts_inhibiter(const int signo) in check_interrupts_inhibiter() argument 153 ::kill(::getpid(), signo); in check_interrupts_inhibiter() 156 ::kill(::getpid(), signo); in check_interrupts_inhibiter() [all …]
|
H A D | programmer.cpp | 51 int signo; member 63 signo(signo_), in impl() 83 signals::programmer::programmer(const int signo, const handler_type handler) : in programmer() argument 84 _pimpl(new impl(signo)) in programmer() 91 if (::sigaction(_pimpl->signo, &sa, &_pimpl->old_sa) == -1) { in programmer() 94 _pimpl->signo, original_errno); in programmer() 133 if (::sigaction(_pimpl->signo, &_pimpl->old_sa, NULL) == -1) { in unprogram() 136 _pimpl->signo, original_errno); in unprogram()
|
/freebsd/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; 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) const; 79 bool SetShouldNotify(int32_t signo, bool value); 116 void RemoveSignal(int signo); [all …]
|
/freebsd/contrib/diff/lib/ |
H A D | c-stack.c | 119 die (int signo) in die() argument 122 segv_action (signo); in die() 123 message = signo ? program_error_message : stack_overflow_message; in die() 128 if (! signo) in die() 130 kill (getpid (), signo); in die() 170 segv_handler (int signo, siginfo_t *info, in segv_handler() argument 180 signo = 0; in segv_handler() 194 signo = 0; in segv_handler() 202 (unsigned long) page_size, signo); in segv_handler() 209 die (signo); in segv_handler() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | MainLoopPosix.cpp | 41 assert(signo < NSIG); in SignalHandler() 42 g_signal_flags[signo] = 1; in SignalHandler() 281 auto signal_it = m_signals.find(signo); 294 sigaddset(&new_action.sa_mask, signo); 297 g_signal_flags[signo] = 0; 318 info.was_blocked = sigismember(&old_set, signo); 319 auto insert_ret = m_signals.insert({signo, info}); 333 auto it = m_signals.find(signo); 345 sigaddset(&set, signo); 389 void MainLoopPosix::ProcessSignal(int signo) { argument [all …]
|
/freebsd/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/sys/i386/i386/ |
H A D | trap.c | 334 signo = SIGILL; in trap() 369 signo = SIGFPE; in trap() 389 signo = SIGBUS; in trap() 393 signo = SIGBUS; in trap() 397 signo = SIGBUS; in trap() 401 signo = SIGBUS; in trap() 406 signo = SIGBUS; in trap() 432 signo = SIGFPE; in trap() 453 signo = SIGFPE; in trap() 458 signo = SIGFPE; in trap() [all …]
|
/freebsd/contrib/kyua/utils/ |
H A D | sanity.cpp | 86 crash_handler(const int signo) in crash_handler() argument 90 err_write(F("*** Fatal signal %s received\n") % signo); in crash_handler() 99 ::kill(::getpid(), signo); in crash_handler() 111 install_one_crash_handler(const int signo) in install_one_crash_handler() argument 118 if (::sigaction(signo, &sa, NULL) == -1) { in install_one_crash_handler() 121 signo % std::strerror(original_errno)); in install_one_crash_handler() 123 LD(F("Installed crash handler for signal %s") % signo); in install_one_crash_handler()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
H A D | NativeThreadFreeBSD.cpp | 76 void NativeThreadFreeBSD::SetStoppedBySignal(uint32_t signo, in SetStoppedBySignal() argument 84 m_stop_info.signo = signo; in SetStoppedBySignal() 88 switch (signo) { in SetStoppedBySignal() 102 m_stop_info.signo = SIGTRAP; in SetStoppedByBreakpoint() 108 m_stop_info.signo = SIGTRAP; in SetStoppedByTrace() 114 m_stop_info.signo = SIGTRAP; in SetStoppedByExec() 129 m_stop_info.signo = SIGTRAP; in SetStoppedByWatchpoint() 137 m_stop_info.signo = SIGTRAP; in SetStoppedByFork() 147 m_stop_info.signo = SIGTRAP; in SetStoppedByVFork() 156 m_stop_info.signo = SIGTRAP; in SetStoppedByVForkDone() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeThreadNetBSD.cpp | 76 void NativeThreadNetBSD::SetStoppedBySignal(uint32_t signo, in SetStoppedBySignal() argument 84 m_stop_info.signo = signo; in SetStoppedBySignal() 88 switch (signo) { in SetStoppedBySignal() 102 m_stop_info.signo = SIGTRAP; in SetStoppedByBreakpoint() 108 m_stop_info.signo = SIGTRAP; in SetStoppedByTrace() 114 m_stop_info.signo = SIGTRAP; in SetStoppedByExec() 129 m_stop_info.signo = SIGTRAP; in SetStoppedByWatchpoint() 137 m_stop_info.signo = SIGTRAP; in SetStoppedByFork() 147 m_stop_info.signo = SIGTRAP; in SetStoppedByVFork() 156 m_stop_info.signo = SIGTRAP; in SetStoppedByVForkDone() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | sigtimedwait.h | 51 int error, signo; in sigtimedwait() local 69 PJDLOG_VERIFY(sigwait(&mask, &signo) == 0); in sigtimedwait() 80 if (signo == SIGALRM) { in sigtimedwait() 82 signo = -1; in sigtimedwait() 87 return (signo); in sigtimedwait()
|
/freebsd/contrib/libedit/ |
H A D | sig.c | 72 sig_handler(int signo) in sig_handler() argument 79 (void) sigaddset(&nset, signo); in sig_handler() 82 sel->el_signal->sig_no = signo; in sig_handler() 84 switch (signo) { in sig_handler() 102 if (signo == sighdl[i]) in sig_handler() 105 (void) sigaction(signo, &sel->el_signal->sig_action[i], NULL); in sig_handler() 110 (void) kill(0, signo); in sig_handler()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_siginfo.c | 71 sig_debug(int signo, siginfo_t *info, ucontext_t *ctx) in sig_debug() argument 75 printf("%d %p %p\n", signo, info, ctx); in sig_debug() 100 sigalrm_action(int signo, siginfo_t *info, void *ptr) in sigalrm_action() argument 103 sig_debug(signo, info, (ucontext_t *)ptr); in sigalrm_action() 137 sigchild_action(int signo, siginfo_t *info, void *ptr) in sigchild_action() argument 290 sig_debug(signo, info, (ucontext_t *)ptr); in sigfpe_flt_action() 350 sig_debug(signo, info, (ucontext_t *)ptr); in sigfpe_int_action() 397 sigsegv_action(int signo, siginfo_t *info, void *ptr) in sigsegv_action() argument 400 sig_debug(signo, info, (ucontext_t *)ptr); in sigsegv_action() 433 sigbus_action(int signo, siginfo_t *info, void *ptr) in sigbus_action() argument [all …]
|
/freebsd/contrib/netbsd-tests/rump/kernspace/ |
H A D | sendsig.c | 46 rumptest_sendsig(char *signo) in rumptest_sendsig() argument 52 sig = strtoull(signo, NULL, 10); in rumptest_sendsig() 75 rumptest_localsig(int signo) in rumptest_localsig() argument 80 psignal(p, signo); in rumptest_localsig()
|
/freebsd/sys/amd64/amd64/ |
H A D | trap.c | 314 signo = SIGILL; in trap() 348 signo = SIGFPE; in trap() 352 signo = SIGBUS; in trap() 357 signo = SIGBUS; in trap() 361 signo = SIGBUS; in trap() 365 signo = SIGBUS; in trap() 370 signo = SIGBUS; in trap() 392 signo = SIGFPE; in trap() 401 signo = SIGFPE; in trap() 406 signo = SIGFPE; in trap() [all …]
|
/freebsd/bin/dd/ |
H A D | misc.c | 129 siginfo_handler(int signo __unused) in siginfo_handler() 137 sigalarm_handler(int signo __unused) in sigalarm_handler() 143 static void terminate(int signo) __dead2; 145 terminate(int signo) in terminate() argument 147 kill_signal = signo; in terminate() 159 sigint_handler(int signo __unused) in sigint_handler()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/posix/ |
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, in SignalHandle() argument 70 : m_mainloop(mainloop), m_signo(signo), m_callback_it(callback_it) {} in SignalHandle()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | readpassphrase.c | 49 static volatile sig_atomic_t signo[_NSIG]; variable 71 signo[i] = 0; in readpassphrase() 152 const int sigttou = signo[SIGTTOU]; in readpassphrase() 156 errno == EINTR && !signo[SIGTTOU]) in readpassphrase() 158 signo[SIGTTOU] = sigttou; in readpassphrase() 177 if (signo[i]) { in readpassphrase() 209 signo[s] = 1; in handler()
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | readpassphrase.c | 55 static volatile sig_atomic_t signo[NSIG]; variable 77 signo[i] = 0; in readpassphrase() 156 const int sigttou = signo[SIGTTOU]; in readpassphrase() 160 errno == EINTR && !signo[SIGTTOU]) in readpassphrase() 162 signo[SIGTTOU] = sigttou; in readpassphrase() 181 if (signo[i]) { in readpassphrase() 212 signo[s] = 1; in handler()
|
/freebsd/usr.bin/tip/tip/ |
H A D | tipout.c | 57 intIOT(int signo) in intIOT() argument 70 intEMT(int signo) in intEMT() argument 100 intTERM(int signo) in intTERM() argument 104 if (signo && tipin_pid) in intTERM() 105 kill(tipin_pid, signo); in intTERM() 111 intSYS(int signo) in intSYS() argument
|