/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
4-1.c | 12 - Register for myhandler to be called when SIGTOTEST is called, and make 14 - Block signal SIGTOTEST from the process. 15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current 17 - Verify that the handler is executed NUMCALLS times AFTER SIGTOTEST 23 #define SIGTOTEST SIGRTMIN 49 sigaction(SIGTOTEST, &act, 0); 53 sighold(SIGTOTEST); 57 if (sigqueue(pid, SIGTOTEST, value) != 0) { 67 SIGTOTEST); 71 sigrelse(SIGTOTEST); [all...] |
5-1.c | 12 - Register for myhandler to be called when SIGTOTEST is called, and make 14 - Block signal SIGTOTEST from the process. 15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current 17 - Verify that the handler is executed at least once AFTER SIGTOTEST 23 #define SIGTOTEST SIGRTMIN 49 sigaction(SIGTOTEST, &act, 0); 54 sighold(SIGTOTEST); 57 if (sigqueue(pid, SIGTOTEST, value) != 0) { 67 SIGTOTEST); 71 sigrelse(SIGTOTEST); [all...] |
8-1.c | 12 - Register for myhandler to be called when SIGTOTEST is called, and make 14 - Block signal SIGTOTEST from the process. 15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current 17 - Verify that the handler is executed NUMCALLS times AFTER SIGTOTEST 24 #define SIGTOTEST SIGRTMIN 50 sigaction(SIGTOTEST, &act, 0); 55 sighold(SIGTOTEST); 58 if (sigqueue(pid, SIGTOTEST, value) != 0) { 68 SIGTOTEST); 72 sigrelse(SIGTOTEST); [all...] |
1-1.c | 11 * 2) In the parent process, call sigqueue with signal SIGTOTEST and 14 * 3) Wait for signal SIGTOTEST. 15 * 4) Return 1 if SIGTOTEST and SIGTOVAL are the values of signo and 22 #define SIGTOTEST SIGRTMIN 34 if ((signo == SIGTOTEST) && (info->si_value.sival_int == VALTOTEST)) { 51 sigaction(SIGTOTEST, &act, 0); 65 if (sigqueue(pid, SIGTOTEST, value) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/ |
1-1.c | 13 1. Register signal SIGTOTEST with the handler myhandler 14 2. Block SIGTOTEST from the process 21 #define SIGTOTEST SIGUSR1 46 sigaddset(&selectset, SIGTOTEST); 49 sigaction(SIGTOTEST, &act, 0); 50 sighold(SIGTOTEST); 51 raise(SIGTOTEST); 55 if (sigismember(&pendingset, SIGTOTEST) != 1) { 56 perror("SIGTOTEST is not pending\n"); 68 if (sigismember(&pendingset, SIGTOTEST) != 0) [all...] |
9-1.c | 12 1. Register signal SIGTOTEST with the handler myhandler 13 2. Block SIGTOTEST from the process 15 4. Call sigwaitinfo() and verify that it returns the signal SIGTOTEST. 20 #define SIGTOTEST SIGUSR1 45 sigaddset(&selectset, SIGTOTEST); 48 sigaction(SIGTOTEST, &act, 0); 49 sighold(SIGTOTEST); 50 raise(SIGTOTEST); 54 if (sigismember(&pendingset, SIGTOTEST) != 1) { 55 perror("SIGTOTEST is not pending\n") [all...] |
5-1.c | 11 1. Register signal SIGTOTEST with the handler myhandler. 12 2. Block signal SIGTOTEST, and then raise it causing it to become pending. 13 3. Call sigwaitinfo() with only SIGTOTEST in set. 14 4. Verify that info.si_signo equals SIGTOTEST. 20 #define SIGTOTEST SIGUSR1 46 sigaddset(&selectset, SIGTOTEST); 49 sigaction(SIGTOTEST, &act, 0); 50 sighold(SIGTOTEST); 52 raise(SIGTOTEST); 59 if (info.si_signo != SIGTOTEST) { [all...] |
8-1.c | 13 - Register for myhandler to be called when SIGTOTEST is called, and make 15 - Block signal SIGTOTEST from the process. 16 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current 19 for signal SIGTOTEST has been reset. 25 #define SIGTOTEST SIGRTMIN 51 sigaction(SIGTOTEST, &act, 0); 55 sighold(SIGTOTEST); 59 if (sigqueue(pid, SIGTOTEST, value) != 0) { 67 sigaddset(&selectset, SIGTOTEST); 70 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) { [all...] |
6-1.c | 11 1. Register signal SIGTOTEST with the handler myhandler. 12 2. Block signal SIGTOTEST, and then raise it causing it to become pending. 13 3. Call sigwaitinfo() with only SIGTOTEST in set. 20 #define SIGTOTEST SIGUSR1 46 sigaddset(&selectset, SIGTOTEST); 49 sigaction(SIGTOTEST, &act, 0); 50 sighold(SIGTOTEST); 52 raise(SIGTOTEST);
|
7-1.c | 12 - Register for myhandler to be called when SIGTOTEST is called, and make 14 - Block signal SIGTOTEST from the process. 15 - Using sigqueue(), send NUMCALLS instances of SIGTOTEST to the current 24 #define SIGTOTEST SIGRTMIN 52 sigaction(SIGTOTEST, &act, 0); 56 sighold(SIGTOTEST); 60 if (sigqueue(pid, SIGTOTEST, value) != 0) { 68 sigaddset(&selectset, SIGTOTEST); 71 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) { 73 ("sigwaitinfo() returned signal other than SIGTOTEST\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/ |
4-1.c | 12 1. Register signal SIGTOTEST with the handler myhandler 13 2. Block SIGTOTEST from the process 15 4. Call sigtimedwait() and verify that it returns the signal SIGTOTEST. 20 #define SIGTOTEST SIGUSR1 50 sigaddset(&selectset, SIGTOTEST); 53 sigaction(SIGTOTEST, &act, 0); 54 sighold(SIGTOTEST); 55 raise(SIGTOTEST); 59 if (sigismember(&pendingset, SIGTOTEST) != 1) { 60 perror("SIGTOTEST is not pending\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/ |
1-1.c | 23 #define SIGTOTEST SIGABRT 42 if (sigaction(SIGTOTEST, &act, 0) == -1) { 46 if (raise(SIGTOTEST) != 0) {
|
4-1.c | 28 #define SIGTOTEST SIGABRT 47 if (sigaction(SIGTOTEST, &act, 0) == -1) { 51 if (kill(getpid(), SIGTOTEST) != 0) {
|
1-2.c | 33 #define SIGTOTEST SIGABRT 57 if (sigaction(SIGTOTEST, &parentact, 0) == -1) { 72 if (sigaction(SIGTOTEST, &childact, 0) == -1) { 76 if (raise(SIGTOTEST) != 0) {
|
2-1.c | 21 #define SIGTOTEST SIGABRT 56 if (sigaction(SIGTOTEST, &act, 0) == -1) { 60 if (raise(SIGTOTEST) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/ |
1-2.c | 12 * 2) In the parent process, call kill with signal SIGTOTEST for the 15 * 3) Wait for signal SIGTOTEST. 16 * 4) Return 1 if SIGTOTEST is found. Return 0 otherwise. 34 #define SIGTOTEST SIGUSR1 54 if (sigaddset(&set, SIGTOTEST) == -1) { 66 sigaction(SIGTOTEST, &act, 0); 75 if (sig != SIGTOTEST) 85 if (kill(pid, SIGTOTEST) != 0) {
|
1-1.c | 18 #define SIGTOTEST SIGABRT 45 if (sigaction(SIGTOTEST, &act, 0) == -1) { 49 if (kill(getpid(), SIGTOTEST) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/ |
1-1.c | 14 2. Have main() send the signal indicated by SIGTOTEST to the new thread, 30 #define SIGTOTEST SIGABRT 47 sigaction(SIGTOTEST, &act, 0); 48 sighold(SIGTOTEST); 49 sigpause(SIGTOTEST); 64 if (pthread_kill(new_th, SIGTOTEST) != 0) {
|
2-1.c | 13 a second to set up for receiving a signal, add SIGTOTEST to its signal 14 mask and to suspend itself using sigpause(SIGTOTEST). 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, 40 #define SIGTOTEST SIGABRT 63 sigaction(SIGTOTEST, &act, 0); 64 sighold(SIGTOTEST); 66 if ((sigpause(SIGTOTEST) != -1) || (errno != EINTR)) { 75 raise(SIGTOTEST); [all...] |
1-2.c | 32 #define SIGTOTEST SIGABRT 48 sigaction(SIGTOTEST, &act, 0); 49 sigpause(SIGTOTEST); 73 if (pthread_kill(new_th, SIGTOTEST) != 0) {
|
3-1.c | 28 #define SIGTOTEST SIGABRT 48 sigaction(SIGTOTEST, &act, 0); 49 return_value = sigpause(SIGTOTEST); 84 if (pthread_kill(new_th, SIGTOTEST) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/ |
1-1.c | 19 #define SIGTOTEST SIGCHLD 47 if (sigaction(SIGTOTEST, &act, 0) == -1) { 57 if (killpg(pgrp, SIGTOTEST) != 0) {
|
1-2.c | 10 * 2) In the parent process, call killpg with signal SIGTOTEST for the 15 * 3) Wait for signal SIGTOTEST. 16 * 4) Return 1 if SIGTOTEST is found. Return 0 otherwise. 22 #define SIGTOTEST SIGUSR1 47 sigaction(SIGTOTEST, &act, 0); 68 sigignore(SIGTOTEST); 76 if (killpg(child_pgid, SIGTOTEST) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
1-1.c | 24 SIGTOTEST, and calling a handler that sets handler_called to 1. Now 26 3. Have main() send the signal indicated by SIGTOTEST to the new thread, 46 #define SIGTOTEST SIGABRT 64 sigaction(SIGTOTEST, &act, 0); 92 if (pthread_kill(new_th, SIGTOTEST) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaltstack/ |
3-1.c | 13 - Set up a handler for signal SIGTOTEST and set the sa_flags member to SA_ONSTACK. 16 - raise SIGTOTEST 32 #define SIGTOTEST SIGUSR1 69 if (sigaction(SIGTOTEST, &act, 0) == -1) { 90 if (raise(SIGTOTEST) == -1) {
|