/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 9-1.c | 19 * The time left until an alarm clock is triggered is reset to zero, 20 * and the alarm, if any, is canceled 23 * -> Trig an alarm 25 * -> Check the alarm is not running in the child process. 28 * The test fails if the child has a pending alarm. 57 alarm(10); in main() 59 ret = alarm(10); in main() 62 FAILED("the alarm() routine does not behave as expected"); in main() 75 ret = alarm(10); in main() 78 FAILED("The child alarm pendin in main() [all...] |
/third_party/ltp/testcases/kernel/syscalls/alarm/ |
H A D | alarm03.c | 11 * Verify that alarms created by alarm() are not inherited by children 22 TST_EXP_PASS_SILENT(alarm(100)); in verify_alarm() 26 TST_EXP_PASS(alarm(0), "alarm(0) in child process"); in verify_alarm() 30 TST_EXP_VAL(alarm(0), 100, "alarm(0) in parent process"); in verify_alarm()
|
H A D | alarm05.c | 5 * 06/2005 Test for alarm cleanup by Amos Waterland 14 * The return value of the alarm system call should be equal to the 15 * amount previously remaining in the alarm clock. 28 TST_EXP_PASS(alarm(10)); in run() 30 TST_EXP_VAL(alarm(1), 9); in run()
|
H A D | alarm06.c | 12 * Verify that any pending alarm() is canceled when seconds is zero. 32 TST_EXP_PASS_SILENT(alarm(2)); in verify_alarm() 35 TST_EXP_VAL(alarm(0), 1); in verify_alarm()
|
H A D | alarm02.c | 11 * Verify that alarm() returns: 13 * - zero when there was no previously scheduled alarm 14 * - number of seconds remaining until any previously scheduled alarm 36 TST_EXP_PASS(alarm(tc->sec), "alarm(%u)", tc->sec); in verify_alarm() 38 TST_EXP_VAL(alarm(0), tc->sec); in verify_alarm() 41 tst_res(TFAIL, "alarm(%u) delivered SIGALRM for seconds value %s", in verify_alarm()
|
H A D | alarm07.c | 11 * Verify that SIGALRM signal scheduled by alarm() in the parent process 26 TST_EXP_PASS_SILENT(alarm(1)); in verify_alarm()
|
/third_party/python/Lib/test/ |
H A D | test_threadsignals.py | 41 @unittest.skipUnless(hasattr(signal, "alarm"), "test requires signal.alarm") 63 signal.alarm(1) 66 signal.alarm(0) 100 signal.alarm(1) 110 signal.alarm(0) 141 signal.alarm(1) 148 signal.alarm(0)
|
H A D | signalinterproctester.py | 75 signal.alarm(1) 80 signal.alarm(0)
|
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill02.c | 154 #define TIMEOUT 60 /*Amount of time given in alarm calls. */ 181 int alarm_flag = FALSE; /*This flag indicates an alarm time out. */ 297 * Set to catch the alarm signal SIGALRM. in parent_rout() 302 "Could not set to catch the parents time out alarm."); in parent_rout() 306 * Setting to catch the timeout alarm worked now let the children start up. in parent_rout() 307 * Set an alarm which causes a time out on the read pipe loop. in parent_rout() 311 (void)alarm(TIMEOUT); in parent_rout() 316 (void)alarm(TIMEOUT); in parent_rout() 320 (void)alarm(0); /*Reset the alarm cloc in parent_rout() [all...] |
H A D | kill10.c | 257 alarm(1); in main() 334 * all the managers reported in. So set an alarm so that we can in setup() 337 alarm(1); in setup() 495 alarm(1); in manager() 581 alarm(1); in manager() 711 alarm(2); in fork_procs()
|
/third_party/ltp/testcases/kernel/syscalls/sigsuspend/ |
H A D | sigsuspend01.c | 35 alarm(1); in verify_sigsuspend() 40 alarm(0); in verify_sigsuspend()
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigsuspend/ |
H A D | rt_sigsuspend01.c | 37 alarm(1); in verify_rt_sigsuspend() 41 alarm(0); in verify_rt_sigsuspend()
|
/third_party/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmap-corruption01.c | 105 * a time limit, in which case set an alarm and catch SIGALRM. in main() 124 (void)alarm(alarmtime); in main() 132 (void)alarm(5); in main()
|
/third_party/toybox/toys/pending/ |
H A D | sulogin.c | 52 alarm(TT.timeout); in validate_password() 56 if(TT.timeout) alarm(0); in validate_password()
|
/third_party/ltp/testcases/misc/crash/ |
H A D | crash02.c | 219 alarm(ntries * MAX_TRY_TIME); in badboy_fork() 233 alarm(0); in badboy_fork() 297 alarm(MAX_TRY_TIME); in badboy_loop() 340 ss = " alarm clock"; in again_handler()
|
H A D | crash01.c | 243 alarm(ntries * MAX_TRY_TIME); in badboy_fork() 255 alarm(0); in badboy_fork() 336 alarm(MAX_TRY_TIME); in badboy_loop() 392 ss = " alarm clock"; in again_handler()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl14.c | 850 * blocking lock. Set a 60 second alarm to break the in run_test() 853 alarm(TIME_OUT); in run_test() 856 /* turn off the alarm timer */ in run_test() 857 alarm((unsigned)0); in run_test() 880 * set a 60 second alarm to break the wait just in case the in run_test() 883 alarm(TIME_OUT); in run_test() 887 /* turn off the alarm clock */ in run_test() 888 alarm((unsigned)0); in run_test() 1100 * Set a 60 sec alarm to break the pause just in case the in main() 1103 (void)alarm(TIME_OU in main() [all...] |
H A D | fcntl16.c | 528 alarm(TIME_OUT); in run_test() 536 * Turn off alarm and unmask signals in run_test() 538 alarm((unsigned)0); in run_test() 583 alarm(TIME_OUT); in run_test() 585 alarm(0); in run_test()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe04.c | 165 * Set action for the alarm in main() 170 * Set an alarm for 60 seconds just in case the child in main() 173 alarm(60); in main() 193 if (alarm(0) <= 0) in main() 194 tst_resm(TWARN, "call to alarm(0) failed"); in main()
|
/third_party/toybox/toys/other/ |
H A D | login.c | 54 alarm(TT.login_timeout = 60); in login_main() 105 alarm(0); in login_main()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
H A D | clock_test.cc | 22 #error all known Linux and Apple targets have alarm 51 // add an alarm for the middle of the sleep period and expect it to fire. 62 alarm(absl::ToInt64Seconds(d / 2)); in SleepForBounded() 101 << " an alarm"; in AssertSleepForBounded()
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
H A D | ns-udpclient.c | 319 alarm(RECVFROM_TIMEOUT); in main() 335 alarm(0); in main()
|
/third_party/ltp/tools/genload/ |
H A D | stress.c | 482 alarm(timeout); in hogcpu() 490 /* This case never falls through; alarm signal can cause exit. */ in hogcpu() 558 alarm(timeout); in hogio() 566 /* This case never falls through; alarm signal can cause exit. */ in hogio() 639 alarm(timeout); in hogvm() 688 /* This case never falls through; alarm signal can cause exit. */ in hogvm() 768 alarm(timeout); in hoghdd() 843 /* This case never falls through; alarm signal can cause exit. */ in hoghdd()
|
H A D | genload.c | 482 alarm(timeout); in hogcpu() 490 /* This case never falls through; alarm signal can cause exit. */ in hogcpu() 558 alarm(timeout); in hogio() 566 /* This case never falls through; alarm signal can cause exit. */ in hogio() 639 alarm(timeout); in hogvm() 688 /* This case never falls through; alarm signal can cause exit. */ in hogvm() 768 alarm(timeout); in hoghdd() 843 /* This case never falls through; alarm signal can cause exit. */ in hoghdd()
|
/third_party/musl/src/unistd/ |
H A D | alarm.c | 5 unsigned alarm(unsigned seconds) in alarm() function
|