Home
last modified time | relevance | path

Searched refs:SIGXCPU (Results 1 - 25 of 138) sorted by relevance

123456

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D28-25.c24 * -> register a signal handler for SIGXCPU with signal().
63 if (signal(SIGXCPU, handler_1) == SIG_ERR) { in main()
83 ret = sigaction(SIGXCPU, &sa, &save); in main()
91 ret = raise(SIGXCPU); in main()
104 ret = sigaction(SIGXCPU, &save, 0); in main()
112 ret = raise(SIGXCPU); in main()
H A D22-25.c18 3. (child) Setup a signal handler for SIGXCPU with SA_NODEFER set
20 4. (child) raise SIGXCPU
22 6. (child, signal handler) if count is 1 then raise SIGXCPU
43 printf("SIGXCPU caught\n"); in handler()
53 printf("Raising SIGXCPU\n"); in handler()
54 raise(SIGXCPU); in handler()
55 printf("Returning from raising SIGXCPU\n"); in handler()
71 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
77 if (raise(SIGXCPU) == -1) { in main()
H A D3-25.c15 2. Set the signal handler for SIGXCPU to handler
17 4. raise SIGXCPU
40 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
46 if (sigaction(SIGXCPU, 0, &oact) == -1) { in main()
52 if (raise(SIGXCPU) == -1) { in main()
H A D19-25.c25 * -> register a handler for SIGXCPU with SA_SIGINFO, and a known function
27 * -> raise SIGXCPU, and check the function has been called.
50 if (info->si_signo != SIGXCPU) { in handler()
84 /* Install the signal handler for SIGXCPU */ in main()
85 ret = sigaction(SIGXCPU, &sa, 0); in main()
98 ret = raise(SIGXCPU); in main()
101 perror("Failed to raise SIGXCPU"); in main()
H A D25-25.c17 3. (child) Setup a signal handler for SIGXCPU
18 4. (child) raise SIGXCPU
20 6. (child, signal handler) if count is 1 then raise SIGXCPU
41 printf("SIGXCPU caught\n"); in handler()
52 printf("Raising SIGXCPU\n"); in handler()
53 raise(SIGXCPU); in handler()
54 printf("Returning from raising SIGXCPU\n"); in handler()
70 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
76 if (raise(SIGXCPU) == -1) { in main()
H A D8-26.c26 printf("Caught SIGXCPU\n"); in SIGXCPU_handler()
32 raise(SIGXCPU); in SIGXFSZ_handler()
46 sigaddset(&act.sa_mask, SIGXCPU); in main()
56 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
H A D1-25.c17 2. Use sigaction to setup a signal handler for SIGXCPU
18 3. Raise SIGXCPU.
40 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
46 if (raise(SIGXCPU) == -1) { in main()
H A D12-51.c29 printf("Caught SIGXCPU\n"); in handler()
50 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
62 if (raise(SIGXCPU) == -1) { in main()
H A D13-25.c30 printf("Caught SIGXCPU\n"); in handler()
51 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
63 if (raise(SIGXCPU) == -1) { in main()
H A D18-25.c24 * -> register a handler for SIGXCPU without SA_SIGINFO, and a known function
26 * -> raise SIGXCPU, and check the function has been called.
66 /* Install the signal handler for SIGXCPU */ in main()
67 ret = sigaction(SIGXCPU, &sa, 0); in main()
80 ret = raise(SIGXCPU); in main()
83 perror("Failed to raise SIGXCPU"); in main()
H A D2-25.c14 1. Call sigaction to set handler for SIGXCPU to use handler1
15 2. Call sigaction again to set handler for SIGXCPU to use handler2,
40 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
48 if (sigaction(SIGXCPU, &act, &oact) == -1) { in main()
H A D4-25.c16 3. (child) Setup a signal handler for SIGXCPU with SIGKILL added to
18 4. (child) raise SIGXCPU
54 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
60 if (raise(SIGXCPU) == -1) { in main()
H A D6-25.c9 setting the SA_INFO bit in the signal mask for SIGXCPU will result
38 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
44 if (raise(SIGXCPU) == -1) { in main()
H A D12-25.c31 printf("Caught SIGXCPU\n"); in handler()
52 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
72 if (raise(SIGXCPU) == -1) { in main()
H A D4-51.c16 3. (child) Setup a signal handler for SIGXCPU with SIGSTOP added to
18 4. (child) raise SIGXCPU
53 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
59 if (raise(SIGXCPU) == -1) { in main()
H A D8-25.c31 printf("Caught SIGXCPU\n"); in SIGXCPU_handler()
47 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
62 if (raise(SIGXCPU) == -1) { in main()
H A D17-25.c10 errno set to EINTR if a handler for the SIGXCPU signal is setup with
32 printf("Caught SIGXCPU\n"); in handler()
48 sigaction(SIGXCPU, &act, 0); in main()
67 process sending the SIGXCPU signal, and the in main()
82 kill(pid, SIGXCPU); in main()
H A D4-103.c10 that attempting to add SIGSTOP to the signal mask of SIGXCPU will
33 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
H A D4-77.c10 that attempting to add SIGKILL to the signal mask of SIGXCPU will
33 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
/third_party/ltp/testcases/kernel/syscalls/setrlimit/
H A Dsetrlimit06.c11 * 1) Process got SIGXCPU after reaching soft limit of CPU time.
40 SAFE_SIGNAL(SIGXCPU, sighandler); in setup()
84 if (WTERMSIG(status) == SIGKILL && *end == SIGXCPU) { in verify_setrlimit()
86 "Got SIGXCPU then SIGKILL after reaching both limit"); in verify_setrlimit()
96 if (WTERMSIG(status) == SIGALRM && *end == SIGXCPU) { in verify_setrlimit()
98 "Got only SIGXCPU after reaching both limit"); in verify_setrlimit()
/third_party/ltp/lib/
H A Dsigname.h62 #ifdef SIGXCPU in tst_strsig()
63 PAIR(SIGXCPU) in tst_strsig()
/third_party/musl/src/string/
H A Dstrsignal.c10 && (SIGTTIN == 21) && (SIGTTOU == 22) && (SIGURG == 23) && (SIGXCPU == 24) \
46 [SIGXCPU] = 24,
/third_party/pulseaudio/src/daemon/
H A Dcpulimit.c51 /* Method of operation: Using SIGXCPU a signal handler is called every
77 /* Saved sigaction struct for SIGXCPU */
89 /* Reset the SIGXCPU timer to the next t seconds */
110 /* The signal handler, called on every SIGXCPU */
115 pa_assert(sig == SIGXCPU); in signal_handler()
199 /* Install signal handler for SIGXCPU */ in pa_cpu_limit_init()
205 if (sigaction(SIGXCPU, &sa, &sigaction_prev) < 0) { in pa_cpu_limit_init()
230 pa_assert_se(sigaction(SIGXCPU, &sigaction_prev, NULL) >= 0); in pa_cpu_limit_done()
/third_party/node/src/api/
H A Dutils.cc112 #ifdef SIGXCPU in signo_string()
113 SIGNO_CASE(SIGXCPU); in signo_string()
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/signal_h/
H A D13-1.c38 (0 == SIGVTALRM) || (0 == SIGXCPU) || (0 == SIGXFSZ)) { in main()

Completed in 8 milliseconds

123456