/external/autotest/client/cros/ |
D | sys_power.py | 108 alarm = int(rtc.get_seconds() + seconds) 109 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm) 110 rtc.set_wake_alarm(alarm) 111 return (alarm, wakeup_count) 114 def check_wakeup(alarm): argument 120 if now < alarm: 137 alarm, wakeup_count = prepare_wakeup(suspend_seconds) 143 check_wakeup(alarm) 144 return alarm 177 alarm, wakeup_count = prepare_wakeup(seconds) [all …]
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write04.c | 127 (void)alarm(10); /* set alarm for 10 seconds */ in main() 129 (void)alarm(0); in main() 142 (void)alarm(10); /* set alarm for 10 seconds */ in main() 144 (void)alarm(0); in main() 157 (void)alarm(10); in main() 159 (void)alarm(0); in main() 172 (void)alarm(10); in main() 174 (void)alarm(0); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
D | 9-1.c | 59 alarm(10); in main() 61 ret = alarm(10); in main() 77 ret = alarm(10); in main() 98 alarm(0); in main()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 148 alarm(60); in dochild1() 151 alarm((unsigned)0); in dochild1() 223 alarm(60); in dofork() 226 alarm((unsigned)0); in dofork() 299 alarm(60); in dochild2() 302 alarm((unsigned)0); in dochild2() 479 alarm(60); in run_test() 482 alarm((unsigned)0); in run_test()
|
D | fcntl14.c | 857 alarm(TIME_OUT); in run_test() 861 alarm((unsigned)0); in run_test() 887 alarm(TIME_OUT); in run_test() 892 alarm((unsigned)0); in run_test() 1109 (void)alarm(TIME_OUT); in main() 1114 (void)alarm((unsigned)0); in main() 1141 (void)alarm(TIME_OUT); in main() 1150 (void)alarm((unsigned)0); in main()
|
/external/ltp/testcases/kernel/syscalls/alarm/ |
D | alarm02.c | 129 TEST(alarm(sec[i])); in main() 130 alarm(0); in main() 156 alarm(0); in main()
|
D | alarm03.c | 125 TEST(alarm(100)); in main() 133 TEST(alarm(0)); in main() 151 TEST(alarm(0)); in main()
|
D | alarm05.c | 115 TEST(alarm(time_sec1)); in main() 125 TEST(alarm(time_sec2)); in main() 145 TEST(alarm(0)); in main()
|
D | alarm06.c | 105 TEST(alarm(time_sec1)); in main() 110 TEST(alarm(time_sec2)); in main()
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill02.c | 311 (void)alarm(TIMEOUT); in parent_rout() 316 (void)alarm(TIMEOUT); in parent_rout() 320 (void)alarm(0); /*Reset the alarm clock. */ in parent_rout() 433 (void)alarm(TIMEOUT); in parent_rout() 537 (void)alarm(TIMEOUT - 40); in child1_rout() 541 (void)alarm(TIMEOUT - 40); in child1_rout() 545 (void)alarm(0); /*Reset the alarm clock. */ in child1_rout()
|
D | kill10.c | 257 alarm(1); in main() 337 alarm(1); in setup() 495 alarm(1); in manager() 581 alarm(1); in manager() 711 alarm(2); in fork_procs()
|
/external/iputils/ |
D | tftpd.c | 186 alarm(0); in main() 379 alarm(rexmtval); /* read the ack */ in sendfile() 381 alarm(0); in sendfile() 444 alarm(rexmtval); in recvfile() 446 alarm(0); in recvfile() 482 alarm(rexmtval); in recvfile() 484 alarm(0); in recvfile()
|
/external/valgrind/none/tests/s390x/ |
D | ex_sig.c | 31 alarm(1); in handle_SIG() 37 alarm(1); in main()
|
/external/llvm/lib/Support/Unix/ |
D | Watchdog.inc | 22 alarm(seconds); 28 alarm(0);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ |
D | harness.c | 47 alarm(TIMEOUT); in run_test() 66 alarm(KILL_TIMEOUT); in run_test()
|
/external/ltp/testcases/kernel/syscalls/sigsuspend/ |
D | sigsuspend01.c | 107 alarm(5); in main() 117 alarm(0); in main()
|
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/ |
D | rt_sigsuspend01.c | 83 TEST(alarm(5)); in main() 87 TEST(alarm(0)); in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 138 alarm(1); in sigalrm_handler() 167 alarm(1); in pipe_thread1() 212 alarm(1); in yield_thread1() 327 alarm(1); in futex_thread1()
|
/external/openssh/ |
D | progressmeter.c | 246 alarm(UPDATE_INTERVAL); in update_progress_meter() 268 alarm(UPDATE_INTERVAL); in start_progress_meter() 274 alarm(0); in stop_progress_meter()
|
/external/ltp/runtest/ |
D | quickhit | 7 # Basic test for alarm(2) 9 # Boundary Value Test for alarm(2) 11 # Test Case One - A call to alarm() shall not return an error if 14 # Test Case Two - A call to alarm() shall not return an error if 17 # Test Case Three - A call to alarm() shall not return an error if 21 # alarm(2) cleared by a fork 23 # 1.) alarm(100), fork, child's alarm(0) shall return 0; 24 # 2.) alarm(100), fork, parent's alarm(0) shall return non-zero.
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmap-corruption01.c | 124 (void)alarm(alarmtime); in main() 132 (void)alarm(5); in main()
|
/external/toybox/toys/pending/ |
D | sulogin.c | 52 alarm(TT.timeout); in validate_password() 56 if(TT.timeout) alarm(0); in validate_password()
|
/external/ltp/testcases/misc/crash/ |
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()
|
/external/ltp/testcases/kernel/syscalls/syslog/ |
D | syslog12.c | 152 alarm(1); in main() 157 alarm(0); in main()
|
/external/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 93 alarm(3); in main() 138 alarm(3); in main()
|