Searched refs:now (Results 251 - 275 of 677) sorted by relevance

<<11121314151617181920>>

/openbsd-current/usr.sbin/mrinfo/
H A Dmrinfo.c402 struct timeval tv, now; local
411 gettimeofday(&now, 0);
412 tv.tv_sec = et.tv_sec - now.tv_sec;
413 tv.tv_usec = et.tv_usec - now.tv_usec;
/openbsd-current/usr.sbin/unbound/testcode/
H A Dreplay.h78 * o TIME_PASSES ELAPSE [seconds] - increase 'now' time counter, can be
281 struct replay_moment* now; member in struct:replay_runtime
/openbsd-current/sys/kern/
H A Dkern_time.c73 struct timespec now; local
97 nanotime(&now);
98 if (securelevel > 1 && timespeccmp(ts, &now, <=)) {
100 (long long)now.tv_sec - ts->tv_sec);
524 struct timespec now; local
540 nanouptime(&now);
549 timespecadd(&its.it_value, &now, &its.it_value);
568 if (timespeccmp(&oldits.it_value, &now, <))
571 timespecsub(&oldits.it_value, &now,
H A Dkern_tc.c52 static u_int now; local
54 return atomic_inc_int_nv(&now);
129 * Return the difference between the timehands' counter value now and what
236 time_t now;
244 now = th->th_offset.sec;
248 return now;
361 time_t now;
369 now = th->th_microtime.tv_sec;
373 return now;
/openbsd-current/bin/ps/
H A Dprint.c511 static time_t now; local
531 if (!now)
532 (void)time(&now);
533 if (now - kp->p_ustart_sec < 12 * SECSPERHOUR) {
535 } else if (now - kp->p_ustart_sec < 7 * SECSPERDAY) {
565 static time_t now; local
576 if (!now)
577 (void)time(&now);
578 secs = now - kp->p_ustart_sec;
/openbsd-current/usr.bin/ssh/
H A Dserverloop.c149 time_t now; local
157 now = monotime();
171 unused_connection_expiry = now +
188 last_client_time = now;
225 now = monotime(); /* need to reset after ppoll() */
229 now >= last_client_time + options.client_alive_interval) {
232 last_client_time = now;
235 last_client_time = now;
241 now > unused_connection_expiry && !channel_still_open(ssh)) {
H A Dssh-keyscan.c543 struct timespec seltime, now; local
547 monotime_ts(&now);
550 if (c && timespeccmp(&c->c_ts, &now, >))
551 timespecsub(&c->c_ts, &now, &seltime);
569 while (c && timespeccmp(&c->c_ts, &now, <)) {
/openbsd-current/sbin/dhcp6leased/
H A Dengine.c1142 struct timespec now, res; local
1170 clock_gettime(CLOCK_MONOTONIC, &now);
1171 timespecsub(&now, &iface->request_time, &res);
1180 clock_gettime(CLOCK_MONOTONIC, &now);
1181 timespecsub(&now, &iface->request_time, &res);
1197 struct timespec now, res; local
1202 clock_gettime(CLOCK_MONOTONIC, &now);
1203 timespecsub(&now, &iface->elapsed_time_start, &res);
1215 struct timespec now, res; local
1221 clock_gettime(CLOCK_MONOTONIC, &now);
[all...]
/openbsd-current/gnu/usr.bin/gcc/contrib/
H A Ddownload_f2c77 echo Latest f2c now in $dir.
/openbsd-current/gnu/llvm/llvm/tools/llvm-exegesis/lib/X86/
H A DX86Counter.cpp172 std::chrono::high_resolution_clock::now() + std::chrono::microseconds(5);
175 I < kLbrEntries || std::chrono::high_resolution_clock::now() < TimeLimit;
/openbsd-current/sys/arch/i386/i386/
H A Dmptramp.s70 * We startup the processors now when the kthreads become ready.
167 # ok, we're now running with paging enabled and sharing page tables with cpu0.
203 # %esi now points at our PCB.
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DLockFileManager.cpp236 // Wipe out our unique lock file (it's useless now)
287 // The unique file is now gone, so remove it from the signal handler. This
309 auto StartTime = std::chrono::steady_clock::now();
339 std::chrono::steady_clock::now() - StartTime)
/openbsd-current/gnu/llvm/lldb/source/Utility/
H A DSelectHelper.cpp12 // the kernel, so we have to stick with select for now.
46 m_end_time = steady_clock::time_point(steady_clock::now() + timeout);
201 duration_cast<microseconds>(*m_end_time - steady_clock::now());
/openbsd-current/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerLoop.cpp135 _Exit(Options.OOMExitCode); // Stop right now.
240 _Exit(Options.ErrorExitCode); // Stop right now.
275 // Stop right now, don't perform any at-exit actions.
291 duration_cast<seconds>(system_clock::now() - UnitStartTime).count();
309 _Exit(Options.TimeoutExitCode); // Stop right now.
325 _Exit(Options.OOMExitCode); // Stop right now.
579 _Exit(Options.ErrorExitCode); // Stop right now.
614 UnitStartTime = system_clock::now();
619 UnitStopTime = system_clock::now();
781 if (duration_cast<seconds>(system_clock::now()
[all...]
/openbsd-current/gnu/llvm/libcxx/src/
H A Dchrono.cpp141 system_clock::now() noexcept
300 steady_clock::now() noexcept
/openbsd-current/sys/arch/armv7/sunxi/
H A Dsxitimer.c285 uint32_t now = sxitimer_readcnt32(); local
287 while ((now - sxitimer_readcnt32()) < TIMER_SYNC)
/openbsd-current/usr.bin/snmp/
H A Dsnmp.c277 struct timespec start, now; local
297 memcpy(&now, &start, sizeof(now));
304 to = (agent->timeout - (now.tv_sec - start.tv_sec)) * 1000;
305 to -= (now.tv_nsec - start.tv_nsec) / 1000000;
/openbsd-current/usr.sbin/ocspcheck/
H A Docspcheck.c410 time_t now, rev_t = -1, this_t, next_t; local
499 now = time(NULL);
504 if (this_t > now + JITTER_SEC) {
514 if (this_t < now - MAXAGE_SEC) {
523 if (next_t < now - JITTER_SEC) {
/openbsd-current/sbin/isakmpd/
H A Dlog.c175 struct timeval now; local
183 gettimeofday(&now, 0);
184 t = now.tv_sec;
193 tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec,
197 tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec,
/openbsd-current/usr.bin/find/
H A Dfunction.c114 extern time_t now;
177 extern time_t now;
179 COMPARE((now - entry->fts_statp->st_atime +
206 COMPARE((now - entry->fts_statp->st_atime +
232 extern time_t now;
234 COMPARE((now - entry->fts_statp->st_ctime +
261 COMPARE((now - entry->fts_statp->st_ctime +
1108 COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) /
1134 extern time_t now;
1136 COMPARE((now
[all...]
/openbsd-current/usr.sbin/unbound/iterator/
H A Diter_utils.c219 * @param now: current time
259 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
280 &rtt, now)) {
317 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
329 name, namelen, qtype, now, a);
396 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
406 got_num = iter_fill_rtt(iter_env, env, name, namelen, qtype, now, dp,
598 *env->now, dp, &selrtt, open_target, blacklist, prefetch);
881 dp->name, dp->namelen, dclass, env->scratch, *env->now);
1127 rrset = packed_rrset_copy_alloc(rrset, env->alloc, *env->now);
258 iter_filter_unsuitable(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt_addr* a) argument
316 iter_fill_rtt(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt* dp, int* best_rtt, struct sock_list* blacklist, size_t* num_suitable_results) argument
395 iter_filter_order(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt* dp, int* selected_rtt, int open_target, struct sock_list* blacklist, time_t prefetch) argument
[all...]
/openbsd-current/sbin/unwind/libunbound/iterator/
H A Diter_utils.c219 * @param now: current time
259 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
280 &rtt, now)) {
317 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
329 name, namelen, qtype, now, a);
396 uint8_t* name, size_t namelen, uint16_t qtype, time_t now,
406 got_num = iter_fill_rtt(iter_env, env, name, namelen, qtype, now, dp,
598 *env->now, dp, &selrtt, open_target, blacklist, prefetch);
881 dp->name, dp->namelen, dclass, env->scratch, *env->now);
1127 rrset = packed_rrset_copy_alloc(rrset, env->alloc, *env->now);
258 iter_filter_unsuitable(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt_addr* a) argument
316 iter_fill_rtt(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt* dp, int* best_rtt, struct sock_list* blacklist, size_t* num_suitable_results) argument
395 iter_filter_order(struct iter_env* iter_env, struct module_env* env, uint8_t* name, size_t namelen, uint16_t qtype, time_t now, struct delegpt* dp, int* selected_rtt, int open_target, struct sock_list* blacklist, time_t prefetch) argument
[all...]
/openbsd-current/usr.sbin/ospfd/
H A Dinterface.c325 struct timeval now; local
340 gettimeofday(&now, NULL);
341 iface->uptime = now.tv_sec;
590 struct timeval tv, now, res; local
637 gettimeofday(&now, NULL);
639 timersub(&tv, &now, &res);
647 ictl.uptime = now.tv_sec - iface->uptime;
/openbsd-current/usr.sbin/ospf6d/
H A Dinterface.c177 /* XXX using a linked list should be OK for now */
369 struct timeval now; local
386 gettimeofday(&now, NULL);
387 iface->uptime = now.tv_sec;
644 struct timeval tv, now, res; local
684 gettimeofday(&now, NULL);
686 timersub(&tv, &now, &res);
692 ictl.uptime = now.tv_sec - iface->uptime;
/openbsd-current/usr.sbin/unbound/cachedb/
H A Dcachedb.c429 timestamp = (uint64_t)*qstate->env->now;
461 if((time_t)expiry < *qstate->env->now &&
464 *qstate->env->now - (time_t)expiry > SERVE_EXPIRED_TTL)))
601 if(*qstate->env->now <= (time_t)timestamp) {
605 adjust = *qstate->env->now - (time_t)timestamp;
628 * 'now' should be redundant given how these values were calculated,
632 (adjust == -1 || (time_t)expiry < *qstate->env->now)) {
719 *qstate->env->now, 1/*add SOA*/, NULL,
744 /* Set TTLs to a value such that value + *env->now is
745 * going to be now
[all...]

Completed in 313 milliseconds

<<11121314151617181920>>