Home
last modified time | relevance | path

Searched refs:SIGUSR2 (Results 1 – 25 of 256) sorted by relevance

1234567891011

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
D3-1.c39 if (sigaddset(&newmask, SIGUSR2) == -1) { in main()
52 if (raise(SIGUSR2) != 0) { in main()
56 if (raise(SIGUSR2) != 0) { in main()
60 if (raise(SIGUSR2) != 0) { in main()
64 if (raise(SIGUSR2) != 0) { in main()
76 if (sigismember(&pendingset, SIGUSR2) == 0) { in main()
93 if (sigismember(&pendingset, SIGUSR2) == 1) { in main()
D1-1.c35 if (sigaddset(&newmask, SIGUSR2) == -1) { in main()
48 if (raise(SIGUSR2) != 0) { in main()
59 if (sigismember(&pendingset, SIGUSR2) != 1) { in main()
70 if (sig != SIGUSR2) { in main()
81 if (sigismember(&pendingset, SIGUSR2) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D28-18.c63 if (signal(SIGUSR2, handler_1) == SIG_ERR) { in main()
83 ret = sigaction(SIGUSR2, &sa, &save); in main()
91 ret = raise(SIGUSR2); in main()
104 ret = sigaction(SIGUSR2, &save, 0); in main()
112 ret = raise(SIGUSR2); in main()
D3-2.c40 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
46 if (sigaction(SIGUSR2, 0, &oact) == -1) { in main()
52 if (raise(SIGUSR2) == -1) { in main()
D3-19.c40 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
46 if (sigaction(SIGUSR2, 0, &oact) == -1) { in main()
52 if (raise(SIGUSR2) == -1) { in main()
D3-18.c40 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
46 if (sigaction(SIGUSR2, 0, &oact) == -1) { in main()
52 if (raise(SIGUSR2) == -1) { in main()
/external/python/cpython2/Lib/test/
Dtest_threadsignals.py19 usr2 = signal.signal(signal.SIGUSR2, for_usr2)
33 os.kill(process_pid, signal.SIGUSR2)
54 or signal_blackboard[signal.SIGUSR2]['tripped'] == 0:
64 self.assertEqual( signal_blackboard[signal.SIGUSR2]['tripped'], 1)
65 self.assertEqual( signal_blackboard[signal.SIGUSR2]['tripped_by'],
77 signal.SIGUSR2 : {'tripped': 0, 'tripped_by': 0 },
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/
D6-1.c32 sigaddset(&set1, SIGUSR2); in main()
35 sigaddset(&set2, SIGUSR2); in main()
47 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
65 if (raise(SIGUSR2) == -1) { in main()
100 if (sigismember(&pending_set, SIGUSR2) != 0) { in main()
D4-1.c32 sigaddset(&blocked_set2, SIGUSR2); in main()
44 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
62 if ((raise(SIGABRT) == -1) | (raise(SIGUSR2) == -1)) { in main()
79 1) | (sigismember(&pending_set, SIGUSR2) != 1)) { in main()
/external/strace/tests-mx32/
Dsigsuspend.c60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
88 raise(SIGUSR2); in main()
95 sigdelset(&u.libc_mask, SIGUSR2); in main()
Drt_sigaction.c49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/strace/tests-m32/
Dsigsuspend.c60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
88 raise(SIGUSR2); in main()
95 sigdelset(&u.libc_mask, SIGUSR2); in main()
Drt_sigaction.c49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/strace/tests/
Dsigsuspend.c60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
88 raise(SIGUSR2); in main()
95 sigdelset(&u.libc_mask, SIGUSR2); in main()
Drt_sigaction.c49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D12-1.c74 ret = sigaddset(&mask, SIGUSR2); in main()
93 ret = kill(getpid(), SIGUSR2); in main()
115 ret = sigismember(&pending, SIGUSR2); in main()
159 ret = sigismember(&mask, SIGUSR2); in main()
195 ret = sigismember(&pending, SIGUSR2); in main()
/external/libunwind/tests/
DGtest-resume-sig.c97 sigaddset (&mask, SIGUSR2); in handler()
99 kill (getpid (), SIGUSR2); /* pend SIGUSR2 */ in handler()
125 else if (sig == SIGUSR2) in handler()
133 signal (SIGUSR2, SIG_IGN); in handler()
158 sigaction (SIGUSR2, &sa, NULL) != 0) in main()
/external/ltp/testcases/kernel/syscalls/sigpending/
Dsigpending02.c56 sigaddset(&only_SIGUSR, SIGUSR2); in test_sigpending()
60 old_sighandler2 = SAFE_SIGNAL(SIGUSR2, sighandler); in test_sigpending()
87 if (raise(SIGUSR2)) in test_sigpending()
97 if ((i == SIGUSR1 || i == SIGUSR2) != sigismember(&pending, i)) in test_sigpending()
114 SAFE_SIGNAL(SIGUSR2, old_sighandler2); in test_sigpending()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/
D1-1.c60 } else if (signo == SIGUSR2) { in handler()
87 sigaddset(&tempmask, SIGUSR2); in main()
95 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
121 kill(pid, SIGUSR2); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D8-1.c61 if (sigaddset(&main_sigmask, SIGUSR2) != 0) { in main()
76 if (raise(SIGUSR2) != 0) { in main()
103 ret = sigismember(&th_sigmask, SIGUSR2); in main()
123 ret = sigismember(&th_pendingset, SIGUSR2); in main()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c100 signal(SIGUSR2, parent_sig); in parent_sig()
129 sigaddset(&newmask, SIGUSR2); in dochild1()
212 sigaddset(&newmask, SIGUSR2); in dofork()
280 sigaddset(&newmask, SIGUSR2); in dochild2()
371 if ((signal(SIGUSR2, parent_sig)) == SIG_ERR) { in run_test()
468 sigaddset(&newmask, SIGUSR2); in run_test()
496 if ((kill(child2, SIGUSR2)) < 0) { in run_test()
503 if ((kill(child1, SIGUSR2)) < 0) { in run_test()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl01.c19 TEST(prctl(PR_SET_PDEATHSIG, SIGUSR2)); in verify_prctl()
33 if (get_sig == SIGUSR2) { in verify_prctl()
38 get_sig, SIGUSR2); in verify_prctl()
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace02.c140 if ((sigaction(SIGUSR2, &parent_act, NULL)) in main()
232 if ((sigaction(SIGUSR2, &child_act, NULL)) == -1) { in do_child()
243 if ((kill(getpid(), SIGUSR2)) == -1) { in do_child()
275 if ((kill(getppid(), SIGUSR2)) == -1) { in child_handler()
Dptrace01.c140 if ((sigaction(SIGUSR2, &parent_act, NULL)) in main()
231 if ((sigaction(SIGUSR2, &child_act, NULL)) == -1) { in do_child()
241 if ((kill(getpid(), SIGUSR2)) == -1) { in do_child()
273 if ((kill(getppid(), SIGUSR2)) == -1) { in child_handler()
/external/elfutils/tests/
Dbacktrace-child.c121 assert (signo == SIGUSR2); in sigusr2()
161 sighandler_t sigusr2_orig = signal (SIGUSR2, sigusr2); in stdarg()
176 sigusr2 (SIGUSR2); in stdarg()
243 raise (SIGUSR2); in main()

1234567891011