Home
last modified time | relevance | path

Searched refs:oactl (Results 1 - 10 of 10) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/
H A D12-1.c69 sigset_t actl, oactl; in main() local
72 sigemptyset(&oactl); in main()
84 sigprocmask(SIG_SETMASK, NULL, &oactl); in main()
86 if (sigismember(&oactl, SIGABRT) != 1) { in main()
91 if (is_changed(oactl)) { in main()
H A D8-3.c11 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; in main() local
61 sigemptyset(&oactl); in main()
66 sigprocmask(SIG_UNBLOCK, NULL, &oactl); in main()
68 if (is_changed(oactl, SIGABRT)) in main()
H A D8-1.c11 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; in main() local
61 sigemptyset(&oactl); in main()
66 sigprocmask(SIG_BLOCK, NULL, &oactl); in main()
68 if (is_changed(oactl, SIGABRT)) in main()
H A D8-2.c11 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; in main() local
62 sigemptyset(&oactl); in main()
67 sigprocmask(SIG_SETMASK, NULL, &oactl); in main()
69 if (is_changed(oactl, SIGABRT)) in main()
H A D7-1.c26 sigset_t oactl, tempset; in main() local
45 sigemptyset(&oactl); in main()
48 sigprocmask(SIG_BLOCK, &tempset, &oactl); in main()
51 if (sigismember(&oactl, siglist[j]) != 1) { in main()
64 ("Test PASSED: oactl did contain all signals that were added to the signal mask.\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
H A D7-1.c26 sigset_t oactl, tempset; in a_thread_func() local
46 sigemptyset(&oactl); in a_thread_func()
49 pthread_sigmask(SIG_BLOCK, &tempset, &oactl); in a_thread_func()
53 if (sigismember(&oactl, siglist[j]) != 1) { in a_thread_func()
59 if (sigismember(&oactl, siglist[j]) != 0) { in a_thread_func()
72 ("Test PASSED: oactl did contain all signals that were added to the signal mask.\n"); in a_thread_func()
H A D8-3.c10 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; in a_thread_func() local
62 sigemptyset(&oactl); in a_thread_func()
67 pthread_sigmask(SIG_UNBLOCK, NULL, &oactl); in a_thread_func()
69 if (is_changed(oactl, SIGABRT)) { in a_thread_func()
H A D8-1.c10 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; in a_thread_func() local
62 sigemptyset(&oactl); in a_thread_func()
67 pthread_sigmask(SIG_BLOCK, NULL, &oactl); in a_thread_func()
69 if (is_changed(oactl, SIGABRT)) { in a_thread_func()
H A D8-2.c11 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; in a_thread_func() local
63 sigemptyset(&oactl); in a_thread_func()
68 pthread_sigmask(SIG_SETMASK, NULL, &oactl); in a_thread_func()
70 if (is_changed(oactl, SIGABRT)) { in a_thread_func()
H A D12-1.c77 sigset_t actl, oactl; in a_thread_func() local
85 sigemptyset(&oactl); in a_thread_func()
97 pthread_sigmask(SIG_SETMASK, NULL, &oactl); in a_thread_func()
99 if (is_changed(oactl, SIGABRT)) { in a_thread_func()
105 printf("sigismember(SIGABRT)=%d\n", sigismember(&oactl, SIGABRT)); in a_thread_func()
106 printf("sigismember(SIGALRM)=%d\n", sigismember(&oactl, SIGALRM)); in a_thread_func()

Completed in 3 milliseconds