Home
last modified time | relevance | path

Searched refs:now (Results 51 – 75 of 620) sorted by relevance

12345678910>>...25

/dragonfly/sbin/ifconfig/
H A Daf_inet6.c97 struct timespec now; in setip6lifetime() local
101 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in setip6lifetime()
108 in6_addreq.ifra_lifetime.ia6t_expire = now.tv_sec + newval; in setip6lifetime()
111 in6_addreq.ifra_lifetime.ia6t_preferred = now.tv_sec + newval; in setip6lifetime()
186 struct timespec now; in in6_status() local
191 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in in6_status()
306 printf(" %s", lifetime.ia6t_preferred < now.tv_sec in in6_status()
307 ? "0" : sec2str(lifetime.ia6t_preferred - now.tv_sec)); in in6_status()
314 printf(" %s", lifetime.ia6t_expire < now.tv_sec in in6_status()
315 ? "0" : sec2str(lifetime.ia6t_expire - now.tv_sec)); in in6_status()
/dragonfly/include/rpc/
H A Drpc_com.h55 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ argument
56 (u_int32_t)(now)->tv_usec)
/dragonfly/usr.bin/rwho/
H A Drwho.c63 #define down(w,now) ((now) - (w)->wd_recvtime > 11 * 60) argument
79 time_t now; in main() local
104 time(&now); in main()
116 if (down(w,now)) { in main()
/dragonfly/usr.bin/leave/
H A Dleave.c60 time_t now; in main() local
104 (void)time(&now); in main()
105 t = localtime(&now); in main()
127 secs -= now % 60; /* truncate (now + secs) to min */ in main()
/dragonfly/games/ching/castching/
H A Dcastching.c51 static time_t now; /* current time */ variable
70 time(&now); in main()
72 seed = (int)now + getquest() + getgid() + getuid() + getpid(); in main()
/dragonfly/sbin/routed/
H A Dtable.c795 k->k_keep = now.tv_sec; in kern_add()
820 new.rts_time = now.tv_sec; in kern_check_static()
885 k->k_keep = now.tv_sec+keep; in rtm_add()
1464 if (k->k_keep > now.tv_sec) { in fix_kern()
1677 rt->rt_time = now.tv_sec; in rtadd()
1686 need_kern.tv_sec = now.tv_sec; in rtadd()
1721 need_kern.tv_sec = now.tv_sec; in rtchange()
1731 new->rts_time = now.tv_sec; in rtchange()
1808 need_kern.tv_sec = now.tv_sec; in rtdelete()
1982 rts->rts_time = now.tv_sec; in walk_age()
[all …]
/dragonfly/contrib/xz/
H A DNEWS46 - Capsicum sandbox is now enabled by default where available
50 - DOS build now requires DJGPP 2.05 instead of 2.04beta.
91 - XZ Utils translations are now handled by the Translation
94 - All man pages are now included in German too.
154 * Use of external SHA-256 code is now disabled by default.
281 * xz --block-list and --block-size can now be used together
303 results and there's no run-time CPU detection for now).
311 * liblzma can now be built with MSVC 2013 update 2 or later
418 - The return values of the _memusage() functions are now
578 - The return values of the _memusage() functions are now
[all …]
/dragonfly/lib/libc/rpc/
H A Drpc_com.h56 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ argument
57 (u_int32_t)(now)->tv_usec)
H A Dauth_unix.c94 struct timeval now; in authunix_create() local
126 gettimeofday(&now, NULL); in authunix_create()
127 aup.aup_time = now.tv_sec; in authunix_create()
258 struct timeval now; in authunix_refresh() local
280 gettimeofday(&now, NULL); in authunix_refresh()
281 aup.aup_time = now.tv_sec; in authunix_refresh()
/dragonfly/contrib/xz/src/xz/
H A Dmytime.c79 const uint64_t now = mytime_now(); in mytime_get_flush_timeout() local
80 if (now >= next_flush) in mytime_get_flush_timeout()
83 const uint64_t remaining = next_flush - now; in mytime_get_flush_timeout()
/dragonfly/usr.bin/quota/
H A Dquota.c296 static time_t now; in showquotas() local
298 if (now == 0) in showquotas()
299 time(&now); in showquotas()
314 if (qup->dqblk.dqb_itime > now) in showquotas()
325 if (qup->dqblk.dqb_btime > now) in showquotas()
405 static time_t now; in timeprt() local
407 if (now == 0) in timeprt()
408 time(&now); in timeprt()
409 if (now > seconds) in timeprt()
411 seconds -= now; in timeprt()
/dragonfly/sys/dev/sound/
H A Dclone.c394 struct timespec now; in snd_clone_gc() local
403 snd_timestamp(&now); in snd_clone_gc()
410 !SND_CLONE_EXPIRED(c, &now, &c->tsp)) in snd_clone_gc()
424 SND_CLONE_EXPIRED(c, &now, &ce->tsp))) { in snd_clone_gc()
613 struct timespec now; in snd_clone_alloc() local
641 snd_timestamp(&now); in snd_clone_alloc()
766 ce->tsp = now; in snd_clone_alloc()
774 c->tsp = now; in snd_clone_alloc()
790 ce->tsp = now; in snd_clone_alloc()
793 c->tsp = now; in snd_clone_alloc()
/dragonfly/usr.sbin/rwhod/
H A Drwhod.c173 struct timeval next = { .tv_sec = 0 }, now; in main() local
276 gettimeofday(&now, NULL); in main()
277 timeadd(&now, delta, &next); in main()
296 gettimeofday(&now, NULL); in main()
297 if (now.tv_sec > next.tv_sec) { in main()
299 timeadd(&now, delta, &next); in main()
306 timeadd(struct timeval *now, time_t delta, struct timeval *next) in timeadd() argument
308 (next)->tv_sec = (now)->tv_sec + delta; in timeadd()
446 time_t now; in send_host_information() local
449 now = time(NULL); in send_host_information()
[all …]
/dragonfly/crypto/openssh/
H A Dprogressmeter.c124 double elapsed, now; in refresh_progress_meter() local
142 now = monotime_double(); in refresh_progress_meter()
146 elapsed = now - last_update; in refresh_progress_meter()
148 elapsed = now - start; in refresh_progress_meter()
229 last_update = now; in refresh_progress_meter()
/dragonfly/sys/netgraph7/
H A Dng_source.c748 struct timeval now, elapsed; in ng_source_intr() local
752 getmicrotime(&now); in ng_source_intr()
753 elapsed = now; in ng_source_intr()
757 sc->stats.lastTime = now; in ng_source_intr()
914 struct timeval now; in ng_source_dup_mod() local
915 getmicrotime(&now); in ng_source_dup_mod()
916 now.tv_sec = htonl(now.tv_sec); in ng_source_dup_mod()
917 now.tv_usec = htonl(now.tv_usec); in ng_source_dup_mod()
918 ng_source_packet_mod(sc, m, ts->offset, sizeof (now), in ng_source_dup_mod()
919 (caddr_t)&now, ts->flags); in ng_source_dup_mod()
/dragonfly/usr.bin/w/
H A Dpr_time.c47 pr_attime(time_t *started, time_t *now) in pr_attime() argument
55 tm = *localtime(now); in pr_attime()
56 diff = *now - *started; in pr_attime()
/dragonfly/usr.bin/touch/
H A Dtouch.c230 time_t now; in stime_arg1() local
235 now = tvp[0].tv_sec; in stime_arg1()
236 if ((t = localtime(&now)) == NULL) in stime_arg1()
294 time_t now; in stime_arg2() local
297 now = tvp[0].tv_sec; in stime_arg2()
298 if ((t = localtime(&now)) == NULL) in stime_arg2()
/dragonfly/sbin/shutdown/
H A Dshutdown.c416 time_t now; in getoffset() local
420 time(&now); in getoffset()
424 shuttime = now; in getoffset()
452 shuttime = now + offset; in getoffset()
469 lt = localtime(&now); /* current time val */ in getoffset()
508 if ((offset = shuttime - now) < 0) { in getoffset()
520 if ((offset = shuttime - now) < 0) { in getoffset()
/dragonfly/sys/net/altq/
H A Daltq_rio.c298 struct timeval now; in rio_addq() local
308 now.tv_sec = 0; in rio_addq()
314 if (now.tv_sec == 0) in rio_addq()
315 microtime(&now); in rio_addq()
316 t = (now.tv_sec - prec->last.tv_sec); in rio_addq()
321 (now.tv_usec - prec->last.tv_usec); in rio_addq()
/dragonfly/usr.bin/netstat/
H A Dmroute.c169 struct timeval now, end, delta; in print_bw_meter() local
171 gettimeofday(&now, NULL); in print_bw_meter()
224 if (timercmp(&now, &end, <=)) { in print_bw_meter()
225 timersub(&end, &now, &delta); in print_bw_meter()
229 timersub(&now, &end, &delta); in print_bw_meter()
/dragonfly/sys/dev/netif/ath/ath_hal/ar5210/
H A Dar5210_recv.c219 uint32_t now, rstamp; in ar5210ProcRxDesc() local
237 now = (OS_REG_READ(ah, AR_TSF_L32) >> 10) & 0xffff; in ar5210ProcRxDesc()
238 if ((now & 0x1fff) < rstamp) in ar5210ProcRxDesc()
239 rstamp |= (now - 0x2000) & 0xffff; in ar5210ProcRxDesc()
241 rstamp |= now; in ar5210ProcRxDesc()
/dragonfly/lib/libutil/
H A Dlogin_times.c117 u_short now = (u_short)((tt->tm_hour * 60) + tt->tm_min); in in_ltm() local
120 ++now; in in_ltm()
121 if (now >= ltm->lt_start && now < ltm->lt_end) { in in_ltm()
/dragonfly/crypto/libressl/crypto/asn1/
H A Da_time.c98 time_t now; in ASN1_TIME_to_tm() local
103 time(&now); in ASN1_TIME_to_tm()
106 return gmtime_r(&now, tm) != NULL; in ASN1_TIME_to_tm()
/dragonfly/tools/tools/net80211/wesside/wesside/
H A Dwesside.c273 struct timeval now; in check_key() local
294 if (gettimeofday(&now, NULL) == -1) { in check_key()
1941 struct timeval now; in flood_inet() local
1949 sec = now.tv_sec - last_ip.tv_sec; in flood_inet()
2296 el += now->tv_usec; in elapsedd()
2399 struct timeval now; local
2507 el += now.tv_usec;
2521 el = elapsedd(&arpsend, &now);
2616 if (now.tv_sec > lasthop.tv_sec ||
2644 elapsed += now.tv_usec;
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++11/
H A Dchrono.cc54 system_clock::now() noexcept in now() function in std::chrono::_V2::system_clock
82 steady_clock::now() noexcept in now() function in std::chrono::_V2::steady_clock
95 return time_point(system_clock::now().time_since_epoch()); in now()

12345678910>>...25