Home
last modified time | relevance | path

Searched full:signals (Results 1 – 25 of 1217) sorted by relevance

12345678910>>...49

/freebsd/contrib/kyua/utils/signals/
H A DMakefile.am.inc29 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 Dinterrupts.cpp29 #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::unique_ptr< signals::programmer > sighup_handler;
70 static std::unique_ptr< signals::programmer > sigint_handler;
72 static std::unique_ptr< signals::programmer > sigterm_handler;
87 /// Generic handler to capture interrupt signals.
130 std::unique_ptr< signals::programmer > tmp_sighup_handler( in setup_handlers()
131 new signals::programmer(SIGHUP, signal_handler)); in setup_handlers()
[all …]
H A Dtimer.cpp29 #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::unique_ptr< signals::programmer > _sigalrm_programmer;
122 add_to_all_timers(signals::timer* timer) in add_to_all_timers()
[all …]
H A Dmisc.cpp29 #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 Dinterrupts_test.cpp29 #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 Dtimer_test.cpp29 #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 Dexceptions.cpp29 #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 Dprogrammer.cpp29 #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 Dmisc_test.cpp29 #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 Dexceptions_test.cpp29 #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 Dprogrammer_test.cpp29 #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()
/freebsd/share/doc/psd/05.sysman/
H A D1.3.t28 .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/share/man/man9/
H A Dsignal.9138 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/lib/libsys/
H A Dsigaction.254 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 Dsigwait.233 .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 Dsigwaitinfo.233 .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
H A Dsigfastblock.233 .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
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_sigqueue.c105 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/lib/libc/gen/
H A Dsignal.358 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/lib/libc/compat-43/
H A Dsigvec.253 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/contrib/bc/include/
H A Dstatus.h695 /// 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 locked. Other functions are expected to
[all …]
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Damlogic,axg-audio-clkc.yaml38 - description: input plls to generate clock signals N0
39 - description: input plls to generate clock signals N1
40 - description: input plls to generate clock signals N2
41 - description: input plls to generate clock signals N3
42 - description: input plls to generate clock signals N4
43 - description: input plls to generate clock signals N5
44 - description: input plls to generate clock signals N6
45 - description: input plls to generate clock signals N7
/freebsd/contrib/kyua/utils/process/
H A Dchild.cpp55 #include "utils/signals/interrupts.hpp"
85 namespace signals = utils::signals;
205 std::unique_ptr< signals::interrupts_inhibiter > inhibiter( in fork_capture_aux()
206 new signals::interrupts_inhibiter); in fork_capture_aux()
209 inhibiter.reset(); // Unblock signals. in fork_capture_aux()
214 inhibiter.reset(); // 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::unique_ptr< signals::interrupts_inhibiter > inhibiter( in fork_files_aux()
263 new signals::interrupts_inhibiter); in fork_files_aux()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DUnixSignals.h86 // These provide an iterator through the signals available on this system.
118 /// Track how many times signals are hit as stop reasons.
121 /// Get the hit count statistics for signals.
123 /// Gettings statistics on the hit counts of signals can help explain why some
125 /// software use signals a lot and can cause slow debugging performance if
134 // Returns a vector of signals that meet criteria provided in arguments. Each
136 // this flag true - only signals that have it set to true are returned false -
137 // only signals that have it set to true are returned
183 // GDBRemote signals need to be copyable.
/freebsd/sys/dev/uart/
H A Duart_if.m78 # 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.

12345678910>>...49