/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
H A D | 1-2.c | 27 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_trylock/ |
H A D | 1-1.c | 20 * 5. Child thread check its state in the signal handler. 27 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/ |
H A D | 1-2.c | 31 #include <signal.h>
|
H A D | 3-1.c | 28 #include <signal.h>
|
H A D | 1-1.c | 29 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/ |
H A D | 6-1.c | 11 * sem_post() can be called from within a signal catching function 13 * 1) Set up a signal catching function for SIGALRM. 25 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/ |
H A D | 13-1.c | 21 * locked or the operation is interrupted by a signal. 25 * -> Register a signal handler for SIGALRM which post the semaphore 44 #include <signal.h> 84 UNRESOLVED(ret, "Failed to empty signal set"); in main() 90 UNRESOLVED(ret, "Failed to set signal handler"); in main()
|
H A D | 7-1.c | 10 * by sending a kill signal. 19 #include <signal.h> 78 } else { // parent to send a signal to child in main() 81 (void)kill(pid, SIGABRT); // send signal to child in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 23-10.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGPIPE 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-1.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGABRT 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-24.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGVTALRM 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-20.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGPROF 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-22.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGTRAP 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-25.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGXCPU 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-26.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGXFSZ 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-21.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGSYS 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-23.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGURG 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-2.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGALRM 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
H A D | 23-3.c | 19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the 20 * thread's signal mask during the handler execution. 23 * -> register a signal handler for SIGBUS 27 * The test fails if signal handler if reentered or signal is not pending when raised again. 41 #include <signal.h> 90 FAILED("Signal was not masked in signal handler"); in handler() 95 /* Raise the signal again. It should be masked */ in handler() 102 /* check the signal is pending */ in handler() 106 UNRESOLVED(ret, "Failed to get pending signal se in handler() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpending/ |
H A D | 1-3.c | 10 * in the main function and in the signal handler. 12 * 2) Block three signals from delivery to a signal handler. 13 * 3) Raise the signal to get into that signal handler. 14 * From the signal handler: 15 * 4) Raise one blocked signal in the signal handler. 16 * 5) Raise one blocked signal in the main process. 31 #include <signal.h>
|
H A D | 1-2.c | 9 * are blocked from delivery to a signal handler function. Steps are: 10 * 1) Block three signals from delivery to a signal handler. 11 * 2) Raise the signal to get into that signal handler. 12 * From the signal handler: 15 * 5) Verify the one signal not raised is not shown. 30 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 9-1.c | 13 * - Block signal SIGTOTEST from the process. 27 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/ |
H A D | 1-1.c | 8 * Test that if the signal specified by set does not become pending, 21 1. Register signal TIMERSIGNAL with the handler myhandler 25 4. Call sigtimedwait() to wait for signal SIGTOTEST that will never be pending 39 #include <signal.h> 105 ("sigtimedwait() did not return -1 even though signal was not pending\n"); in main()
|
H A D | 2-1.c | 8 * Test that if the signal specified by set does not become pending, 21 1. Register signal TIMERSIGNAL with the handler myhandler 25 4. Call sigtimedwait() to wait for non-pending signal SIGTOTEST for SIGTIMEDWAITSEC 40 #include <signal.h>
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/ |
H A D | 8-1.c | 9 for the selected signal, then the pending indication of that signal is 15 - Block signal SIGTOTEST from the process. 19 for signal SIGTOTEST has been reset. 27 #include <signal.h> 73 ("sigwaitinfo() returned signal other than SIGTOTEST\n"); in main()
|