Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 25 of 251) sorted by relevance

1234567891011

/external/autotest/client/cros/
Dsys_power.py108 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/
Dwrite04.c127 (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/
D9-1.c59 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/
Dfcntl15.c148 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()
Dfcntl14.c857 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/
Dalarm02.c129 TEST(alarm(sec[i])); in main()
130 alarm(0); in main()
156 alarm(0); in main()
Dalarm03.c125 TEST(alarm(100)); in main()
133 TEST(alarm(0)); in main()
151 TEST(alarm(0)); in main()
Dalarm05.c115 TEST(alarm(time_sec1)); in main()
125 TEST(alarm(time_sec2)); in main()
145 TEST(alarm(0)); in main()
Dalarm06.c105 TEST(alarm(time_sec1)); in main()
110 TEST(alarm(time_sec2)); in main()
/external/ltp/testcases/kernel/syscalls/kill/
Dkill02.c311 (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()
Dkill10.c257 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/
Dtftpd.c186 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/
Dex_sig.c31 alarm(1); in handle_SIG()
37 alarm(1); in main()
/external/llvm/lib/Support/Unix/
DWatchdog.inc22 alarm(seconds);
28 alarm(0);
/external/linux-kselftest/tools/testing/selftests/powerpc/
Dharness.c47 alarm(TIMEOUT); in run_test()
66 alarm(KILL_TIMEOUT); in run_test()
/external/ltp/testcases/kernel/syscalls/sigsuspend/
Dsigsuspend01.c107 alarm(5); in main()
117 alarm(0); in main()
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c83 TEST(alarm(5)); in main()
87 TEST(alarm(0)); in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c138 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/
Dprogressmeter.c246 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/
Dquickhit7 # 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/
Dmmap-corruption01.c124 (void)alarm(alarmtime); in main()
132 (void)alarm(5); in main()
/external/toybox/toys/pending/
Dsulogin.c52 alarm(TT.timeout); in validate_password()
56 if(TT.timeout) alarm(0); in validate_password()
/external/ltp/testcases/misc/crash/
Dcrash02.c219 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/
Dsyslog12.c152 alarm(1); in main()
157 alarm(0); in main()
/external/ltp/testcases/kernel/syscalls/times/
Dtimes03.c93 alarm(3); in main()
138 alarm(3); in main()

1234567891011