Home
last modified time | relevance | path

Searched refs:SIGTSTP (Results 1 - 25 of 143) sorted by relevance

123456

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D28-14.c24 * -> register a signal handler for SIGTSTP with signal().
63 if (signal(SIGTSTP, handler_1) == SIG_ERR) { in main()
83 ret = sigaction(SIGTSTP, &sa, &save); in main()
91 ret = raise(SIGTSTP); in main()
104 ret = sigaction(SIGTSTP, &save, 0); in main()
112 ret = raise(SIGTSTP); in main()
H A D3-14.c15 2. Set the signal handler for SIGTSTP to handler
17 4. raise SIGTSTP
40 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
46 if (sigaction(SIGTSTP, 0, &oact) == -1) { in main()
52 if (raise(SIGTSTP) == -1) { in main()
H A D22-14.c18 3. (child) Setup a signal handler for SIGTSTP with SA_NODEFER set
20 4. (child) raise SIGTSTP
22 6. (child, signal handler) if count is 1 then raise SIGTSTP
43 printf("SIGTSTP caught\n"); in handler()
53 printf("Raising SIGTSTP\n"); in handler()
54 raise(SIGTSTP); in handler()
55 printf("Returning from raising SIGTSTP\n"); in handler()
71 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
77 if (raise(SIGTSTP) == -1) { in main()
H A D25-14.c17 3. (child) Setup a signal handler for SIGTSTP
18 4. (child) raise SIGTSTP
20 6. (child, signal handler) if count is 1 then raise SIGTSTP
41 printf("SIGTSTP caught\n"); in handler()
52 printf("Raising SIGTSTP\n"); in handler()
53 raise(SIGTSTP); in handler()
54 printf("Returning from raising SIGTSTP\n"); in handler()
70 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
76 if (raise(SIGTSTP) == -1) { in main()
H A D8-15.c26 printf("Caught SIGTSTP\n"); in SIGTSTP_handler()
32 raise(SIGTSTP); in SIGTTIN_handler()
46 sigaddset(&act.sa_mask, SIGTSTP); in main()
56 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
H A D19-14.c25 * -> register a handler for SIGTSTP with SA_SIGINFO, and a known function
27 * -> raise SIGTSTP, and check the function has been called.
50 if (info->si_signo != SIGTSTP) { in handler()
84 /* Install the signal handler for SIGTSTP */ in main()
85 ret = sigaction(SIGTSTP, &sa, 0); in main()
98 ret = raise(SIGTSTP); in main()
101 perror("Failed to raise SIGTSTP"); in main()
H A D1-14.c17 2. Use sigaction to setup a signal handler for SIGTSTP
18 3. Raise SIGTSTP.
40 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
46 if (raise(SIGTSTP) == -1) { in main()
H A D4-14.c16 3. (child) Setup a signal handler for SIGTSTP with SIGKILL added to
18 4. (child) raise SIGTSTP
54 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
60 if (raise(SIGTSTP) == -1) { in main()
H A D12-40.c29 printf("Caught SIGTSTP\n"); in handler()
50 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
62 if (raise(SIGTSTP) == -1) { in main()
H A D13-14.c30 printf("Caught SIGTSTP\n"); in handler()
51 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
63 if (raise(SIGTSTP) == -1) { in main()
H A D18-14.c24 * -> register a handler for SIGTSTP without SA_SIGINFO, and a known function
26 * -> raise SIGTSTP, and check the function has been called.
66 /* Install the signal handler for SIGTSTP */ in main()
67 ret = sigaction(SIGTSTP, &sa, 0); in main()
80 ret = raise(SIGTSTP); in main()
83 perror("Failed to raise SIGTSTP"); in main()
H A D2-14.c14 1. Call sigaction to set handler for SIGTSTP to use handler1
15 2. Call sigaction again to set handler for SIGTSTP to use handler2,
40 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
48 if (sigaction(SIGTSTP, &act, &oact) == -1) { in main()
H A D6-14.c9 setting the SA_INFO bit in the signal mask for SIGTSTP will result
38 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
44 if (raise(SIGTSTP) == -1) { in main()
H A D4-40.c16 3. (child) Setup a signal handler for SIGTSTP with SIGSTOP added to
18 4. (child) raise SIGTSTP
53 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
59 if (raise(SIGTSTP) == -1) { in main()
H A D8-14.c31 printf("Caught SIGTSTP\n"); in SIGTSTP_handler()
47 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
62 if (raise(SIGTSTP) == -1) { in main()
H A D12-14.c31 printf("Caught SIGTSTP\n"); in handler()
52 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
72 if (raise(SIGTSTP) == -1) { in main()
H A D17-14.c10 errno set to EINTR if a handler for the SIGTSTP signal is setup with
32 printf("Caught SIGTSTP\n"); in handler()
48 sigaction(SIGTSTP, &act, 0); in main()
67 process sending the SIGTSTP signal, and the in main()
82 kill(pid, SIGTSTP); in main()
H A D4-66.c10 that attempting to add SIGKILL to the signal mask of SIGTSTP will
33 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
H A D4-92.c10 that attempting to add SIGSTOP to the signal mask of SIGTSTP will
33 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
/third_party/musl/src/string/
H A Dstrsignal.c9 && (SIGCHLD == 17) && (SIGCONT == 18) && (SIGSTOP == 19) && (SIGTSTP == 20) \
42 [SIGTSTP] = 20,
/third_party/alsa-utils/axfer/
H A Dsubcmd-transfer.c51 // 2. Prepare for default handler(SIG_DFL) of SIGTSTP to stop this in handle_unix_signal_for_suspend()
53 if (sigaction(SIGTSTP, NULL, &sa) < 0) { in handle_unix_signal_for_suspend()
61 if (sigaction(SIGTSTP, &sa, NULL) < 0) { in handle_unix_signal_for_suspend()
66 // Queue SIGTSTP. in handle_unix_signal_for_suspend()
67 raise(SIGTSTP); in handle_unix_signal_for_suspend()
72 sigaddset(&curr, SIGTSTP); in handle_unix_signal_for_suspend()
85 // Reconfigure this handler for SIGTSTP, instead of default one. in handle_unix_signal_for_suspend()
89 if (sigaction(SIGTSTP, &sa, NULL) < 0) { in handle_unix_signal_for_suspend()
114 if (sigaction(SIGTSTP, &sa, NULL) < 0) in prepare_signal_handler()
/third_party/node/src/api/
H A Dutils.cc92 #ifdef SIGTSTP in signo_string()
93 SIGNO_CASE(SIGTSTP); in signo_string()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/signal_h/
H A D13-1.c26 (0 == SIGTSTP) || in main()
/third_party/ltp/testcases/kernel/syscalls/signal/
H A Dsignal05.c20 SIGCHLD, SIGCONT, SIGTSTP, SIGTTIN,
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/
H A D1-3.c27 SIGTSTP, SIGTTIN, SIGTTOU, SIGUSR1, SIGUSR2,

Completed in 9 milliseconds

123456