/freebsd/bin/sh/ |
H A D | trap.c | 97 int signo; in sigstring_to_signum() local 99 signo = atoi(sig); in sigstring_to_signum() 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() 169 out1qstr(trap[signo]); in trapcmd() 170 if (signo == 0) { in trapcmd() 172 } else if (sys_signame[signo]) { in trapcmd() 173 out1fmt(" %s\n", sys_signame[signo]); in trapcmd() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | UnixSignals.cpp | 103 void UnixSignals::AddSignal(int signo, llvm::StringRef name, in Reset() 109 m_signals.insert(std::make_pair(signo, new_signal)); in AddSignal() 113 void UnixSignals::AddSignalCode(int signo, int code, in AddSignal() 116 collection::iterator signal = m_signals.find(signo); in AddSignalCode() argument 124 void UnixSignals::RemoveSignal(int signo) { in AddSignalCode() 125 collection::iterator pos = m_signals.find(signo); in AddSignalCode() 131 llvm::StringRef UnixSignals::GetSignalAsStringRef(int32_t signo) const { in RemoveSignal() 132 const auto pos = m_signals.find(signo); in RemoveSignal() 139 UnixSignals::GetSignalDescription(int32_t signo, std::optional<int32_t> code, in GetSignalAsCString() 145 collection::const_iterator pos = m_signals.find(signo); in GetSignalDescription() 107 AddSignal(int signo,const char * name,bool default_suppress,bool default_stop,bool default_notify,const char * description,const char * alias) AddSignal() argument 127 RemoveSignal(int signo) RemoveSignal() argument 143 GetSignalDescription(int32_t signo,std::optional<int32_t> code,std::optional<lldb::addr_t> addr,std::optional<lldb::addr_t> lower,std::optional<lldb::addr_t> upper) const GetSignalDescription() argument 214 int32_t signo; GetSignalNumberFromName() local 241 GetSignalInfo(int32_t signo,bool & should_suppress,bool & should_stop,bool & should_notify) const GetSignalInfo() argument 263 SetShouldSuppress(int signo,bool value) SetShouldSuppress() argument 274 const int32_t signo = GetSignalNumberFromName(signal_name); SetShouldSuppress() local 287 SetShouldStop(int signo,bool value) SetShouldStop() argument 298 const int32_t signo = GetSignalNumberFromName(signal_name); SetShouldStop() local 311 SetShouldNotify(int signo,bool value) SetShouldNotify() argument 322 const int32_t signo = GetSignalNumberFromName(signal_name); SetShouldNotify() local 345 for (int32_t signo = GetFirstSignalNumber(); GetFilteredSignals() local 371 IncrementSignalHitCount(int signo) IncrementSignalHitCount() argument 398 ResetSignal(int32_t signo,bool reset_stop,bool reset_notify,bool reset_suppress) ResetSignal() argument [all...] |
/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBUnixSignals.cpp | 65 const char *SBUnixSignals::GetSignalAsCString(int32_t signo) const { in GetSignalAsCString() 66 LLDB_INSTRUMENT_VA(this, signo); in GetSignalAsCString() 69 return ConstString(signals_sp->GetSignalAsStringRef(signo)).GetCString(); in GetSignalAsCString() 83 bool SBUnixSignals::GetShouldSuppress(int32_t signo) const { in GetShouldSuppress() 84 LLDB_INSTRUMENT_VA(this, signo); in GetShouldSuppress() 87 return signals_sp->GetShouldSuppress(signo); in GetShouldSuppress() 92 bool SBUnixSignals::SetShouldSuppress(int32_t signo, bool value) { in SetShouldSuppress() argument 93 LLDB_INSTRUMENT_VA(this, signo, value); in SetShouldSuppress() 98 return signals_sp->SetShouldSuppress(signo, value); in SetShouldSuppress() 103 bool SBUnixSignals::GetShouldStop(int32_t signo) cons 112 SetShouldStop(int32_t signo,bool value) SetShouldStop() argument 132 SetShouldNotify(int32_t signo,bool value) SetShouldNotify() argument [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() 98 check_interrupts_handler(const int signo, const bool explicit_unprogram) in check_interrupts_handler() argument 102 signals::programmer test_handler(signo, signal_handler); in check_interrupts_handler() 111 ::kill(getpid(), signo); in check_interrupts_handler() 113 F("Interrupted by signal %s") % signo, in check_interrupts_handler() 120 ::kill(getpid(), signo); in check_interrupts_handler() 122 F("Interrupted by signal %s") % signo, in check_interrupts_handler() 134 ::kill(getpid(), signo); in check_interrupts_handler() [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; 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/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 | 40 static void SignalHandler(int signo, siginfo_t *info, void *) { in SignalHandler() argument 41 assert(signo < NSIG); in SignalHandler() 42 g_signal_flags[signo] = 1; in SignalHandler() 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 332 UnregisterSignal(int signo,std::list<Callback>::iterator callback_it) global() argument 389 ProcessSignal(int signo) global() 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 | 222 int pf, signo, ucode; in trap() local 334 signo = SIGILL; in trap() 345 signo = SIGTRAP; in trap() 352 signo = SIGTRAP; in trap() 369 signo = SIGFPE; in trap() 379 signo = vm86_emulate((struct vm86frame *)frame); in trap() 381 if (signo == SIGTRAP) { in trap() 385 if (signo == 0) in trap() 389 signo = SIGBUS; in trap() 393 signo = SIGBUS; 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 79 LLDB_LOG(log, "tid = {0} in called with signal {1}", GetID(), signo); in SetStoppedBySignal() 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() [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 79 LLDB_LOG(log, "tid = {0} in called with signal {1}", GetID(), signo); in SetStoppedBySignal() 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() [all …]
|
/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/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/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 287 sigfpe_flt_action(int signo, siginfo_t *info, void *ptr) in sigfpe_flt_action() argument 290 sig_debug(signo, info, (ucontext_t *)ptr); in sigfpe_flt_action() 347 sigfpe_int_action(int signo, siginfo_t *info, void *ptr) in sigfpe_int_action() argument 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 [all …]
|
/freebsd/sys/amd64/amd64/ |
H A D | trap.c | 220 int pf, signo, ucode; in trap() local 314 signo = SIGILL; in trap() 325 signo = SIGTRAP; in trap() 331 signo = SIGTRAP; 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() [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/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/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/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectProcess.cpp | 1133 int signo = signals->GetFirstSignalNumber(); in HandleArgumentCompletion() local 1134 while (signo != LLDB_INVALID_SIGNAL_NUMBER) { in HandleArgumentCompletion() 1135 request.TryCompleteCurrentArg(signals->GetSignalAsStringRef(signo)); in HandleArgumentCompletion() 1136 signo = signals->GetNextSignalNumber(signo); in HandleArgumentCompletion() 1145 int signo = LLDB_INVALID_SIGNAL_NUMBER; in DoExecute() local 1149 if (!llvm::to_integer(signal_name, signo)) in DoExecute() 1150 signo = LLDB_INVALID_SIGNAL_NUMBER; in DoExecute() 1152 signo = process->GetUnixSignals()->GetSignalNumberFromName(signal_name); in DoExecute() 1154 if (signo == LLDB_INVALID_SIGNAL_NUMBER) { in DoExecute() 1158 Status error(process->Signal(signo)); in DoExecute() [all …]
|