/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/ |
7-1.c | 26 sigset_t oactl, tempset; local 45 sigemptyset(&oactl); 48 sigprocmask(SIG_BLOCK, &tempset, &oactl); 51 if (sigismember(&oactl, siglist[j]) != 1) { 64 ("Test PASSED: oactl did contain all signals that were added to the signal mask.\n");
|
8-1.c | 11 2. Make a call such as this: sigprocmask(SIG_BLOCK, NULL, &oactl). At 12 this point, we have obtained the signal mask in oactl. 13 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 14 that no other signal in the set is in oactl. 58 sigset_t actl, oactl; local 61 sigemptyset(&oactl); 66 sigprocmask(SIG_BLOCK, NULL, &oactl); 68 if (is_changed(oactl, SIGABRT))
|
8-2.c | 11 2. Make a call such as this: sigprocmask(SIG_SETMASK, NULL, &oactl). 13 this point, we have obtained the signal mask in oactl. 14 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 15 that no other signal in the set is in oactl. 59 sigset_t actl, oactl; local 62 sigemptyset(&oactl); 67 sigprocmask(SIG_SETMASK, NULL, &oactl); 69 if (is_changed(oactl, SIGABRT))
|
8-3.c | 11 2. Make a call such as this: sigprocmask(SIG_UNBLOCK, NULL, &oactl). At 12 this point, we have obtained the signal mask in oactl. 13 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 14 that no other signal in the set is in oactl. 58 sigset_t actl, oactl; local 61 sigemptyset(&oactl); 66 sigprocmask(SIG_UNBLOCK, NULL, &oactl); 68 if (is_changed(oactl, SIGABRT))
|
12-1.c | 69 sigset_t actl, oactl; local 72 sigemptyset(&oactl); 84 sigprocmask(SIG_SETMASK, NULL, &oactl); 86 if (sigismember(&oactl, SIGABRT) != 1) { 91 if (is_changed(oactl)) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/ |
7-1.c | 26 sigset_t oactl, tempset; local 45 sigemptyset(&oactl); 48 pthread_sigmask(SIG_BLOCK, &tempset, &oactl); 52 if (sigismember(&oactl, siglist[j]) != 1) { 58 if (sigismember(&oactl, siglist[j]) != 0) { 71 ("Test PASSED: oactl did contain all signals that were added to the signal mask.\n");
|
8-1.c | 10 2. Make a call such as this: pthread_sigmask(SIG_BLOCK, NULL, &oactl). At 11 this point, we have obtained the signal mask in oactl. 12 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 13 that no other signal in the set is in oactl. 59 sigset_t actl, oactl; local 62 sigemptyset(&oactl); 67 pthread_sigmask(SIG_BLOCK, NULL, &oactl); 69 if (is_changed(oactl, SIGABRT)) {
|
8-2.c | 11 2. Make a call such as this: pthread_sigmask(SIG_SETMASK, NULL, &oactl). 13 this point, we have obtained the signal mask in oactl. 14 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 15 that no other signal in the set is in oactl. 60 sigset_t actl, oactl; local 63 sigemptyset(&oactl); 68 pthread_sigmask(SIG_SETMASK, NULL, &oactl); 70 if (is_changed(oactl, SIGABRT)) {
|
8-3.c | 10 2. Make a call such as this: pthread_sigmask(SIG_UNBLOCK, NULL, &oactl). At 11 this point, we have obtained the signal mask in oactl. 12 3. Now call is_changed to make sure that SIGABRT is still in oactl, and 13 that no other signal in the set is in oactl. 59 sigset_t actl, oactl; local 62 sigemptyset(&oactl); 67 pthread_sigmask(SIG_UNBLOCK, NULL, &oactl); 69 if (is_changed(oactl, SIGABRT)) {
|
12-1.c | 77 sigset_t actl, oactl; local 85 sigemptyset(&oactl); 97 pthread_sigmask(SIG_SETMASK, NULL, &oactl); 99 if (is_changed(oactl, SIGABRT)) { 105 printf("sigismember(SIGABRT)=%d\n", sigismember(&oactl, SIGABRT)); 106 printf("sigismember(SIGALRM)=%d\n", sigismember(&oactl, SIGALRM));
|