/freebsd-11-stable/contrib/unbound/services/cache/ |
H A D | rrset.c | 368 struct ub_packed_rrset_key* rrset, time_t now) 394 updata->ttl+now < cachedata->ttl || 395 cachedata->ttl < now || 397 cachedata->ttl = updata->ttl + now; 399 cachedata->rr_ttl[i] = updata->rr_ttl[i]+now; 400 cachedata->ttl_add = now; 408 struct ub_packed_rrset_key* rrset, time_t now) 422 if(now > cachedata->ttl || !rrsetdata_equal(updata, cachedata)) { 430 updata->ttl = cachedata->ttl - now; 432 if(cachedata->rr_ttl[i] < now) 367 rrset_update_sec_status(struct rrset_cache* r, struct ub_packed_rrset_key* rrset, time_t now) argument 407 rrset_check_sec_status(struct rrset_cache* r, struct ub_packed_rrset_key* rrset, time_t now) argument [all...] |
/freebsd-11-stable/contrib/dialog/samples/ |
H A D | editbox-utf8 | 16 Try it now!
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | via_irq.c | 95 static unsigned time_diff(struct timeval *now, struct timeval *then) argument 97 return (now->tv_usec >= then->tv_usec) ? 98 now->tv_usec - then->tv_usec : 99 1000000 - (then->tv_usec - now->tv_usec); 353 struct timeval now; local 387 microtime(&now); 388 irqwait->reply.tval_sec = now.tv_sec; 389 irqwait->reply.tval_usec = now.tv_usec;
|
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | mythread.h | 301 struct timespec now; local 302 int ret = clock_gettime(cond->clk_id, &now); 306 condtime->tv_sec += now.tv_sec; 307 condtime->tv_nsec += now.tv_nsec; 311 struct timeval now; local 312 gettimeofday(&now, NULL); 314 condtime->tv_sec += now.tv_sec; 315 condtime->tv_nsec += now.tv_usec * 1000L;
|
/freebsd-11-stable/usr.bin/find/ |
H A D | main.c | 64 time_t now; /* time find was run */ variable 87 (void)time(&now); /* initialize the time-of-day */
|
/freebsd-11-stable/sys/dev/filemon/ |
H A D | filemon.c | 149 * The p->p_filemon may have changed by now. That case is handled 195 struct timeval now; local 197 getmicrotime(&now); 201 FILEMON_VERSION, curproc->p_pid, (uintmax_t)now.tv_sec, 202 (uintmax_t)now.tv_usec, FILEMON_VERSION); 257 struct timeval now; local 264 getmicrotime(&now); 269 (uintmax_t)now.tv_sec, (uintmax_t)now.tv_usec); 450 * now [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_dfs.c | 239 int i, oldest, now; local 243 now = oldest = ticks; 247 if (ieee80211_time_after_eq(now, dfs->nol_event[i]+NOL_TIMEOUT)) { 267 if (oldest != now) { 269 callout_schedule(&dfs->nol_timer, oldest + NOL_TIMEOUT - now); 299 int i, now; local 327 now = ticks; 333 dfs->nol_event[i] = now;
|
/freebsd-11-stable/contrib/libarchive/cpio/test/ |
H A D | test_format_newc.c | 87 time_t t, t2, now; local 166 now = time(NULL); /* They were all created w/in last two seconds. */ 211 failure("t=%#08jx now=%#08jx=%jd", (intmax_t)t, (intmax_t)now, 212 (intmax_t)now); 213 assert(t <= now); /* File wasn't created in future. */ 214 failure("t=%#08jx now - 2=%#08jx=%jd", (intmax_t)t, (intmax_t)now - 2, 215 (intmax_t)now - 2); 216 assert(t >= now [all...] |
/freebsd-11-stable/contrib/llvm-project/lld/Common/ |
H A D | Timer.cpp | 34 startTime = std::chrono::high_resolution_clock::now(); 38 total += (std::chrono::high_resolution_clock::now() - startTime);
|
/freebsd-11-stable/usr.bin/touch/ |
H A D | touch.c | 220 time_t now; local 225 now = time(NULL); 226 if ((t = localtime(&now)) == NULL) 284 time_t now; local 287 now = time(NULL); 288 if ((t = localtime(&now)) == NULL)
|
/freebsd-11-stable/contrib/ntp/sntp/tests/ |
H A D | packetHandling.c | 296 l_fp now; local 302 get_systime(&now); 303 HTONL_FP(&now, &rpkt.reftime); 304 HTONL_FP(&now, &rpkt.org); 305 HTONL_FP(&now, &rpkt.rec); 306 HTONL_FP(&now, &rpkt.xmt);
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_rtc.c | 86 /* XXX: should be kern. now, it's no longer machdep. */ 160 struct timespec now; local 162 getnanotime(&now); 164 clock_print_ts(&now, 9); 377 struct timespec now; local 388 getnanotime(&now); 389 waitns = rtc->schedns - now.tv_nsec;
|
/freebsd-11-stable/usr.sbin/bluetooth/btpand/ |
H A D | event.c | 91 struct timeval now, timeout, t; local 98 gettimeofday(&now, NULL); 116 if (tv_cmp(&now, &ev->expire) >= 0) 120 tv_sub(&t, &now); 154 gettimeofday(&now, NULL); 191 if (tv_cmp(&now, &ev->expire) >= 0) {
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | airtime_policy.c | 58 struct os_reltime *now) 60 sta->backlogged_until = *now; 75 struct os_reltime now; local 77 os_get_reltime(&now); 84 set_new_backlog_time(hapd, sta, &now); 85 if (os_reltime_before(&now, &sta->backlogged_until)) 56 set_new_backlog_time(struct hostapd_data *hapd, struct sta_info *sta, struct os_reltime *now) argument
|
H A D | pmksa_cache_auth.c | 112 struct os_reltime now; local 114 os_get_reltime(&now); 115 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { 128 struct os_reltime now; local 133 os_get_reltime(&now); 134 sec = pmksa->pmksa->expiration - now.sec; 321 struct os_reltime now; local 342 os_get_reltime(&now); 343 entry->expiration = now.sec; 635 struct os_reltime now; local 686 struct os_reltime now; local [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | bgscan_simple.c | 48 * every now and then) to reduce effect on the data connection. 206 struct os_reltime now; local 220 os_get_reltime(&now); 221 if (now.sec > data->last_bgscan.sec + 1 && 231 now.sec + data->scan_interval) { 254 os_get_reltime(&now); 255 if (now.sec > data->last_bgscan.sec + 10)
|
/freebsd-11-stable/sys/dev/ow/ |
H A D | owc_gpiobus.c | 275 sbintime_t then, now; local 296 now = sbinuptime(); 298 } while (sbttous(now - then) < t->t_rdv + 2 && sample == 0); 301 if (sbttons(now - then) < t->t_rdv * 1000) 308 now = sbinuptime(); 309 } while ((now - then) / SBT_1US < t->t_slot);
|
/freebsd-11-stable/contrib/pf/libevent/ |
H A D | event.c | 565 struct timeval now, res; local 581 gettime(&now); 582 timersub(&ev->ev_timeout, &now, &res); 584 gettimeofday(&now, NULL); 585 timeradd(&now, &res, tv); 609 struct timeval now; local 630 gettime(&now); 631 timeradd(&now, tv, &ev->ev_timeout); 718 struct timeval now; local 726 if (gettime(&now) 759 struct timeval now; local [all...] |
/freebsd-11-stable/lib/libdpv/ |
H A D | dpv.c | 139 struct timeval now; local 619 gettimeofday(&now, (struct timezone *)NULL); 620 now.tv_sec = now.tv_sec - start.tv_sec; 621 now.tv_usec = now.tv_usec - start.tv_usec; 622 if (now.tv_usec < 0) 623 now.tv_sec--, now.tv_usec += 1000000; 624 seconds = now [all...] |
/freebsd-11-stable/usr.sbin/rtsold/ |
H A D | rtsold.c | 554 struct timespec now, rtsol_timer; local 560 clock_gettime(CLOCK_MONOTONIC_FAST, &now); 565 if (TS_CMP(&ifi->expire, &now, <=)) { 659 if (TS_CMP(&now, &rao->rao_expire, 683 } else if (TS_CMP(&rtsol_timer, &now, <)) 687 TS_SUB(&rtsol_timer, &now, &returnval); 689 now.tv_sec += returnval.tv_sec; 690 now.tv_nsec += returnval.tv_nsec; 692 sec2str(&now)); 703 struct timespec now; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/prga/ |
H A D | prga.c | 335 struct timeval now; local 343 if (gettimeofday(&now, NULL) == -1) 347 el = elapsed(&p->last, &now); 364 now.tv_sec = el/1000/1000; 365 now.tv_usec = el - now.tv_sec*1000*1000; 369 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1) 403 struct timeval now; local 413 if (gettimeofday(&now, NULL) == -1) 416 el = elapsed(&p->last, &now); [all...] |
/freebsd-11-stable/contrib/wpa/src/rsn_supp/ |
H A D | pmksa_cache.c | 59 struct os_reltime now; local 61 os_get_reltime(&now); 62 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { 86 struct os_reltime now; local 92 os_get_reltime(&now); 93 sec = pmksa->pmksa->expiration - now.sec; 101 sec = pmksa->pmksa->reauth_time - now.sec; 137 struct os_reltime now; local 158 os_get_reltime(&now); 159 entry->expiration = now 543 struct os_reltime now; local [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_pipe.c | 111 ngp_f->vtime.tv_usec = now->tv_usec + ((uint64_t) (plen) \ 114 ngp_f->vtime.tv_sec = now->tv_sec + \ 594 struct timeval *now = &uuptime; local 630 microuptime(now); 637 if (when->tv_sec < now->tv_sec || (when->tv_sec == now->tv_sec 638 && when->tv_usec < now->tv_usec)) { 639 when->tv_sec = now->tv_sec; 640 when->tv_usec = now->tv_usec; 713 pipe_dequeue(hinfo, now); 732 pipe_dequeue(struct hookinfo *hinfo, struct timeval *now) argument 895 struct timeval now; local [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_getdate.c | 404 /* "now", "tomorrow" */ 631 { 0, "now", tSEC_UNIT, 0 }, 801 time_t t, now; local 823 now = Start; 824 now += DAY * ((DayNumber - tm->tm_wday + 7) % 7); 825 now += 7 * DAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); 827 return DSTcorrect(Start, now); 828 return now - Start; 985 __archive_get_date(time_t now, const char *p) argument 1009 tm = localtime_r(&now, 1152 time_t now = time(NULL); local [all...] |
/freebsd-11-stable/contrib/unbound/validator/ |
H A D | val_sigcrypt.c | 478 /* now check which algo is missing */ 515 sec = dnskeyset_verify_rrset_sig(env, ve, *env->now, rrset, 581 env->scratch_buffer, ve, *env->now, rrset, 595 time_t now, struct ub_packed_rrset_key* rrset, 622 env->scratch_buffer, ve, now, rrset, dnskey, i, 769 /* end of the loop; because we advanced byte by byte; now we have 1204 sigdate_error(const char* str, int32_t expi, int32_t incep, int32_t now) argument 1216 tn = (time_t)now; 1221 log_info("%s expi=%s incep=%s now=%s", str, expi_buf, 1224 log_info("%s expi=%u incep=%u now 594 dnskeyset_verify_rrset_sig(struct module_env* env, struct val_env* ve, time_t now, struct ub_packed_rrset_key* rrset, struct ub_packed_rrset_key* dnskey, size_t sig_idx, struct rbtree_type** sortree, char** reason, sldns_pkt_section section, struct module_qstate* qstate) argument 1272 uint32_t expi, incep, now; local 1334 int32_t origttl, expittl, expi, incep, now; local 1376 dnskey_verify_rrset_sig(struct regional* region, sldns_buffer* buf, struct val_env* ve, time_t now, struct ub_packed_rrset_key* rrset, struct ub_packed_rrset_key* dnskey, size_t dnskey_idx, size_t sig_idx, struct rbtree_type** sortree, int* buf_canon, char** reason, sldns_pkt_section section, struct module_qstate* qstate) argument [all...] |