/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/ |
1-1.c | 8 * Test that the raise(<signal>) function shall send the signal 10 * 1) Set up a signal handler for the signal that says we have caught the 11 * signal. 12 * 2) Raise the signal. 13 * 3) If signal handler was called, test passed. 14 * This test is only performed on one signal. All other signals are 18 #include <signal.h> 27 printf("Caught signal being tested!\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/signal/ |
assertions.xml | 3 Default handling for that signal shall occur, if the value of func is SIG_DFL. 6 The signal shall be ingnored if the value of func is SIG_IGN. 9 When a signal occurs, and func points to a function, the equivalent of: (*func)(sig); 13 If and when the signal handler returns, the program shall resume execution at the 17 If the handler is called, signal() shall return the value of 18 func of the last call to signal() that pertains to the 19 specified signal sig. 22 The signal( ) function shall return SIG_ERR, and set errno to EINVAL if the sig argument 23 passed to signal() is not a valid signal numbe [all...] |
5-1.c | 8 This program tests the assertion that the signal function shall return 9 the function name of the last signal handler that was associated with 14 respectively. A third call to signal() is made regarding signal SIGUSR1. 20 #include <signal.h> 37 if (signal(SIGUSR1, SIGUSR1_handler) == SIG_ERR) { 38 perror("Unexpected error while using signal()"); 42 if (signal(SIGUSR2, SIGUSR2_handler) == SIG_ERR) { 43 perror("Unexpected error while using signal()"); 47 if (signal(SIGUSR1, SIG_IGN) != SIGUSR1_handler) [all...] |
/external/valgrind/gdbserver_tests/ |
filter_passsigalrm | 7 # Filter the number of real-time signal SIGRTMIN which 10 sed 's/Program received signal SIG[0-9]*, Real-time event [0-9]*./Program received signal SIGxx, Real-time event xx./'
|
nlvgdbsigqueue.stdoutB.exp | 3 Program received signal SIGTRAP, Trace/breakpoint trap. 6 sending signal 7 sending signal 10 Program received signal SIGUSR1, User defined signal 1. 14 Program received signal SIGUSR1, User defined signal 1.
|
mcsignopass.stdoutB.exp | 0 Signal Stop Print Pass to program Description 3 Signal Stop Print Pass to program Description 5 Signal Stop Print Pass to program Description 8 Program received signal SIGSEGV, Segmentation fault. 12 Program received signal SIGSEGV, Segmentation fault. 16 Program received signal SIGSEGV, Segmentation fault. 20 Program received signal SIGSEGV, Segmentation fault. 24 Program received signal SIGSEGV, Segmentation fault. 28 Program received signal SIGSEGV, Segmentation fault. 32 Program received signal SIGSEGV, Segmentation fault [all...] |
nlvgdbsigqueue.stdoutB.exp-solaris2 | 3 Program received signal SIGTRAP, Trace/breakpoint trap. 6 sending signal 7 sending signal 11 Program received signal SIGUSR1, User defined signal 1. 15 Program received signal SIGTRAP, Trace/breakpoint trap.
|
/external/python/cpython2/Lib/unittest/test/ |
test_break.py | 4 import signal 21 self._default_handler = signal.getsignal(signal.SIGINT) 23 signal.signal(signal.SIGINT, self.int_handler) 26 signal.signal(signal.SIGINT, self._default_handler) 32 default_handler = signal.getsignal(signal.SIGINT [all...] |
/external/python/cpython3/Lib/unittest/test/ |
test_break.py | 5 import signal 19 self._default_handler = signal.getsignal(signal.SIGINT) 21 signal.signal(signal.SIGINT, self.int_handler) 24 signal.signal(signal.SIGINT, self._default_handler) 30 default_handler = signal.getsignal(signal.SIGINT [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/unittest/test/ |
test_break.py | 4 import signal 21 self._default_handler = signal.getsignal(signal.SIGINT) 23 signal.signal(signal.SIGINT, self.int_handler) 26 signal.signal(signal.SIGINT, self._default_handler) 32 default_handler = signal.getsignal(signal.SIGINT [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/unittest/test/ |
test_break.py | 4 import signal 21 self._default_handler = signal.getsignal(signal.SIGINT) 23 signal.signal(signal.SIGINT, self.int_handler) 26 signal.signal(signal.SIGINT, self._default_handler) 32 default_handler = signal.getsignal(signal.SIGINT [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/test/ |
test_break.py | 4 import signal 21 self._default_handler = signal.getsignal(signal.SIGINT) 23 signal.signal(signal.SIGINT, self.int_handler) 26 signal.signal(signal.SIGINT, self._default_handler) 32 default_handler = signal.getsignal(signal.SIGINT [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/test/ |
test_break.py | 4 import signal 21 self._default_handler = signal.getsignal(signal.SIGINT) 23 signal.signal(signal.SIGINT, self.int_handler) 26 signal.signal(signal.SIGINT, self._default_handler) 32 default_handler = signal.getsignal(signal.SIGINT [all...] |
/external/wayland/tests/ |
signal-test.c | 40 struct wl_signal signal; local 42 wl_signal_init(&signal); 45 assert(&signal.listener_list == signal.listener_list.next 47 assert(signal.listener_list.next == signal.listener_list.prev 53 struct wl_signal signal; local 62 wl_signal_init(&signal); 64 wl_signal_add(&signal, &l1); 65 wl_signal_add(&signal, &l2) 86 struct wl_signal signal; local 103 struct wl_signal signal; local [all...] |
/external/python/cpython3/Lib/test/ |
signalinterproctester.py | 2 import signal 37 signal.pause() 44 self.fail('signal %s not received after %s seconds' 48 code = 'import os, signal; os.kill(%s, signal.%s)' % (pid, signame) 55 signal.signal(signal.SIGHUP, self.sighup_handler) 56 signal.signal(signal.SIGUSR1, self.sigusr1_handler [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/ |
1-1.c | 8 * Test that the kill() function shall send signal sig to the process 10 * 1) Set up a signal handler for the signal that says we have caught the 11 * signal. 12 * 2) Call kill on the current process with the signal. 13 * 3) If signal handler was called, test passed. 14 * This test is only performed on one signal. All other signals are 20 #include <signal.h> 30 printf("Caught signal being tested!\n"); 50 printf("Could not raise signal being tested\n") [all...] |
2-1.c | 1 #include <signal.h> 14 * Test that if the signal is the null signal (0), no signal is sent. 15 * 1) Call kill on the current process with the null signal. 17 * the test a pass (most likely no signal was sent).
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
signal.h | 3 Implementation and Platform specific portion of <signal.h>.
17 #include <machine/signal.h>
19 /** The actual (default) signal numbers are assigned using an anonymous enum
22 figure out what number to assign to a new signal.
24 Properly constructed programs will NEVER depend upon signal numbers being
26 is that each signal number is distinct, positive, and non-zero.
47 /** The type of a signal handler function. **/
51 /** The signal function associates a "signal handler" with a signal number. [all...] |
/external/libbrillo/brillo/ |
asynchronous_signal_handler.cc | 7 #include <signal.h> 25 CHECK_EQ(sigemptyset(&signal_mask_), 0) << "Failed to initialize signal mask"; 27 << "Failed to initialize signal mask"; 59 void AsynchronousSignalHandler::RegisterHandler(int signal, 61 registered_callbacks_[signal] = callback; 62 CHECK_EQ(0, sigaddset(&signal_mask_, signal)); 66 void AsynchronousSignalHandler::UnregisterHandler(int signal) { 67 Callbacks::iterator callback_it = registered_callbacks_.find(signal); 70 ResetSignal(signal); 78 int signal = info.ssi_signo local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/ |
1-3.c | 8 Test the error condition of calling sigdelset() to delete a signal not 11 1) Initialize an empty signal set. 12 2) Verify the SIGCHLD signal is not in the empty signal set. 13 3) Attempt to remove the SIGCHLD signal from the signal set. 14 4) Verify the SIGCHLD signal is still not in the signal set. 17 #include <signal.h> 30 perror("SIGCHLD is already a member of signal set") [all...] |
1-4.c | 5 1) Initialize an empty signal set. 6 2) Add the SIGALRM signal to the empty signal set and verify. 7 3) Remove the SIGALRM signal from the signal set and verify removed. 8 4) Attempt to remove again and verify signal is still removed. 11 #include <signal.h> 28 printf("sigaddset did not successfully add signal\n"); 34 printf("Signal is still in signal set.\n") [all...] |
/external/valgrind/none/tests/ |
pending.c | 6 2. When unblocking the signal, the signal should have been delivered 9 #include <signal.h> 20 printf("4: got signal %s\n", 21 ( sig == SIGUSR1 ? "SIGUSR1" : "unexpected signal" )); 24 fprintf(stderr, "FAILED: got signal %d instead\n", sig); 29 fprintf(stderr, "FAILED: signal delivered early (in handler)\n"); 47 signal(SIGUSR1, handler); 48 signal(SIGHUP, handler); 50 printf("1: sending signal\n") [all...] |
/external/compiler-rt/test/tsan/ |
signal_malloc.cc | 3 #include <signal.h> 7 // CHECK: WARNING: ThreadSanitizer: signal-unsafe call inside of a signal 10 // CHECK: SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal{{.*}}handler 21 sleep(1); // let the signal handler run
|
/external/libbrillo/brillo/dbus/ |
dbus_signal.cc | 20 bool DBusSignalBase::SendSignal(dbus::Signal* signal) const { 21 // This sends the signal asynchronously. However, the raw message inside 22 // the signal object is ref-counted, so we're fine to pass a stack-allocated 23 // Signal object here. 24 return dbus_object_->SendSignal(signal);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
2-1.c | 8 * Test that if the signal is the null signal (0), no signal is sent. 9 * 1) Call pthread_kill on the current thread with the null signal. 11 * the test a pass (most likely no signal was sent). 15 #include <signal.h>
|