/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 28-25.c | 24 * -> 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 D | 22-25.c | 18 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 D | 3-25.c | 15 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 D | 19-25.c | 25 * -> 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 D | 25-25.c | 17 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 D | 8-26.c | 26 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 D | 1-25.c | 17 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 D | 12-51.c | 29 printf("Caught SIGXCPU\n"); in handler() 50 if (sigaction(SIGXCPU, &act, 0) == -1) { in main() 62 if (raise(SIGXCPU) == -1) { in main()
|
H A D | 13-25.c | 30 printf("Caught SIGXCPU\n"); in handler() 51 if (sigaction(SIGXCPU, &act, 0) == -1) { in main() 63 if (raise(SIGXCPU) == -1) { in main()
|
H A D | 18-25.c | 24 * -> 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 D | 2-25.c | 14 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 D | 4-25.c | 16 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 D | 6-25.c | 9 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 D | 12-25.c | 31 printf("Caught SIGXCPU\n"); in handler() 52 if (sigaction(SIGXCPU, &act, 0) == -1) { in main() 72 if (raise(SIGXCPU) == -1) { in main()
|
H A D | 4-51.c | 16 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 D | 8-25.c | 31 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 D | 17-25.c | 10 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 D | 4-103.c | 10 that attempting to add SIGSTOP to the signal mask of SIGXCPU will 33 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
|
H A D | 4-77.c | 10 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 D | setrlimit06.c | 11 * 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 D | signame.h | 62 #ifdef SIGXCPU in tst_strsig() 63 PAIR(SIGXCPU) in tst_strsig()
|
/third_party/musl/src/string/ |
H A D | strsignal.c | 10 && (SIGTTIN == 21) && (SIGTTOU == 22) && (SIGURG == 23) && (SIGXCPU == 24) \ 46 [SIGXCPU] = 24,
|
/third_party/pulseaudio/src/daemon/ |
H A D | cpulimit.c | 51 /* 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 D | utils.cc | 112 #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 D | 13-1.c | 38 (0 == SIGVTALRM) || (0 == SIGXCPU) || (0 == SIGXFSZ)) { in main()
|