/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/ |
H A D | ssh-keyscan.c | 510 struct timeval seltime, now; local 515 gettimeofday(&now, NULL); 518 if (c && (c->c_tv.tv_sec > now.tv_sec || 519 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec > now.tv_usec))) { 521 seltime.tv_sec -= now.tv_sec; 522 seltime.tv_usec -= now.tv_usec; 550 while (c && (c->c_tv.tv_sec < now.tv_sec || 551 (c->c_tv.tv_sec == now.tv_sec && c->c_tv.tv_usec < now [all...] |
/netbsd-6-1-5-RELEASE/dist/dhcp/omapip/ |
H A D | dispatch.c | 212 struct timeval now, to; local 226 gettimeofday (&now, (struct timezone *)0); 227 cur_time = now.tv_sec; 228 if (now.tv_sec > t -> tv_sec || 229 (now.tv_sec == t -> tv_sec && now.tv_usec >= t -> tv_usec)) 234 to.tv_sec = t -> tv_sec - now.tv_sec; 235 to.tv_usec = t -> tv_usec - now.tv_usec; 250 return now. */ 295 gettimeofday (&now, (struc [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kcm/ |
H A D | events.c | 399 kcm_run_events(krb5_context context, time_t now) argument 407 if (now < last_run + KCM_EVENT_QUEUE_INTERVAL) { 417 if (now >= (*e)->fire_time) { 423 } else if ((*e)->expire_time && now >= (*e)->expire_time) { 435 last_run = now;
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/include/dns/ |
H A D | view.h | 478 isc_stdtime_t now, unsigned int options, isc_boolean_t use_hints, 483 isc_stdtime_t now, unsigned int options, 506 *\li If 'now' is zero, then the current time will be used. 574 isc_stdtime_t now, unsigned int options, 591 *\li If 'now' is zero, then the current time will be used. 636 isc_stdtime_t now, unsigned int options, 642 isc_stdtime_t now, unsigned int options, 653 *\li If 'now' is zero, then the current time will be used. 768 *\li #ISC_R_SUCCESS A key was found and '*keyp' now points to it. 784 *\li #ISC_R_SUCCESS A key was found and '*keyp' now point [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/libarchive/dist/tar/ |
H A D | read.c | 355 static time_t now; local 368 if (!now) 369 time(&now); 423 if (tim < now - HALF_YEAR || tim > now + HALF_YEAR)
|
H A D | getdate.c | 42 time_t get_date(time_t now, char *); 403 /* "now", "tomorrow" */ 630 { 0, "now", tSEC_UNIT, 0 }, 749 time_t t, now; local 753 now = Start; 754 now += DAY * ((DayNumber - tm->tm_wday + 7) % 7); 755 now += 7 * DAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); 757 return DSTcorrect(Start, now); 758 return now - Start; 897 get_date(time_t now, cha argument [all...] |
/netbsd-6-1-5-RELEASE/sbin/ping/ |
H A D | ping.c | 202 static struct timespec now, clear_cache, last_tx, next_tx, first_tx; variable in typeref:struct:timespec 653 /* make it possible to send giant probes, but do not worry now 673 clock_gettime(CLOCK_MONOTONIC, &now); 701 clock_gettime(CLOCK_MONOTONIC, &now); 704 d_last = last - timespec_to_sec(&now); 708 sec = diffsec(&next_tx, &now); 712 sec = diffsec(&next_tx, &now); 725 diffsec(&now, &last_tx); 757 clock_gettime(CLOCK_MONOTONIC, &now); 796 jiggle_time = now; [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/skeyinit/ |
H A D | skeyinit.c | 51 time_t now; local 94 (void)time(&now); 95 (void)snprintf(tbuf, sizeof(tbuf), "%05ld", (long) (now % 100000)); 335 (void)time(&now); 336 tm = localtime(&now);
|
/netbsd-6-1-5-RELEASE/sys/ufs/chfs/ |
H A D | chfs_subr.c | 453 struct timespec now; local 459 vfs_timestamp(&now); 462 acc = &now; 467 mod = &now; 473 cre = &now;
|
/netbsd-6-1-5-RELEASE/external/bsd/libevent/dist/ |
H A D | event.c | 695 struct timeval now, res; local 709 gettime(ev->ev_base, &now); 710 evutil_timersub(&ev->ev_timeout, &now, &res); 712 evutil_gettimeofday(&now, NULL); 713 evutil_timeradd(&now, &res, tv); 759 struct timeval now; local 784 gettime(base, &now); 785 evutil_timeradd(&now, tv, &ev->ev_timeout); 855 struct timeval now; local 865 if (gettime(base, &now) 926 struct timeval now; local [all...] |
/netbsd-6-1-5-RELEASE/sys/altq/ |
H A D | altq_red.c | 371 struct timeval now; local 375 microtime(&now); 376 t = (now.tv_sec - rp->red_last.tv_sec); 384 t = t * 1000000 + (now.tv_usec - rp->red_last.tv_usec); 504 * now the range of d is [1..600] in fixed-point. (when 1126 struct timeval *now) 1139 tthresh.tv_sec = now->tv_sec - FV_TTHRESH; 1332 struct timeval now; local 1335 FV_TIMESTAMP(&now); 1337 if ((fve = flowlist_lookup(fv, pktattr, &now)) 1125 flowlist_lookup(struct flowvalve *fv, struct altq_pktattr *pktattr, struct timeval *now) argument 1410 struct timeval now; local [all...] |
/netbsd-6-1-5-RELEASE/sbin/routed/ |
H A D | table.c | 817 k->k_keep = now.tv_sec; 842 new.rts_time = now.tv_sec; 907 k->k_keep = now.tv_sec+keep; 955 k->k_redirect_time = now.tv_sec; 1222 * check them all now if the check would otherwise 1223 * be a long time from now, if the interface is 1227 if (ifinit_timer.tv_sec-now.tv_sec>=CHECK_BAD_INTERVAL 1231 ifinit_timer.tv_sec = now.tv_sec; 1527 if (k->k_keep > now.tv_sec) { 1597 k->k_keep = now [all...] |
H A D | rdisc.c | 284 LIM_SEC(rdisc_timer, now.tv_sec+MIN_WAITTIME); 294 ifp->int_rdisc_timer.tv_sec = now.tv_sec+MIN_WAITTIME; 341 sec = (now.tv_sec - drp->dr_life 397 ifp->int_rdisc_timer.tv_sec = now.tv_sec + (supplier 477 if (drp->dr_ts + drp->dr_life <= now.tv_sec) { 524 new.rts_time = now.tv_sec - GARBAGE_TIME; 552 new.rts_time = now.tv_sec; 659 new_drp->dr_ts = now.tv_sec; 840 rdisc_timer.tv_sec = now.tv_sec + NEVER; 846 if (!timercmp(&ifp->int_rdisc_timer, &now, >) [all...] |
/netbsd-6-1-5-RELEASE/bin/pax/ |
H A D | ar_subs.c | 200 time_t now; local 214 now = time(NULL); 255 ls_list(arcn, now, stdout); 259 * stop now -- we're probably writing to a pipe that 301 time_t now; local 313 now = time(NULL); 393 * this archive member is now been selected. modify the name. 433 ls_list(arcn, now, listf); 545 time_t now; local 561 now [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/resolv/ |
H A D | res_init.c | 289 * important now that the rfc1535 stuff restricts searches) 666 struct timeval now; local 670 gettimeofday(&now, NULL); 671 u32 = now.tv_sec; 673 u32 = now.tv_usec; 675 u32 += now.tv_sec; 683 struct timeval now; local 687 gettimeofday(&now, NULL); 688 u16 = (u_int16_t) (now.tv_sec ^ now [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/bfd/ |
H A D | ihex.c | 779 size_t now; local 782 now = count; 784 now = CHUNK; 841 if (rec_addr + now > 0xffff) 842 now = 0x10000 - rec_addr; 844 if (! ihex_write_record (abfd, now, rec_addr, 0, p)) 847 where += now; 848 p += now; 849 count -= now;
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/bfd/ |
H A D | ihex.c | 779 size_t now; local 782 now = count; 784 now = CHUNK; 841 if (rec_addr + now > 0xffff) 842 now = 0x10000 - rec_addr; 844 if (! ihex_write_record (abfd, now, rec_addr, 0, p)) 847 where += now; 848 p += now; 849 count -= now;
|
/netbsd-6-1-5-RELEASE/usr.sbin/rwhod/ |
H A D | rwhod.c | 131 struct timeval delta, next, now; local 223 gettimeofday(&now, NULL); 224 timeradd(&now, &delta, &next); 242 (void)gettimeofday(&now, NULL); 243 if (timercmp(&now, &next, >)) { 245 timeradd(&now, &delta, &next); 365 time_t now; local 370 now = time(NULL); 404 we->we_idle = htonl(now - stb.st_atime);
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isccc/ |
H A D | cc.c | 468 isc_uint32_t serial, isccc_time_t now, 503 isccc_cc_defineuint32(_ctrl, "_tim", now) == NULL || 526 isc_uint32_t serial, isccc_time_t now, 529 return (createmessage(version, from, to, serial, now, expires, 610 isccc_cc_createresponse(isccc_sexpr_t *message, isccc_time_t now, argument 638 result = isccc_cc_createmessage(1, _to, _frm, serial, now, expires, 743 isccc_time_t *now; local 748 now = arg; 750 if (*now < value.as_uinteger) 752 if ((*now 467 createmessage(isc_uint32_t version, const char *from, const char *to, isc_uint32_t serial, isccc_time_t now, isccc_time_t expires, isccc_sexpr_t **alistp, isc_boolean_t want_expires) argument 525 isccc_cc_createmessage(isc_uint32_t version, const char *from, const char *to, isc_uint32_t serial, isccc_time_t now, isccc_time_t expires, isccc_sexpr_t **alistp) argument 765 isccc_cc_cleansymtab(isccc_symtab_t *symtab, isccc_time_t now) argument 785 isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message, isccc_time_t now) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/cardbus/ |
H A D | cardbus.c | 959 pcireg_t value, now; local 964 now = value & PCI_PMCSR_STATE_MASK; 965 switch (now) { 970 *state = now; 998 pcireg_t value, cap, now; local 1004 now = value & PCI_PMCSR_STATE_MASK; 1007 if (now == state) 1013 if (now == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D3) { 1014 printf("invalid transition from %d to D1\n", (int)now); [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/pci/ |
H A D | pci.c | 724 pcireg_t value, now; local 727 now = value & PCI_PMCSR_STATE_MASK; 728 switch (now) { 733 *state = now; 756 pcireg_t value, cap, now; local 760 now = value & PCI_PMCSR_STATE_MASK; 763 if (now == state) 769 if (now == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D3) { 770 printf("invalid transition from %d to D1\n", (int)now); [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/libbind/dist/isc/ |
H A D | ev_timers.c | 113 struct timeval now; local 125 if (gettimeofday(&now, NULL) < 0) 127 return (evTimeSpec(now)); 132 struct timeval now; local 138 if (gettimeofday(&now, NULL) < 0) 140 return (evTimeSpec(now)); 202 /* due={0,0} is a magic cookie meaning "now." */
|
/netbsd-6-1-5-RELEASE/sys/compat/linux/common/ |
H A D | linux_misc_notalpha.c | 103 struct timespec now; local 125 getnanotime(&now); 127 timespeccmp(&itp->it_value, &now, >)) 128 timespecsub(&itp->it_value, &now, &itp->it_value); 186 getnanotime(&now); 187 timespecadd(&it.it_value, &now, &it.it_value); 224 * the count arg properly. Don't bother with it anymore now, and use
|
/netbsd-6-1-5-RELEASE/sys/arch/shark/shark/ |
H A D | sequoia.c | 497 struct timeval now; 499 getmicrotime(&now); 500 if(now.tv_sec == ledLastActive.tv_sec) 502 timeSpan = now.tv_usec - ledLastActive.tv_usec; 505 else if (now.tv_sec - 10 < ledLastActive.tv_sec) /* stop rollover problems */ 507 timeSpan = (1000000 + now.tv_usec) - ledLastActive.tv_usec; 496 struct timeval now; local
|
/netbsd-6-1-5-RELEASE/sbin/shutdown/ |
H A D | shutdown.c | 273 * Warn now, if going to sleep more than a fifth of 443 time_t now; local 446 (void)time(&now); 447 if (!strcasecmp(timearg, "now")) { /* now */ 449 shuttime = now; 457 shuttime = now + offset; 474 lt = localtime(&now); /* current time val */ 514 if ((offset = shuttime - now) < 0)
|