/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/ |
H A D | 1-4.c | 6 2) Add the SIGALRM signal to the empty signal set and verify. 7 3) Remove the SIGALRM signal from the signal set and verify removed. 22 if (sigaddset(&signalset, SIGALRM) == 0) { in main() 23 if (sigismember(&signalset, SIGALRM) == 0) { in main() 32 if (sigdelset(&signalset, SIGALRM) == 0) { in main() 33 if (sigismember(&signalset, SIGALRM) == 1) { in main() 42 sigdelset(&signalset, SIGALRM); in main() 43 if (sigismember(&signalset, SIGALRM) == 0) { in main()
|
H A D | 1-1.c | 13 * 2) Add the SIGALRM signal to the empty signal set. 14 * 3) Verify that SIGALRM is a member of the signal set. 15 * 4) Remove the SIGALRM signal from the signal set. 16 * 5) Verify that SIGALRM is not a member of the signal set. 31 if (sigaddset(&signalset, SIGALRM) == -1) { in main() 36 if (sigismember(&signalset, SIGALRM) != 1) { in main() 41 if (sigdelset(&signalset, SIGALRM) == -1) { in main() 46 if (sigismember(&signalset, SIGALRM) == 0) { in main()
|
H A D | 1-2.c | 13 * 2) Add the SIGALRM signal to the empty signal set. 14 * 3) Verify that SIGALRM is a member of the signal set. 15 * 4) Remove the SIGALRM signal from the signal set. 16 * 5) Verify that SIGALRM is not a member of the signal set. 31 if (sigaddset(&signalset, SIGALRM) == -1) { in main() 36 if (sigismember(&signalset, SIGALRM) != 1) { in main() 41 if (sigdelset(&signalset, SIGALRM) == -1) { in main() 46 if (sigismember(&signalset, SIGALRM) == 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 28-2.c | 24 * -> register a signal handler for SIGALRM with signal(). 63 if (signal(SIGALRM, handler_1) == SIG_ERR) { in main() 83 ret = sigaction(SIGALRM, &sa, &save); in main() 91 ret = raise(SIGALRM); in main() 104 ret = sigaction(SIGALRM, &save, 0); in main() 112 ret = raise(SIGALRM); in main()
|
H A D | 19-2.c | 25 * -> register a handler for SIGALRM with SA_SIGINFO, and a known function 27 * -> raise SIGALRM, and check the function has been called. 50 if (info->si_signo != SIGALRM) { in handler() 85 /* Install the signal handler for SIGALRM */ in main() 86 ret = sigaction(SIGALRM, &sa, 0); in main() 99 ret = raise(SIGALRM); in main() 102 perror("Failed to raise SIGALRM"); in main()
|
H A D | 18-2.c | 24 * -> register a handler for SIGALRM without SA_SIGINFO, and a known function 26 * -> raise SIGALRM, and check the function has been called. 66 /* Install the signal handler for SIGALRM */ in main() 67 ret = sigaction(SIGALRM, &sa, 0); in main() 80 ret = raise(SIGALRM); in main() 83 perror("Failed to raise SIGALRM"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/ |
H A D | 6-1.c | 14 both SIGABRT and SIGALRM 16 pthread_sigmask's first parameter, unblock SIGALRM. Now only SIGABRT 18 4. Raise SIGALRM, and verify that handler was called, otherwise 25 - A value of 0 if both SIGALRM was successfully blocked. 49 sigaddset(&set1, SIGALRM); in a_thread_func() 52 sigaddset(&set2, SIGALRM); in a_thread_func() 64 if (sigaction(SIGALRM, &act, 0) == -1) { in a_thread_func() 82 if (raise(SIGALRM) == -1) { in a_thread_func() 117 if (sigismember(&pending_set, SIGALRM) != 0) { in a_thread_func()
|
H A D | 4-1.c | 16 pthread_sigmask's first parameter, add SIGALRM. Now both signals 49 sigaddset(&blocked_set2, SIGALRM); in a_thread_func() 61 if (sigaction(SIGALRM, &act, 0) == -1) { in a_thread_func() 79 if ((raise(SIGABRT) == -1) | (raise(SIGALRM) == -1)) { in a_thread_func() 96 1) | (sigismember(&pending_set, SIGALRM) != 1)) { in a_thread_func()
|
/third_party/musl/libc-test/src/functionalext/supplement/signal/ |
H A D | getitimer.c | 37 case SIGALRM: in signalHandler() 38 printf("catch a SIGALRM signal\n"); in signalHandler() 60 signal(SIGALRM, signalHandler); in getitimer_0100() 73 signal(SIGALRM, signalHandler); in getitimer_0200() 86 signal(SIGALRM, signalHandler); in getitimer_0300()
|
H A D | sigqueue.c | 25 if (sig != SIGALRM) { in action() 29 if (info->si_signo != SIGALRM) { in action() 53 int sig = SIGALRM; in sigqueue_0100()
|
/third_party/ltp/testcases/kernel/syscalls/timer_create/ |
H A D | timer_create01.c | 37 {SIGALRM, SIGEV_NONE, "SIGEV_NONE"}, 38 {SIGALRM, SIGEV_SIGNAL, "SIGEV_SIGNAL"}, 39 {SIGALRM, SIGEV_THREAD, "SIGEV_THREAD"}, 40 {SIGALRM, SIGEV_THREAD_ID, "SIGEV_THREAD_ID"},
|
/third_party/ltp/testcases/kernel/syscalls/ssetmask/ |
H A D | ssetmask01.c | 115 tst_syscall(__NR_ssetmask, SIGALRM); in main() 117 if (TEST_RETURN != SIGALRM) { in main() 122 if (TEST_RETURN != SIGALRM) { in main() 126 tst_resm(TPASS, "Got SIGALRM--Test PASS "); in main()
|
/third_party/python/Lib/test/ |
H A D | test_threadsignals.py | 23 alrm = signal.signal(signal.SIGALRM, for_alrm) 92 # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck 96 oldalrm = signal.signal(signal.SIGALRM, self.alarm_interrupt) 111 signal.signal(signal.SIGALRM, oldalrm) 123 # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck 127 oldalrm = signal.signal(signal.SIGALRM, self.alarm_interrupt) 149 signal.signal(signal.SIGALRM, oldalrm) 241 signal.SIGALRM : {'tripped': 0, 'tripped_by': 0 } }
|
/third_party/ltp/testcases/kernel/syscalls/sigsuspend/ |
H A D | sigsuspend01.c | 37 /* Unblock SIGALRM */ in verify_sigsuspend() 48 if (alarm_num != SIGALRM) { in verify_sigsuspend() 49 tst_res(TFAIL, "sigsuspend() didn't unblock SIGALRM"); in verify_sigsuspend() 67 SAFE_SIGADDSET(&sigset1, SIGALRM); in setup() 73 SAFE_SIGACTION(SIGALRM, &sa_new, 0); in setup() 75 /* Block SIGALRM */ in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/tools/ |
H A D | t0.c | 57 exit(SIGALRM + 128); in sighandler() 66 kill(getpid(), SIGALRM); in main() local 93 if (signal(SIGALRM, sighandler) == SIG_ERR) { in main()
|
/third_party/ltp/testcases/misc/crash/ |
H A D | crash02.c | 218 my_signal(SIGALRM, monitor_fcn); in badboy_fork() 338 #ifdef SIGALRM in again_handler() 339 case SIGALRM: in again_handler() 382 #ifdef SIGALRM in set_up_signals() 383 my_signal(SIGALRM, again_handler); in set_up_signals()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/ |
H A D | 1-1.c | 19 * 4. After child thread spin for 2 seconds, send SIGALRM to it. 56 /* Unblock the SIGALRM signal for the thread */ in fn_chld() 58 sigaddset(&act.sa_mask, SIGALRM); in fn_chld() 60 perror("thread: could not unblock SIGALRM\n"); in fn_chld() 64 /* Set up child thread to handle SIGALRM */ in fn_chld() 68 sigaction(SIGALRM, &act, 0); in fn_chld() 70 printf("thread: send SIGALRM to me after 2 secs\n"); in fn_chld() 85 /* Wait 10 seconds for SIGALRM to be sent */ in fn_chld() 92 /* Shouldn't get here. If we do, it means that SIGALRM wasn't sent/received */ in fn_chld() 94 ("Error in thread: SIGALRM wa in fn_chld() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/ |
H A D | 2-1.c | 23 if (sigaddset(&signalset, SIGALRM) == 0) { in main() 24 if (sigismember(&signalset, SIGALRM) == 1) { in main()
|
H A D | 1-2.c | 13 * 2) Add the SIGALRM signal to the empty signal set. 14 * 3) Verify that SIGALRM is a member of the signal set. 29 if (sigaddset(&signalset, SIGALRM) == 0) { in main() 30 if (sigismember(&signalset, SIGALRM) == 1) { in main()
|
H A D | 1-1.c | 13 * 2) Add the SIGALRM signal to the empty signal set. 14 * 3) Verify that SIGALRM is a member of the signal set. 29 if (sigaddset(&signalset, SIGALRM) == 0) { in main() 30 if (sigismember(&signalset, SIGALRM) == 1) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/alarm/ |
H A D | alarm05.c | 16 * A SIGALRM signal should be received after the specified amount of 37 if (sig == SIGALRM) in sighandler() 43 SAFE_SIGNAL(SIGALRM, sighandler); in setup()
|
H A D | alarm06.c | 21 if (sig == SIGALRM) in sigproc() 27 SAFE_SIGNAL(SIGALRM, sigproc); in setup() 37 /* Wait for signal SIGALRM */ in verify_alarm()
|
H A D | alarm02.c | 41 tst_res(TFAIL, "alarm(%u) delivered SIGALRM for seconds value %s", in verify_alarm() 48 if (sig == SIGALRM) in sighandler() 54 SAFE_SIGNAL(SIGALRM, sighandler); in setup()
|
/third_party/ltp/lib/tests/ |
H A D | tst_process_state.c | 52 signal(SIGALRM, handler); in main() 69 kill(pid, SIGALRM); in main()
|
/third_party/ltp/testcases/kernel/syscalls/waitpid/ |
H A D | waitpid01.c | 9 * Check that when a child kills itself by SIGALRM the waiting parent is 12 * Fork a child that raises(SIGALRM), the parent checks that SIGALRM was 26 raise(SIGALRM); in run() 49 if (WTERMSIG(status) != SIGALRM) { in run() 50 tst_res(TFAIL, "WTERMSIG() != SIGALRM but %s", in run() 55 tst_res(TPASS, "WTERMSIG() == SIGALRM"); in run()
|