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

<<21222324252627282930>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
19-25.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 SIGXCPU */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-26.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 SIGXFSZ */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-3.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 SIGBUS */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-4.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 SIGCHLD */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-5.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 SIGCONT */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-6.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 SIGFPE */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-7.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 SIGHUP */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-8.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 SIGILL */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
19-9.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 SIGINT */
92 perror("Failed to set signal handler");
98 "The signal handler has been called before signal was raised");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/
1-2.c 9 until it receives a signal.
13 a second to set up for receiving a signal, and to suspend itself using
17 returned even before a signal was sent to it, thus FAIL the test.
18 3. After the ten seconds, send the new thread a signal using pthread_kill,
27 #include <signal.h>
38 printf("signal was called\n");
68 "it received a signal\n");
74 printf("Test UNRESOLVED: Couldn't send signal to thread\n");
81 printf("Test FAILED: signal was sent, but sigpause "
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/
12-1.c 9 1. Set the signal mask to only having SIGABRT.
15 3. Now verify using the is_changed() function that the only signal that is still
16 in the signal mask is SIGABRT. Neither SIGALRM nor any other signal should be
17 in the signal mask of the process.
21 #include <signal.h>
87 printf("FAIL: signal mask was changed. \n");
92 printf("FAIL: signal mask was changed. \n");
96 printf("Test PASSED: signal mask was not changed.\n");
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 sigprocmask() returned.
21 #include <signal.h>
34 ("FAIL: sigprocmask() returned before signal was delivered.\n");
78 ("Handler wasn't called, implying signal was not delivered.\n");
83 ("Test PASSED: signal was delivered before the call to sigprocmask returned.\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
3-1.c 1 #include <signal.h>
15 * a single signal number (and it is implementation-defined that the signal
17 * pending signals for that signal number.
19 * 1) Block a signal that doesn't support queueing from delivery.
20 * 2) Raise that signal 4 times.
22 * 4) Verify it cleared the signal from the pending signals and there
50 /* Send SIGUSR2 signal 4 times to this process. Since it is blocked,
77 printf("Error: signal SIGUSR2 not pending\n");
  /external/toybox/toys/lsb/
killall.c 1 /* killall.c - Send signal (default: TERM) to all processes with given names.
13 usage: killall [-l] [-iqv] [-SIGNAL|-s SIGNAL] PROCESS_NAME...
15 Send a signal (default: TERM) to all processes with the given names.
20 -s send SIGNAL instead of SIGTERM
21 -v report if the signal was successfully sent
43 fprintf(stderr, "Signal %s(%d)", name, (int)pid);
58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
78 error_exit("Invalid signal");
  /art/runtime/
signal_set.h 20 #include <signal.h>
34 void Add(int signal) {
35 if (sigaddset(&set_, signal) == -1) {
36 PLOG(FATAL) << "sigaddset " << signal << " failed";
47 // Sleep in sigwait() until a signal arrives. gdb causes EINTR failures.
  /external/compiler-rt/test/msan/
chained_origin_with_signals.cc 1 // Check that stores in signal handlers are not recorded in origin history.
3 // implementation being not async-signal-safe.
13 #include <signal.h>
28 signal(SIGHUP, SignalHandler);
30 signal(SIGHUP, SIG_DFL);
  /external/compiler-rt/test/tsan/
signal_cond.cc 3 #include <signal.h>
17 write(1, "SIGNAL\n", sizeof("SIGNAL\n") - 1);
35 signal(SIGUSR1, &sig_handler);
52 // CHECK: SIGNAL
  /external/libcxx/test/support/
assert_checkpoint.h 49 inline void checkpointSignalHandler(int signal) {
50 if (signal == SIGABRT) {
53 std::cerr << "Unexpected signal " << signal << " received\n"; local
62 HandlerT prev_h = std::signal(SIGABRT, checkpointSignalHandler);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigignore/
1-1.c 9 1. Set up a handler for signal SIGABRT, such that it is called if
10 signal is ever raised.
12 3. Raise a SIGABRT and verify that the signal handler was not called.
18 #include <signal.h>
51 printf("FAILED: Signal was not ignored\n");
assertions.xml 3 The sigignore() function sets the disposition of the signal sig to
8 terminate, if the action for the SIGCHLD signal is set to SIG_IGN.
19 If the function is passed an illegal signal number, then errno will be set
24 If an attempt is made to ignore a signal that cannot be ignored, or catch
25 a signal that cannot be caught, sigignore() shall fail, and set the value
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/
5-1.c 11 * After invalid signal set sigismember() should return -1 and set
14 * 1) Initialize a full signal set.
15 * 2) Check for invalid signal from the full signal set.
19 #include <signal.h>
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/signal/
3-1.c 8 This program tests the assertion that the signal shall be ignored
12 "myhandler" for SIGCHLD, and then raising that signal. If the
17 #include <signal.h>
32 if (signal(SIGCHLD, myhandler) == SIG_ERR) {
33 perror("Unexpected error while using signal()");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/
4-1.c 8 * Test that the sigtimedwait() function shall return the selected signal
12 1. Register signal SIGTOTEST with the handler myhandler
14 3. Raise the signal, causing it to be pending
15 4. Call sigtimedwait() and verify that it returns the signal SIGTOTEST.
23 #include <signal.h>
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/
9-1.c 8 * Test that the sigwaitinfo() function shall return the selected signal
12 1. Register signal SIGTOTEST with the handler myhandler
14 3. Raise the signal, causing it to be pending
15 4. Call sigwaitinfo() and verify that it returns the signal SIGTOTEST.
22 #include <signal.h>
  /external/valgrind/memcheck/tests/amd64-solaris/
context_rflags.c 1 /* Test if rflags values are correctly propagated in and out of a signal
6 #include <signal.h>
50 /* Trigger the signal handler. */
58 printf("Values in the signal handler:\n");
63 printf("Values after the return from the signal handler:\n");

Completed in 1044 milliseconds

<<21222324252627282930>>