/freebsd-src/contrib/kyua/utils/signals/ |
H A D | Makefile.am.inc | 29 libutils_a_SOURCES += utils/signals/exceptions.cpp 30 libutils_a_SOURCES += utils/signals/exceptions.hpp 31 libutils_a_SOURCES += utils/signals/interrupts.cpp 32 libutils_a_SOURCES += utils/signals/interrupts.hpp 33 libutils_a_SOURCES += utils/signals/interrupts_fwd.hpp 34 libutils_a_SOURCES += utils/signals/misc.cpp 35 libutils_a_SOURCES += utils/signals/misc.hpp 36 libutils_a_SOURCES += utils/signals/programmer.cpp 37 libutils_a_SOURCES += utils/signals/programmer.hpp 38 libutils_a_SOURCES += utils/signals/programmer_fwd.hpp [all …]
|
H A D | interrupts.cpp | 29 #include "utils/signals/interrupts.hpp" 45 #include "utils/signals/exceptions.hpp" 46 #include "utils/signals/programmer.hpp" 48 namespace signals = utils::signals; 68 static std::auto_ptr< signals::programmer > sighup_handler; 70 static std::auto_ptr< signals::programmer > sigint_handler; 72 static std::auto_ptr< signals::programmer > sigterm_handler; 87 /// Generic handler to capture interrupt signals. 130 std::auto_ptr< signals::programmer > tmp_sighup_handler( in setup_handlers() 131 new signals::programmer(SIGHUP, signal_handler)); in setup_handlers() [all …]
|
H A D | misc.cpp | 29 #include "utils/signals/misc.hpp" 44 #include "utils/signals/exceptions.hpp" 46 namespace signals = utils::signals; 50 const int utils::signals::last_signo = LAST_SIGNO; 57 /// \throw signals::system_error If there is a problem trying to reset the 60 signals::reset(const int signo) in reset() 75 /// Resets all signals to their default handlers. 77 /// \return True if all signals could be reset properly; false otherwise. 79 signals::reset_all(void) in reset_all() 83 for (int signo = 1; signo <= signals::last_signo; ++signo) { in reset_all() [all …]
|
H A D | timer.cpp | 29 #include "utils/signals/timer.hpp" 48 #include "utils/signals/exceptions.hpp" 49 #include "utils/signals/interrupts.hpp" 50 #include "utils/signals/programmer.hpp" 53 namespace signals = utils::signals; 83 throw signals::system_error("Failed to program system's interval timer", in safe_setitimer() 95 typedef std::set< signals::timer* > timers_set; 98 typedef std::vector< signals::timer* > timers_vector; 110 std::auto_ptr< signals::programmer > _sigalrm_programmer; 122 add_to_all_timers(signals::timer* timer) in add_to_all_timers() [all …]
|
H A D | interrupts_test.cpp | 29 #include "utils/signals/interrupts.hpp" 45 #include "utils/signals/exceptions.hpp" 46 #include "utils/signals/programmer.hpp" 50 namespace signals = utils::signals; 60 /// Test handler for signals. 79 // We loop waiting for signals because we want the parent process to send us in pause_child() 102 signals::programmer test_handler(signo, signal_handler); in check_interrupts_handler() 105 signals::interrupts_handler interrupts; in check_interrupts_handler() 108 signals::check_interrupt(); in check_interrupts_handler() 112 ATF_REQUIRE_THROW_RE(signals::interrupted_error, in check_interrupts_handler() [all …]
|
H A D | exceptions.cpp | 29 #include "utils/signals/exceptions.hpp" 35 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 D | timer_test.cpp | 29 #include "utils/signals/timer.hpp" 46 #include "utils/signals/interrupts.hpp" 47 #include "utils/signals/programmer.hpp" 50 namespace signals = utils::signals; 57 class delayed_inserter : public signals::timer { 68 signals::interrupts_inhibiter inhibiter; in callback() 80 signals::timer(delta), _destination(destination), _item(item) in delayed_inserter() 97 wait_timers(const std::vector< signals::timer* >& timers) in wait_timers() 102 for (std::vector< signals::timer* >::const_iterator in wait_timers() 104 const signals::timer* timer = *iter; in wait_timers() [all …]
|
H A D | programmer.cpp | 29 #include "utils/signals/programmer.hpp" 41 #include "utils/signals/exceptions.hpp" 45 namespace signals { namespace 48 /// Internal implementation for the signals::programmer class. 70 } // namespace signals 74 namespace signals = utils::signals; 82 /// \throw signals::system_error If there is an error programming the signal. 83 signals::programmer::programmer(const int signo, const handler_type handler) : in programmer() 104 signals::programmer::~programmer(void) in ~programmer() 107 LW("Destroying still-programmed signals::programmer object"); in ~programmer() [all …]
|
H A D | misc_test.cpp | 29 #include "utils/signals/misc.hpp" 44 #include "utils/signals/exceptions.hpp" 48 namespace signals = utils::signals; 57 /// Body of a subprocess that tests the signals::reset function. 74 signals::reset(SIGUSR1); in program_reset_raise() 84 /// Body of a subprocess that executes the signals::reset_all function. 87 /// an error is reported. No signals are tested. 91 const bool ok = signals::reset_all(); in run_reset_all() 113 ATF_REQUIRE_THROW(signals::system_error, signals::reset(-1)); in ATF_TEST_CASE_BODY()
|
H A D | exceptions_test.cpp | 29 #include "utils/signals/exceptions.hpp" 38 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 D | programmer_test.cpp | 29 #include "utils/signals/programmer.hpp" 40 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 D | exceptions.hpp | 29 /// \file utils/signals/exceptions.hpp 30 /// Exception types raised by the signals module. 38 namespace signals { namespace 41 /// Base exceptions for signals errors. 66 /// (i.e. be able to keep it as a child of signals::error). 79 } // namespace signals
|
/freebsd-src/share/doc/psd/05.sysman/ |
H A D | 1.3.t | 28 .sh "Signals 33 The system defines a set of \fIsignals\fP that may be delivered 41 \fIdefault\fP action is to be taken when signals occur. 43 Some signals 47 A process may choose to have signals delivered on a special 50 All signals have the same \fIpriority\fP. If multiple signals 54 signals may yet occur. Mechanisms are provided whereby critical sections 55 of code may protect themselves against the occurrence of specified signals. 59 The signals defined by the system fall into one of 63 The set of signals is defined in the file \fI<signal.h>\fP. [all …]
|
/freebsd-src/share/man/man9/ |
H A D | signal.9 | 138 macro clears all signals in 143 macro sets all signals in 157 does not have any signals set. 163 has any signals set. 167 macro determines if two signal sets are equal; that is, the same signals 177 macro ORs the signals set in 184 macro ANDs the signals set in 191 macro NANDs the signals set in 202 signals from 204 These two signals cannot be blocked or caught and [all …]
|
/freebsd-src/lib/libsys/ |
H A D | sigaction.2 | 54 The system defines a set of signals that may be delivered to a process. 74 so that signals are taken on a special 80 but other signals may yet occur. 83 defines the set of signals currently blocked from delivery 95 signals pending for the process or thread. 98 For signals directed at a specific thread, 102 For signals directed at the process, 107 Signals may be delivered any time a thread enters the operating system 109 If multiple signals are ready to be delivered at the same time, 110 any signals that could be caused by traps are delivered first. [all …]
|
H A D | sigwait.2 | 33 .Nd select a set of signals 43 system call selects a set of signals, specified by 45 If none of the selected signals are pending, 47 waits until one or more of the selected signals has been generated. 50 atomically clears one of the selected signals from the set of pending signals 55 The signals specified by 74 Should any of the multiple pending signals in the range 81 and non-realtime signals, or between multiple pending non-realtime signals,
|
H A D | sigfastblock.2 | 33 .Nd controls signals blocking with a simple memory write 50 block asynchronous signals delivery with a single write to userspace 62 blocked signal mask for delivery of asynchronous signals. 64 effectively operates as if the mask containing all blockable signals was 70 to kernel when signals are delivered. 78 quantity to recursively block or unblock signals delivery. 87 bit is set, which would deliver the pending signals immediately. 88 Otherwise, signals delivery might be postponed. 106 If there are pending signals which should be delivered to the calling
|
H A D | sigwaitinfo.2 | 33 .Nd "wait for queued signals (REALTIME)" 50 except that if none of the signals specified by 62 is zero-valued and if none of the signals specified by 83 Should any of multiple pending signals in the range 89 selection order between realtime and non-realtime signals, or 90 between multiple pending non-realtime signals, is unspecified. 94 is suspended until one or more signals in 142 If no further signals are 146 Upon successful completion (that is, one of the signals specified by
|
/freebsd-src/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_sigqueue.c | 105 static int signals[] = { variable 110 #define CNT __arraycount(signals) 112 #define CNT (sizeof(signals) / sizeof(signals[0])) 133 * given a array of signals to be delivered in tosend of size len 134 * place in ordered the signals to be delivered in delivery order 135 * and return the number of signals that should be delivered 152 * OTOH, FreeBSD behaviour is to treat all signals as realtime while in sigorder() 154 * particular, signals < SIGRTMIN are not collapsed when queued more in sigorder() 181 atf_tc_set_md_var(tc, "descr", "Test queuing of real-time signals"); in ATF_TC_HEAD() 193 ndelivered = sigorder(ordered, signals, CNT); in ATF_TC_BODY() [all …]
|
/freebsd-src/lib/libc/gen/ |
H A D | signal.3 | 58 Signals allow the manipulation of a process from outside its 61 There are two general types of signals: 63 Signals which cause termination of a program might result from 66 Signals are used when a process is stopped because it wishes to access 69 Signals are optionally generated 73 Most signals result in the termination of the process receiving them 75 is taken; some signals instead cause the process receiving them 82 signals, the 86 These signals are defined in the file 198 the child process inherits the signals. [all …]
|
/freebsd-src/lib/libc/compat-43/ |
H A D | sigvec.2 | 53 The system defines a set of signals that may be delivered to a process. 68 so that signals are taken on a special 71 All signals have the same 76 but other signals may yet occur. 79 defines the set of signals currently blocked from delivery 92 signals pending for the process. 141 The following is a list of all signals 237 all signals, the signal mask, the signal stack, 243 action for all signals which were caught and 244 resets all signals to be caught on the user stack. [all …]
|
/freebsd-src/contrib/xz/src/xz/ |
H A D | signals.c | 5 /// \file signals.c 6 /// \brief Handling signals to abort operation 25 /// Mask of signals for which we have established a signal handler to set 30 /// signals (with uninitialized hooked_signals) if signals_block() and 59 // List of signals for which we establish the signal handler. in signals_init() 77 // Mask of the signals for which we have established a signal handler. in signals_init() 83 // Add also the signals from message.c to hooked_signals. in signals_init() 97 // All the signals that we handle we also blocked while the signal in signals_init() 102 // for user_abort and cleanup before exiting. We block the signals in signals_init() 110 // If the parent process has left some signals ignored, in signals_init()
|
/freebsd-src/sys/dev/uart/ |
H A D | uart_if.m | 78 # getsig() - get line and modem signals. 79 # This method retrieves the DTE and DCE signals and their corresponding 80 # delta bits. The delta bits include those corresponding to DTE signals 84 # change in the signals in the mean time. 137 # setsig() - set line and modem signals. 138 # This method allows changing DTE signals. The DTE delta bits indicate which 139 # signals are to be changed and the DTE bits themselves indicate whether to 140 # set or clear the signals. A subsequent call to getsig will return with the 141 # DTE delta bits set of those DTE signals that did change by this method.
|
/freebsd-src/contrib/kyua/utils/process/ |
H A D | child.cpp | 55 #include "utils/signals/interrupts.hpp" 85 namespace signals = utils::signals; 205 std::auto_ptr< signals::interrupts_inhibiter > inhibiter( in fork_capture_aux() 206 new signals::interrupts_inhibiter); in fork_capture_aux() 209 inhibiter.reset(NULL); // Unblock signals. in fork_capture_aux() 214 inhibiter.reset(NULL); // Unblock signals. in fork_capture_aux() 230 signals::add_pid_to_kill(pid); in fork_capture_aux() 231 inhibiter.reset(NULL); // Unblock signals. in fork_capture_aux() 262 std::auto_ptr< signals::interrupts_inhibiter > inhibiter( in fork_files_aux() 263 new signals::interrupts_inhibiter); in fork_files_aux() [all …]
|
/freebsd-src/contrib/bc/include/ |
H A D | status.h | 695 /// Assert that signals are locked. There are non-async-signal-safe functions in 696 /// bc, and they *must* have signals locked. Other functions are expected to 697 /// *not* have signals locked, for reasons. So this is a pre-built assert 698 /// (no-op in non-debug mode) that check that signals are locked. 706 /// Assert that signals are unlocked. There are non-async-signal-safe functions 707 /// in bc, and they *must* have signals locked. Other functions are expected to 708 /// *not* have signals locked, for reasons. So this is a pre-built assert 709 /// (no-op in non-debug mode) that check that signals are unlocked. 719 /// Assert that signals are locked. There are non-async-signal-safe functions in 720 /// bc, and they *must* have signals locke [all...] |