HomeSort by relevance Sort by last modified time
    Searched refs:SIGUSR2 (Results 1 - 25 of 355) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
3-1.c 38 /* Add SIGUSR2 to the set of blocked signals */
39 if (sigaddset(&newmask, SIGUSR2) == -1) {
44 /* Block SIGUSR2 */
50 /* Send SIGUSR2 signal 4 times to this process. Since it is blocked,
52 if (raise(SIGUSR2) != 0) {
53 printf("Could not raise SIGUSR2\n");
56 if (raise(SIGUSR2) != 0) {
57 printf("Could not raise SIGUSR2\n");
60 if (raise(SIGUSR2) != 0) {
61 printf("Could not raise SIGUSR2\n")
    [all...]
1-1.c 34 /* Add SIGUSR2 to the set of blocked signals */
35 if (sigaddset(&newmask, SIGUSR2) == -1) {
40 /* Block SIGUSR2 */
46 /* Send SIGUSR2 signal to this process. Since it is blocked,
48 if (raise(SIGUSR2) != 0) {
49 printf("Could not raise SIGUSR2\n");
53 /* Test that SIGUSR2 is pending */
59 if (sigismember(&pendingset, SIGUSR2) != 1) {
60 printf("Signal SIGUSR2 is not pending!\n");
70 if (sig != SIGUSR2) {
    [all...]
8-1.c 34 /* Add SIGUSR2 to the set of blocked signals */
35 if (sigaddset(&newmask, SIGUSR2) == -1) {
40 /* Block SIGUSR2 */
46 /* Send SIGUSR2 signal to this process. Since it is blocked,
48 if (raise(SIGUSR2) != 0) {
49 printf("Could not raise SIGUSR2\n");
61 * SIGUSR2 was raised. */
62 if (sig == SIGUSR2) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
3-18.c 15 2. Set the signal handler for SIGUSR2 to handler
17 4. raise SIGUSR2
40 if (sigaction(SIGUSR2, &act, 0) == -1) {
46 if (sigaction(SIGUSR2, 0, &oact) == -1) {
52 if (raise(SIGUSR2) == -1) {
3-19.c 15 2. Set the signal handler for SIGUSR2 to handler
17 4. raise SIGUSR2
40 if (sigaction(SIGUSR2, &act, 0) == -1) {
46 if (sigaction(SIGUSR2, 0, &oact) == -1) {
52 if (raise(SIGUSR2) == -1) {
3-2.c 15 2. Set the signal handler for SIGUSR2 to handler
17 4. raise SIGUSR2
40 if (sigaction(SIGUSR2, &act, 0) == -1) {
46 if (sigaction(SIGUSR2, 0, &oact) == -1) {
52 if (raise(SIGUSR2) == -1) {
1-18.c 17 2. Use sigaction to setup a signal handler for SIGUSR2
18 3. Raise SIGUSR2.
40 if (sigaction(SIGUSR2, &act, 0) == -1) {
46 if (raise(SIGUSR2) == -1) {
1-19.c 17 2. Use sigaction to setup a signal handler for SIGUSR2
18 3. Raise SIGUSR2.
41 if (sigaction(SIGUSR2, &act, 0) == -1) {
47 if (raise(SIGUSR2) == -1) {
1-2.c 17 2. Use sigaction to setup a signal handler for SIGUSR2
18 3. Raise SIGUSR2.
40 if (sigaction(SIGUSR2, &act, 0) == -1) {
46 if (raise(SIGUSR2) == -1) {
28-18.c 24 * -> register a signal handler for SIGUSR2 with signal().
65 if (signal(SIGUSR2, handler_1) == SIG_ERR) {
85 ret = sigaction(SIGUSR2, &sa, &save);
93 ret = raise(SIGUSR2);
106 ret = sigaction(SIGUSR2, &save, 0);
114 ret = raise(SIGUSR2);
22-18.c 18 3. (child) Setup a signal handler for SIGUSR2 with SA_NODEFER set
20 4. (child) raise SIGUSR2
22 6. (child, signal handler) if count is 1 then raise SIGUSR2
44 printf("SIGUSR2 caught\n");
54 printf("Raising SIGUSR2\n");
55 raise(SIGUSR2);
56 printf("Returning from raising SIGUSR2\n");
72 if (sigaction(SIGUSR2, &act, 0) == -1) {
78 if (raise(SIGUSR2) == -1) {
22-19.c 18 3. (child) Setup a signal handler for SIGUSR2 with SA_NODEFER set
20 4. (child) raise SIGUSR2
22 6. (child, signal handler) if count is 1 then raise SIGUSR2
44 printf("SIGUSR2 caught\n");
54 printf("Raising SIGUSR2\n");
55 raise(SIGUSR2);
56 printf("Returning from raising SIGUSR2\n");
72 if (sigaction(SIGUSR2, &act, 0) == -1) {
78 if (raise(SIGUSR2) == -1) {
22-2.c 18 3. (child) Setup a signal handler for SIGUSR2 with SA_NODEFER set
20 4. (child) raise SIGUSR2
22 6. (child, signal handler) if count is 1 then raise SIGUSR2
44 printf("SIGUSR2 caught\n");
54 printf("Raising SIGUSR2\n");
55 raise(SIGUSR2);
56 printf("Returning from raising SIGUSR2\n");
72 if (sigaction(SIGUSR2, &act, 0) == -1) {
78 if (raise(SIGUSR2) == -1) {
25-18.c 17 3. (child) Setup a signal handler for SIGUSR2
18 4. (child) raise SIGUSR2
20 6. (child, signal handler) if count is 1 then raise SIGUSR2
41 printf("SIGUSR2 caught\n");
52 printf("Raising SIGUSR2\n");
53 raise(SIGUSR2);
54 printf("Returning from raising SIGUSR2\n");
70 if (sigaction(SIGUSR2, &act, 0) == -1) {
76 if (raise(SIGUSR2) == -1) {
25-19.c 17 3. (child) Setup a signal handler for SIGUSR2
18 4. (child) raise SIGUSR2
20 6. (child, signal handler) if count is 1 then raise SIGUSR2
41 printf("SIGUSR2 caught\n");
52 printf("Raising SIGUSR2\n");
53 raise(SIGUSR2);
54 printf("Returning from raising SIGUSR2\n");
70 if (sigaction(SIGUSR2, &act, 0) == -1) {
76 if (raise(SIGUSR2) == -1) {
25-2.c 17 3. (child) Setup a signal handler for SIGUSR2
18 4. (child) raise SIGUSR2
20 6. (child, signal handler) if count is 1 then raise SIGUSR2
41 printf("SIGUSR2 caught\n");
52 printf("Raising SIGUSR2\n");
53 raise(SIGUSR2);
54 printf("Returning from raising SIGUSR2\n");
70 if (sigaction(SIGUSR2, &act, 0) == -1) {
76 if (raise(SIGUSR2) == -1) {
8-19.c 30 raise(SIGUSR2);
32 printf("Got SIGUSR2\nTest FAILED\n");
44 sigaddset(&act.sa_mask, SIGUSR2);
56 if (sigaction(SIGUSR2, &act, 0) == -1) {
8-20.c 26 printf("Caught SIGUSR2\n");
32 raise(SIGUSR2);
46 sigaddset(&act.sa_mask, SIGUSR2);
56 if (sigaction(SIGUSR2, &act, 0) == -1) {
8-3.c 26 printf("Caught SIGUSR2\n");
32 raise(SIGUSR2);
46 sigaddset(&act.sa_mask, SIGUSR2);
56 if (sigaction(SIGUSR2, &act, 0) == -1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpending/
2-1.c 31 if (sigaddset(&blockset, SIGUSR2) == -1) {
41 if (raise(SIGUSR2) != 0) {
42 printf("Could not raise SIGUSR2\n");
47 if (sigismember(&pendingset, SIGUSR2) == 1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/
4-1.c 32 sigaddset(&blocked_set2, SIGUSR2);
44 if (sigaction(SIGUSR2, &act, 0) == -1) {
62 if ((raise(SIGABRT) == -1) | (raise(SIGUSR2) == -1)) {
79 1) | (sigismember(&pending_set, SIGUSR2) != 1)) {
6-1.c 32 sigaddset(&set1, SIGUSR2);
35 sigaddset(&set2, SIGUSR2);
47 if (sigaction(SIGUSR2, &act, 0) == -1) {
65 if (raise(SIGUSR2) == -1) {
100 if (sigismember(&pending_set, SIGUSR2) != 0) {
  /external/strace/tests/
sigsuspend.c 60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2);
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL))
88 raise(SIGUSR2);
95 sigdelset(&u.libc_mask, SIGUSR2);
  /external/strace/tests-m32/
sigsuspend.c 60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2);
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL))
88 raise(SIGUSR2);
95 sigdelset(&u.libc_mask, SIGUSR2);
  /external/strace/tests-mx32/
sigsuspend.c 60 [SIGUSR2] = "USR2"
79 sigaddset(&u.libc_mask, SIGUSR2);
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL))
88 raise(SIGUSR2);
95 sigdelset(&u.libc_mask, SIGUSR2);

Completed in 748 milliseconds

1 2 3 4 5 6 7 8 91011>>