Home
last modified time | relevance | path

Searched refs:SIGTOTEST (Results 1 - 25 of 72) sorted by relevance

123

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D8-1.c12 - 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 macro
51 sigaction(SIGTOTEST, &act, 0); in main()
56 sighold(SIGTOTEST); in main()
59 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
69 SIGTOTEST); in main()
73 sigrelse(SIGTOTEST); in main()
[all...]
H A D4-1.c12 - 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
22 #define SIGTOTEST SIGRTMIN macro
50 sigaction(SIGTOTEST, &act, 0); in main()
54 sighold(SIGTOTEST); in main()
58 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
68 SIGTOTEST); in main()
72 sigrelse(SIGTOTEST); in main()
[all...]
H A D5-1.c12 - 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
22 #define SIGTOTEST SIGRTMIN macro
48 sigaction(SIGTOTEST, &act, 0); in main()
53 sighold(SIGTOTEST); in main()
56 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
66 SIGTOTEST); in main()
70 sigrelse(SIGTOTEST); in main()
[all...]
H A D1-1.c11 * 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 macro
34 if (signo == SIGTOTEST && info->si_value.sival_int == VALTOTEST) { in myhandler()
51 sigaction(SIGTOTEST, &act, 0); in main()
65 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
H A D9-1.c11 * - Register for myhandler to be called when SIGTOTEST is called, and make
13 * - Block signal SIGTOTEST from the process.
19 * (of SIGTOTEST) equal to the limit that sysconf() returned.
20 * - Send one more instance of SIGTOTEST and verify that sigqueue returns
25 #define SIGTOTEST SIGRTMIN macro
67 sighold(SIGTOTEST); in main()
81 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
91 rc = sigqueue(pid, SIGTOTEST, value); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/
H A D1-1.c13 1. Register signal SIGTOTEST with the handler myhandler
14 2. Block SIGTOTEST from the process
20 #define SIGTOTEST SIGUSR1 macro
45 sigaddset(&selectset, SIGTOTEST); in main()
48 sigaction(SIGTOTEST, &act, 0); in main()
49 sighold(SIGTOTEST); in main()
50 raise(SIGTOTEST); in main()
54 if (sigismember(&pendingset, SIGTOTEST) != 1) { in main()
55 perror("SIGTOTEST is not pending\n"); in main()
67 if (sigismember(&pendingset, SIGTOTEST) ! in main()
[all...]
H A D8-1.c13 - 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.
24 #define SIGTOTEST SIGRTMIN macro
52 sigaction(SIGTOTEST, &act, 0); in main()
56 sighold(SIGTOTEST); in main()
60 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
68 sigaddset(&selectset, SIGTOTEST); in main()
71 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) { in main()
[all...]
H A D9-1.c12 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.
19 #define SIGTOTEST SIGUSR1 macro
44 sigaddset(&selectset, SIGTOTEST); in main()
47 sigaction(SIGTOTEST, &act, 0); in main()
48 sighold(SIGTOTEST); in main()
49 raise(SIGTOTEST); in main()
53 if (sigismember(&pendingset, SIGTOTEST) != 1) { in main()
54 perror("SIGTOTEST i in main()
[all...]
H A D5-1.c11 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.
19 #define SIGTOTEST SIGUSR1 macro
47 sigaddset(&selectset, SIGTOTEST); in main()
50 sigaction(SIGTOTEST, &act, 0); in main()
51 sighold(SIGTOTEST); in main()
53 raise(SIGTOTEST); in main()
60 if (info.si_signo != SIGTOTEST) { in main()
[all...]
H A D7-1.c12 - 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
23 #define SIGTOTEST SIGRTMIN macro
53 sigaction(SIGTOTEST, &act, 0); in main()
57 sighold(SIGTOTEST); in main()
61 if (sigqueue(pid, SIGTOTEST, value) != 0) { in main()
69 sigaddset(&selectset, SIGTOTEST); in main()
72 if (sigwaitinfo(&selectset, &info) != SIGTOTEST) { in main()
74 ("sigwaitinfo() returned signal other than SIGTOTEST\ in main()
[all...]
H A D6-1.c11 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.
19 #define SIGTOTEST SIGUSR1 macro
47 sigaddset(&selectset, SIGTOTEST); in main()
50 sigaction(SIGTOTEST, &act, 0); in main()
51 sighold(SIGTOTEST); in main()
53 raise(SIGTOTEST); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/
H A D4-1.c12 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.
19 #define SIGTOTEST SIGUSR1 macro
49 sigaddset(&selectset, SIGTOTEST); in main()
52 sigaction(SIGTOTEST, &act, 0); in main()
53 sighold(SIGTOTEST); in main()
54 raise(SIGTOTEST); in main()
58 if (sigismember(&pendingset, SIGTOTEST) != 1) { in main()
59 perror("SIGTOTEST i in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/
H A D2-1.c13 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,
39 #define SIGTOTEST SIGABRT macro
62 sigaction(SIGTOTEST, &act, 0); in a_thread_func()
63 sighold(SIGTOTEST); in a_thread_func()
65 if ((sigpause(SIGTOTEST) != -1) || (errno != EINTR)) { in a_thread_func()
74 raise(SIGTOTEST); in a_thread_func()
[all...]
H A D1-1.c14 2. Have main() send the signal indicated by SIGTOTEST to the new thread,
29 #define SIGTOTEST SIGABRT macro
46 sigaction(SIGTOTEST, &act, 0); in a_thread_func()
47 sighold(SIGTOTEST); in a_thread_func()
48 sigpause(SIGTOTEST); in a_thread_func()
63 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
H A D1-2.c31 #define SIGTOTEST SIGABRT macro
47 sigaction(SIGTOTEST, &act, 0); in a_thread_func()
48 sigpause(SIGTOTEST); in a_thread_func()
72 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
H A D3-1.c27 #define SIGTOTEST SIGABRT macro
47 sigaction(SIGTOTEST, &act, 0); in a_thread_func()
48 return_value = sigpause(SIGTOTEST); in a_thread_func()
83 if (pthread_kill(new_th, SIGTOTEST) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/
H A D1-2.c12 * 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 macro
54 if (sigaddset(&set, SIGTOTEST) == -1) { in main()
66 sigaction(SIGTOTEST, &act, 0); in main()
75 if (sig != SIGTOTEST) in main()
85 if (kill(pid, SIGTOTEST) != 0) { in main()
H A D1-1.c18 #define SIGTOTEST SIGABRT macro
45 if (sigaction(SIGTOTEST, &act, 0) == -1) { in main()
49 if (kill(getpid(), SIGTOTEST) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/raise/
H A D1-2.c33 #define SIGTOTEST SIGABRT macro
57 if (sigaction(SIGTOTEST, &parentact, 0) == -1) { in main()
72 if (sigaction(SIGTOTEST, &childact, 0) == -1) { in main()
76 if (raise(SIGTOTEST) != 0) { in main()
H A D1-1.c23 #define SIGTOTEST SIGABRT macro
42 if (sigaction(SIGTOTEST, &act, 0) == -1) { in main()
46 if (raise(SIGTOTEST) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/
H A D1-2.c10 * 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.
21 #define SIGTOTEST SIGUSR1 macro
46 sigaction(SIGTOTEST, &act, 0); in main()
67 sigignore(SIGTOTEST); in main()
75 if (killpg(child_pgid, SIGTOTEST) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/
H A D5-1.c18 * signal SIGTOTEST is used.
35 #define SIGTOTEST SIGALRM macro
65 ev.sigev_signo = SIGTOTEST; in main()
75 if (sigaddset(&set, SIGTOTEST) != 0) { in main()
80 if (sigaction(SIGTOTEST, &act, 0) != 0) { in main()
H A D5-2.c18 * signal SIGTOTEST is used.
35 #define SIGTOTEST SIGALRM macro
65 ev.sigev_signo = SIGTOTEST; in main()
75 if (sigaddset(&set, SIGTOTEST) != 0) { in main()
80 if (sigaction(SIGTOTEST, &act, 0) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/
H A D1-1.c11 * - Block signal SIGTOTEST.
12 * - Set up a repeating timer to expire with signal SIGTOTEST.
24 #define SIGTOTEST SIGALRM macro
49 ev.sigev_signo = SIGTOTEST; in main()
55 * set up handler for SIGTOTEST in main()
61 if (sigaction(SIGTOTEST, &act, 0) != 0) { in main()
67 * set up timer to send SIGTOTEST in main()
85 * block signal SIGTOTEST in main()
91 if (sigaddset(&set, SIGTOTEST) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
H A D3-3.c11 * For this test, signal SIGTOTEST will be used, clock CLOCK_REALTIME
25 #define SIGTOTEST SIGALRM macro
42 ev.sigev_signo = SIGTOTEST; in main()
49 if (sigaddset(&set, SIGTOTEST) != 0) { in main()
93 if (sigaction(SIGTOTEST, &act, 0) == -1) { in main()

Completed in 6 milliseconds

123