HomeSort by relevance Sort by last modified time
    Searched full:signal (Results 501 - 525 of 12319) sorted by null

<<21222324252627282930>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/
2-1.c 8 This program verifies that sigpause() restores sig to the signal mask before
13 a second to set up for receiving a signal, add SIGTOTEST to its signal
15 2. Have main() send the signal indicated by SIGTOTEST to the new thread,
18 SIGTOTEST. At this point, SIGTOTEST should be restored to the signal mask,
19 so the signal handler should not be called yet, and the signal should be
35 #include <signal.h>
50 printf("signal was called\n");
78 printf("Test PASSED: signal mask was restored when
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
assertions.xml 3 The signal specified by signo shall be sent with the value specified by value to the
7 Error checking is performed but no signal is actually sent, if signo is zero (the null signal).
8 Using the null signal can be used to check the the validity of pid.
11 For a process to have permission to queue a signal to another process
15 The signal shall be queued and sent to the receiving process, if SA_SIGINFO is set for signo and
16 if the resources were available to queue the signal.
22 Either signo or at least the pending, unblocked signal shall be delivered to the calling thread before
28 The lowest numbered signal shall be selected for delivery, if there are any multiple pending signals in the
32 The specified signal shall have been queued, and the sigqueue( ) function shall return a value of zero
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
6-2.c 19 * If several threads are waiting for a signal and this signal is generated
45 #include <signal.h>
95 /* The signal is already masked, because inherited from the parent */
97 /* wait for the signal */
101 UNRESOLVED(ret, "failed to wait for signal in thread");
121 /* Set the signal mask */
125 UNRESOLVED(ret, "Failed to empty signal set");
131 UNRESOLVED(ret, "failed to add SIGUSR1 to signal set");
150 /* raise the signal */
    [all...]
  /external/tcpdump/
setsignal.c 28 #include <signal.h>
40 * An OS-independent signal() with, whenever possible, partial BSD
41 * semantics, i.e. the signal handler is restored following service
42 * of the signal, but system calls are *not* restarted, so that if
43 * "pcap_breakloop()" is called in a signal handler in a live capture,
48 * We use "sigaction()" if available. We don't specify that the signal
52 * while "signal()" has traditional semantics, so we use "sigset()"; it
53 * might cause system calls to be restarted for the signal, however.
60 * Otherwise, we use "signal()" - which means we might get traditional
62 * signal handler is reset to SIG_DFL and the signal is not blocked
    [all...]
  /external/libbrillo/brillo/daemons/
daemon.cc 51 int signal,
53 async_signal_handler_.RegisterHandler(signal, callback);
56 void Daemon::UnregisterHandler(int signal) {
57 async_signal_handler_.UnregisterHandler(signal);
62 for (int signal : {SIGTERM, SIGINT}) {
64 signal, base::Bind(&Daemon::Shutdown, base::Unretained(this)));
82 return true; // Unregister the signal handler.
87 return false; // Keep listening to the signal.
89 return true; // Unregister the signal handler.
  /external/libdaemon/libdaemon/
dsignal.h 42 * and get the next signal recieved with daemon_signal_next(). You
46 /** Installs signal handlers for the specified signals
52 /** Install a signal handler for the specified signal
58 /** Free resources of signal handling, should be called before daemon exit
62 /** Return the next signal recieved. This function will not
63 * block. Instead it returns 0 if no signal is queued.
64 * @return The next queued signal if one is queued, zero if none is
71 * daemon_signal_next() to get the next signal queued.
  /external/ltp/testcases/kernel/syscalls/rt_sigaction/
rt_sigaction02.c 30 #include <signal.h>
74 int signal; local
84 for (signal = SIGRTMIN; signal <= SIGRTMAX; signal++) {
85 tst_resm(TINFO, "Signal %d", signal);
96 TEST(ltp_rt_sigaction(signal,
106 TCID, signal,
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
9-1.c 4 for a signal.
7 1. Use sigaction to setup a signal handler for SIGABRT
8 2. Add SIGABRT to the signal mask.
13 the signal handler code.
17 proved that signal was delivered before pthread_sigmask() returned.
22 #include <signal.h>
35 ("FAIL: pthread_sigmask() returned before signal was delivered.\n");
80 ("Handler wasn't called, implying signal was not delivered.\n");
85 ("Test PASSED: signal was delivered before the call to pthread_sigmask returned.\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
19-1.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGABRT */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-10.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGPIPE */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-11.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGQUIT */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-12.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGSEGV */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-13.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGTERM */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-14.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGTSTP */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-15.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGTTIN */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-16.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGTTOU */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-17.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGUSR1 */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-18.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGUSR2 */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-19.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGPOLL */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-2.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGALRM */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-20.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGPROF */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-21.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGSYS */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-22.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGTRAP */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-23.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGURG */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-24.c 21 * sa_sigaction is used as the signal handling function.
41 #include <signal.h>
55 WRITE("Wrong signal generated?\n");
77 /* Set the signal handler */
84 perror("Failed to empty signal set");
88 /* Install the signal handler for SIGVTALRM */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");

Completed in 227 milliseconds

<<21222324252627282930>>