Home
last modified time | relevance | path

Searched refs:signals (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/netbsd/external/bsd/kyua-cli/dist/utils/signals/
H A Dinterrupts.cpp44 namespace signals = utils::signals;
134 new signals::programmer(SIGHUP, signal_handler)); in setup_handlers()
136 new signals::programmer(SIGINT, signal_handler)); in setup_handlers()
138 new signals::programmer(SIGTERM, signal_handler)); in setup_handlers()
185 signals::interrupts_handler::interrupts_handler(void) in interrupts_handler()
194 signals::interrupts_handler::~interrupts_handler(void) in ~interrupts_handler()
202 signals::interrupts_inhibiter::interrupts_inhibiter(void) in interrupts_inhibiter()
211 signals::interrupts_inhibiter::~interrupts_inhibiter(void) in ~interrupts_inhibiter()
225 signals::check_interrupt(void) in check_interrupt()
239 signals::add_pid_to_kill(const pid_t pid) in add_pid_to_kill()
[all …]
H A Dexceptions.cpp35 namespace signals = utils::signals;
41 signals::error::error(const std::string& message) : in error()
48 signals::error::~error(void) throw() in ~error()
56 signals::interrupted_error::interrupted_error(const int signo_) : in interrupted_error()
64 signals::interrupted_error::~interrupted_error(void) throw() in ~interrupted_error()
73 signals::interrupted_error::signo(void) const in signo()
83 signals::system_error::system_error(const std::string& message_, in system_error()
92 signals::system_error::~system_error(void) throw() in ~system_error()
99 signals::system_error::original_errno(void) const throw() in original_errno()
H A Dinterrupts_test.cpp47 namespace signals = utils::signals;
95 signals::programmer test_handler(signo, signal_handler); in check_interrupts_handler()
98 signals::interrupts_handler interrupts; in check_interrupts_handler()
100 signals::check_interrupt(); in check_interrupts_handler()
102 ATF_REQUIRE_THROW_RE(signals::interrupted_error, in check_interrupts_handler()
104 signals::check_interrupt()); in check_interrupts_handler()
121 signals::programmer test_handler(signo, signal_handler); in check_interrupts_inhibiter()
124 signals::interrupts_inhibiter inhibiter; in check_interrupts_inhibiter()
166 signals::interrupts_handler interrupts; in ATF_TEST_CASE_BODY()
H A Dprogrammer.cpp44 namespace signals { namespace
73 namespace signals = utils::signals;
82 signals::programmer::programmer(const int signo, const handler_type handler) : in programmer()
103 signals::programmer::~programmer(void) in ~programmer()
124 signals::programmer::unprogram(void) in unprogram()
H A Dexceptions_test.cpp38 namespace signals = utils::signals;
44 const signals::error e("Some text"); in ATF_TEST_CASE_BODY()
52 const signals::interrupted_error e(5); in ATF_TEST_CASE_BODY()
61 const signals::system_error e("Call failed", ENOENT); in ATF_TEST_CASE_BODY()
H A Dprogrammer_test.cpp40 namespace signals = utils::signals;
74 signals::programmer programmer(SIGCHLD, sigchld::handler_1); in ATF_TEST_CASE_BODY()
90 signals::programmer programmer(SIGCHLD, sigchld::handler_1); in ATF_TEST_CASE_BODY()
105 signals::programmer programmer_1(SIGCHLD, sigchld::handler_1); in ATF_TEST_CASE_BODY()
112 signals::programmer programmer_2(SIGCHLD, sigchld::handler_2); in ATF_TEST_CASE_BODY()
H A Dmisc_test.cpp47 namespace signals = utils::signals;
73 signals::reset(SIGUSR1); in program_reset_raise()
102 ATF_REQUIRE_THROW(signals::system_error, signals::reset(-1)); in ATF_TEST_CASE_BODY()
H A Dmisc.cpp45 namespace signals = utils::signals;
49 const int utils::signals::last_signo = LAST_SIGNO;
59 signals::reset(const int signo) in reset()
/netbsd/usr.bin/timeout/
H A Dtimeout.c196 struct sigaction signals; in main() local
265 memset(&signals, 0, sizeof(signals)); in main()
266 sigemptyset(&signals.sa_mask); in main()
272 sigaddset(&signals.sa_mask, signums[i]); in main()
274 signals.sa_handler = sig_handler; in main()
275 signals.sa_flags = SA_RESTART; in main()
279 sigaction(signums[i], &signals, NULL) == -1) in main()
298 if (sigprocmask(SIG_BLOCK, &signals.sa_mask, NULL) == -1) in main()
305 sigemptyset(&signals.sa_mask); in main()
306 sigsuspend(&signals.sa_mask); in main()
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dintel_breadcrumbs.c100 if (!list_is_last(&rq->signal_link, &ce->signals) && in check_signal_order()
105 if (!list_is_first(&rq->signal_link, &ce->signals) && in check_signal_order()
170 GEM_BUG_ON(list_empty(&ce->signals)); in signal_irq_work()
172 list_for_each_safe(pos, next, &ce->signals) { in signal_irq_work()
202 if (!list_is_first(pos, &ce->signals)) { in signal_irq_work()
204 __list_del_many(&ce->signals, pos); in signal_irq_work()
205 if (&ce->signals == pos) { /* now empty */ in signal_irq_work()
328 list_for_each_prev(pos, &ce->signals) { in i915_request_enable_breadcrumb()
336 if (pos == &ce->signals) /* catch transitions from empty list */ in i915_request_enable_breadcrumb()
365 if (list_empty(&ce->signals)) in i915_request_cancel_breadcrumb()
[all …]
/netbsd/tests/lib/libc/sys/
H A Dt_sigqueue.c97 static int signals[] = { variable
102 #define CNT __arraycount(signals)
104 #define CNT (sizeof(signals) / sizeof(signals[0]))
167 ndelivered = sigorder(ordered, signals, CNT); in ATF_TC_BODY()
181 if (sigaddset(&mask, signals[i]) == -1) in ATF_TC_BODY()
187 ATF_REQUIRE(sigqueue(pid, signals[i], val) != -1); in ATF_TC_BODY()
203 ATF_REQUIRE(sigaction(signals[i], &oact[i], NULL) != -1); in ATF_TC_BODY()
/netbsd/external/bsd/kyua-cli/dist/utils/process/
H A Dchild.cpp85 namespace signals = utils::signals;
265 std::unique_ptr< signals::interrupts_inhibiter > inhibiter( in fork_capture_aux()
266 new signals::interrupts_inhibiter); in fork_capture_aux()
290 signals::add_pid_to_kill(pid); in fork_capture_aux()
322 std::unique_ptr< signals::interrupts_inhibiter > inhibiter( in fork_files_aux()
323 new signals::interrupts_inhibiter); in fork_files_aux()
351 signals::add_pid_to_kill(pid); in fork_files_aux()
446 signals::interrupts_inhibiter inhibiter; in wait()
447 signals::remove_pid_to_kill(_pimpl->_pid); in wait()
/netbsd/external/apache2/mDNSResponder/dist/mDNSPosix/
H A DPosixDaemon.c165 sigset_t signals; in MainLoop() local
194 (void) mDNSPosixRunEventLoopOnce(m, &timeout, &signals, &gotData); in MainLoop()
196 if (sigismember(&signals, SIGHUP )) Reconfigure(m); in MainLoop()
197 if (sigismember(&signals, SIGUSR1)) DumpStateLog(m); in MainLoop()
199 if (sigismember(&signals, SIGPIPE)) LogMsg("Received SIGPIPE - ignoring"); in MainLoop()
200 if (sigismember(&signals, SIGINT) || sigismember(&signals, SIGTERM)) break; in MainLoop()
/netbsd/external/bsd/kyua-cli/lib/utils/
H A DMakefile52 SRCS+= signals/exceptions.cpp \
53 signals/interrupts.cpp \
54 signals/misc.cpp \
55 signals/programmer.cpp
80 SUBDIR= cmdline config format fs logging process signals sqlite text
/netbsd/external/bsd/atf/dist/tools/
H A Dsignals_test.cpp97 using tools::signals::signal_holder; in ATF_TEST_CASE_BODY()
123 using tools::signals::signal_holder; in ATF_TEST_CASE_BODY()
149 using tools::signals::signal_holder; in ATF_TEST_CASE_BODY()
184 using tools::signals::signal_programmer; in ATF_TEST_CASE_BODY()
201 using tools::signals::signal_programmer; in ATF_TEST_CASE_BODY()
230 tools::signals::reset(SIGUSR1); in reset_child()
/netbsd/external/gpl3/gdb/dist/gdbsupport/
H A Dsignals.cc51 } signals [] = variable
63 return signals[sig].symbol; in gdb_signal_to_symbol_string()
71 return signals[sig].string; in gdb_signal_to_string()
73 return signals[GDB_SIGNAL_UNKNOWN].string; in gdb_signal_to_string()
81 && signals[sig].name != NULL) in gdb_signal_to_name()
82 return signals[sig].name; in gdb_signal_to_name()
104 if (signals[sig].name != NULL in gdb_signal_from_name()
105 && strcmp (name, signals[sig].name) == 0) in gdb_signal_from_name()
/netbsd/external/gpl3/gdb.old/dist/gdbsupport/
H A Dsignals.cc51 } signals [] = variable
63 return signals[sig].symbol; in gdb_signal_to_symbol_string()
71 return signals[sig].string; in gdb_signal_to_string()
73 return signals[GDB_SIGNAL_UNKNOWN].string; in gdb_signal_to_string()
81 && signals[sig].name != NULL) in gdb_signal_to_name()
82 return signals[sig].name; in gdb_signal_to_name()
104 if (signals[sig].name != NULL in gdb_signal_from_name()
105 && strcmp (name, signals[sig].name) == 0) in gdb_signal_from_name()
/netbsd/external/bsd/dhcpcd/dist/src/
H A Deloop.c210 const int *signals; member
698 EV_SET(pfd++, (uintptr_t)eloop->signals[i], in eloop_forked()
778 const int *signals, size_t nsignals, in eloop_signal_set_cb() argument
794 EV_SET(ke++, (uintptr_t)eloop->signals[i], in eloop_signal_set_cb()
803 eloop->signals = signals; in eloop_signal_set_cb()
813 EV_SET(ke++, (uintptr_t)eloop->signals[i], in eloop_signal_set_cb()
861 sigaddset(&newset, eloop->signals[i]); in eloop_signal_mask()
1041 if (signals != NULL) in eloop_run_epoll()
1043 (int)eloop->nevents, timeout, signals); in eloop_run_epoll()
1175 UNUSED(signals); in eloop_start()
[all …]
/netbsd/external/mit/libuv/dist/docs/src/
H A Dsignal.rst12 Reception of some signals is emulated:
26 such cases SIGWINCH signals may not always be delivered in a timely manner.
32 * Watchers for other signals can be successfully created, but these signals
33 are never received. These signals are: `SIGILL`, `SIGABRT`, `SIGFPE`, `SIGSEGV`,
52 * On Linux SIGRT0 and SIGRT1 (signals 32 and 33) are used by the NPTL pthreads library to
53 manage threads. Installing watchers for those signals will lead to unpredictable behavior
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/
H A Dsigall-precsave.exp172 set signals {
252 foreach sig $signals {
297 foreach sig [lrange $signals 1 end] {
314 foreach sig [lreverse $signals] {
323 foreach sig [lrange $signals 1 end] {
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/
H A Dsigall-precsave.exp172 set signals {
252 foreach sig $signals {
297 foreach sig [lrange $signals 1 end] {
314 foreach sig [lreverse $signals] {
323 foreach sig [lrange $signals 1 end] {
/netbsd/external/bsd/kyua-cli/dist/engine/drivers/
H A Drun_tests.cpp51 namespace signals = utils::signals;
142 signals::check_interrupt(); in run_test_program()
186 signals::interrupts_handler interrupts; in drive()
202 signals::check_interrupt(); in drive()
H A Ddebug_test.cpp47 namespace signals = utils::signals;
131 signals::interrupts_handler interrupts; in drive()
140 signals::check_interrupt(); in drive()
/netbsd/external/bsd/kyua-cli/dist/utils/fs/
H A Dauto_cleaners.cpp39 namespace signals = utils::signals;
117 signals::interrupts_inhibiter inhibiter; in mkdtemp()
225 signals::interrupts_inhibiter inhibiter; in mkstemp()
/netbsd/external/bsd/wpa/dist/src/utils/
H A Deloop_win.c58 struct eloop_signal *signals; member
429 if (eloop.signals[i].sig == sig) {
430 eloop.signals[i].signaled++;
451 if (eloop.signals[i].signaled) { in eloop_process_pending_signals()
452 eloop.signals[i].signaled = 0; in eloop_process_pending_signals()
453 eloop.signals[i].handler(eloop.signals[i].sig, in eloop_process_pending_signals()
454 eloop.signals[i].user_data); in eloop_process_pending_signals()
471 tmp = os_realloc_array(eloop.signals, eloop.signal_count + 1, in eloop_register_signal()
481 eloop.signals = tmp; in eloop_register_signal()
659 os_free(eloop.signals); in eloop_destroy()

12345678910>>...22