Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 1446) sorted by relevance

12345678910>>...58

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_getdate.c40 time_t now = time(NULL); in DEFINE_TEST() local
52 get_date(now, "-2 hours")); in DEFINE_TEST()
67 assertEqualInt(get_date(now, "tomorrow"), now + 24 * 60 * 60); in DEFINE_TEST()
68 assertEqualInt(get_date(now, "yesterday"), now - 24 * 60 * 60); in DEFINE_TEST()
69 assertEqualInt(get_date(now, "now + 1 hour"), now + 60 * 60); in DEFINE_TEST()
71 now + 60 * 60 + 60); in DEFINE_TEST()
78 assertEqualInt(get_date(now, "monday UTC"), now); in DEFINE_TEST()
79 assertEqualInt(get_date(now, "sunday UTC"), now + 6 * 24 * 60 * 60); in DEFINE_TEST()
80 assertEqualInt(get_date(now, "tuesday UTC"), now + 24 * 60 * 60); in DEFINE_TEST()
83 now + 8 * 24 * 60 * 60); in DEFINE_TEST()
[all …]
/freebsd/sys/kern/
H A Dkern_clocksource.c144 now = state->now; in hardclockintr()
146 (int)(now >> 32), (u_int)(now & 0xffffffff)); in hardclockintr()
164 (int)(now >> 32), (u_int)(now & 0xffffffff)); in handleevents()
321 state->now = now;
323 (int)(now >> 32), (u_int)(now & 0xffffffff));
339 state->now = now;
399 (int)(now >> 32), (u_int)(now & 0xffffffff),
486 now = 0;
501 state->now = now;
770 now = state->now;
[all …]
H A Dsubr_filter.c157 tf->entries[i].time_up = now; in check_update_times()
166 tf->entries[i].time_up = now; in check_update_times()
201 tf->entries[i].time_up = now; in check_update_times_small()
218 tf->entries[0].time_up = now; in filter_reduce_by()
221 tf->entries[i].time_up = now; in filter_reduce_by()
238 tf->entries[0].time_up = now; in filter_reduce_by_small()
241 tf->entries[i].time_up = now; in filter_reduce_by_small()
255 tf->entries[0].time_up = now; in filter_increase_by()
258 tf->entries[i].time_up = now; in filter_increase_by()
272 tf->entries[0].time_up = now; in filter_increase_by_small()
[all …]
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c104 time_t now; in fifolog_write_close() local
110 time(&now); in fifolog_write_close()
123 time_t now; in fifolog_write_open() local
172 time(&now); in fifolog_write_open()
313 if (now == 0) in fifolog_write_poll()
314 time(&now); in fifolog_write_poll()
346 if (now == 0) in fifolog_write_record()
347 time(&now); in fifolog_write_record()
373 f->last = now; in fifolog_write_record()
391 if (now == 0) in fifolog_write_record_poll()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_util.c363 l_fp now; in stats_config() local
590 l_fp now; in record_peer_stats() local
596 get_systime(&now); in record_peer_stats()
599 now.l_ui %= 86400; in record_peer_stats()
631 l_fp now; in record_loop_stats() local
665 l_fp now; in record_clock_stats() local
740 l_fp now; in record_raw_stats() local
801 l_fp now; in record_sys_stats() local
838 l_fp now; in record_proto_stats() local
872 l_fp now; in record_crypto_stats() local
[all …]
/freebsd/contrib/kyua/utils/signals/
H A Dtimer.cpp164 const datetime::timestamp& now, in compute_timers_to_run_and_prune_old() argument
192 const datetime::timestamp& now, in reprogram_system_timer() argument
211 while (next < now) { in reprogram_system_timer()
223 INV(next >= now); in reprogram_system_timer()
245 PRE(now < timer->when()); in global_state()
251 timer->when() % now); in global_state()
425 const datetime::timestamp now = datetime::timestamp::now(); in timer() local
454 const datetime::timestamp now = datetime::timestamp::now(); in ~timer() local
455 if (now > _pimpl->when) { in ~timer()
540 const datetime::timestamp now = datetime::timestamp::now(); in unprogram() local
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dclock.c111 nowi = now;
114 now = time(NULL);
327 struct timeval now; local
341 now = time(NULL);
386 now = time(NULL);
393 ev->ev_time <= now
442 - now));
460 now = time(NULL);
536 time_t begin, now;
560 begin = now;
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_zio.h42 TP_PROTO(zio_t *zio, hrtime_t now),
43 TP_ARGS(zio, now),
46 __field(hrtime_t, now)
50 __entry->now = now;
52 TP_printk("now %llu " ZIO_TP_PRINTK_FMT, __entry->now,
57 TP_PROTO(zio_t *zio, hrtime_t now, hrtime_t diff),
58 TP_ARGS(zio, now, diff),
61 __field(hrtime_t, now)
66 __entry->now = now;
69 TP_printk("now %llu diff %llu " ZIO_TP_PRINTK_FMT, __entry->now,
/freebsd/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c239 time_t now; in ATF_TC_BODY() local
244 p = parsedate(s, &now, NULL); \ in ATF_TC_BODY()
248 (uintmax_t)now, ctime_r(&now, nb), \ in ATF_TC_BODY()
269 for (now = 0x00FFFFFF; now < 0xFF000000; now += 3777779) { in ATF_TC_BODY()
274 REL_CHECK("yesterday", now, tm); in ATF_TC_BODY()
280 REL_CHECK("tomorrow", now, tm); in ATF_TC_BODY()
295 REL_CHECK("next sunday", now, tm); in ATF_TC_BODY()
325 REL_CHECK("97 minutes", now, tm); in ATF_TC_BODY()
336 REL_CHECK("month", now, tm); in ATF_TC_BODY()
346 REL_CHECK("next month", now, tm); in ATF_TC_BODY()
[all …]
/freebsd/sys/x86/x86/
H A Ddelay.c53 uint64_t end, now; in delay_tsc() local
60 now = rdtsc(); in delay_tsc()
61 end = now + tsc_freq * n / 1000000; in delay_tsc()
64 now = rdtsc(); in delay_tsc()
65 } while (now < end); in delay_tsc()
74 uint64_t end, freq, now; in delay_tc() local
93 now = 0; in delay_tc()
100 now += mask - last + u + 1; in delay_tc()
102 now += u - last; in delay_tc()
104 } while (now < end); in delay_tc()
/freebsd/contrib/unbound/services/cache/
H A Ddns.c218 if(now > data->ttl) { in rrset_expired_above()
397 time_t now = *env->now; in cache_fill_missing() local
462 0, now, 0); in find_add_ds()
625 if(now > r->ttl) { in tomsg()
655 :r->ttl - now; in tomsg()
689 region, now); in tomsg()
733 if(now > d->ttl) in rrset_msg()
767 if(now > d->ttl) in synth_dname_msg()
856 time_t now = *env->now; in fill_any() local
881 qclass, 0, now, 0); in fill_any()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel_helper.h80 sojourn_time = now - pkt_ts; in fqc_dodequeue()
88 q->cst.first_above_time = now + schk->cfg.ccfg.interval; in fqc_dodequeue()
89 } else if (now >= q->cst.first_above_time) { in fqc_dodequeue()
103 aqm_time_t now; in fqc_codel_dequeue() local
110 now = AQM_UNOW; in fqc_codel_dequeue()
111 m = fqc_dodequeue(q, now, &ok_to_drop, si); in fqc_codel_dequeue()
125 while (now >= cst->drop_next_time && cst->dropping) { in fqc_codel_dequeue()
137 m = fqc_dodequeue(q, now, &ok_to_drop, si); in fqc_codel_dequeue()
159 m = fqc_dodequeue(q, now, &ok_to_drop,si); in fqc_codel_dequeue()
172 cst->count = (cst->count > 2 && ((aqm_stime_t)now - in fqc_codel_dequeue()
[all …]
H A Ddn_aqm_codel.h112 sojourn_time = now - pkt_ts; in codel_dodequeue()
120 cst->first_above_time = now + cprms->interval; in codel_dodequeue()
121 } else if (now >= cst->first_above_time) { in codel_dodequeue()
137 aqm_time_t now; in codel_dequeue() local
142 now = AQM_UNOW; in codel_dequeue()
144 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue()
157 while (now >= cst->drop_next_time && cst->dropping) { in codel_dequeue()
170 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue()
193 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue()
206 cst->count = (cst->count > 2 && ((aqm_stime_t)now - in codel_dequeue()
[all …]
/freebsd/sys/sys/
H A Dtim_filter.h86 void tick_filter_clock(struct time_filter *tf, uint32_t now);
87 uint32_t apply_filter_min(struct time_filter *tf, uint64_t value, uint32_t now);
88 uint32_t apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now);
89 void filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now);
90 void filter_increase_by(struct time_filter *tf, uint64_t incr_by, uint32_t now);
108 void tick_filter_clock_small(struct time_filter_small *tf, uint32_t now);
110 uint32_t value, uint32_t now);
112 uint32_t value, uint32_t now);
114 uint32_t reduce_by, uint32_t now);
116 uint32_t incr_by, uint32_t now);
/freebsd/stand/i386/libi386/
H A Dtime.c71 time_t now, check; in time() local
77 now = check; in time()
79 if (check != now) in time()
83 if (now < lasttime) in time()
84 now += 24 * 3600; in time()
85 lasttime = now; in time()
88 *t = now; in time()
89 return(now); in time()
/freebsd/usr.sbin/efiwake/
H A Defiwake.c54 struct efi_tm now; in main() local
96 error = ioctl(efi_fd, EFIIOC_GET_TIME, &now); in main()
102 now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, in main()
103 now.tm_sec); in main()
113 waketime.waketime = now; in main()
/freebsd/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c87 struct timeval now, target, remaining; in prompt_tty() local
127 (void)gettimeofday(&now, NULL); in prompt_tty()
130 timeradd(&now, &remaining, &target); in prompt_tty()
133 now.tv_sec = now.tv_usec = 0; in prompt_tty()
147 gettimeofday(&now, NULL); in prompt_tty()
148 if (timercmp(&now, &target, >)) in prompt_tty()
227 (void)gettimeofday(&now, NULL); in prompt_notty()
230 timeradd(&now, &remaining, &target); in prompt_notty()
233 now.tv_sec = now.tv_usec = 0; in prompt_notty()
245 gettimeofday(&now, NULL); in prompt_notty()
[all …]
/freebsd/sys/contrib/libsodium/
H A DChangeLog111 - libsodium is now available on NuGet.
194 `R` point are now also rejected.
203 - The library can now be compiled on Minix.
204 - HEASLR is now enabled on MinGW builds.
267 - QNX and CloudABI are now supported.
299 - Visual Studio 2015 is now supported.
324 - sodium_bin2hex() is now constant-time.
437 - CPU features are now detected at runtime.
444 - mingw64 is now supported
472 are now visible as intended.
[all …]
/freebsd/contrib/flex/
H A DNEWS7 *** The indent target now knows about flex's new (as of 2.6.0)
132 *** make indent now works for out of source builds
319 ** c++ scanners can now use yywrap
374 ** flex is now hosted at sourceforge
382 ** flex now works with recent bison versions
543 ** manual now discusses memory usage
577 ** yylex_init now reports errors
595 ** the yylineno performance hit is now gone
645 ** compilation with --disable-nls now works
663 *** Options are now parsed left to right
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dbssid_ignore.c68 struct os_reltime now; in wpa_bssid_ignore_add() local
74 os_get_reltime(&now); in wpa_bssid_ignore_add()
76 e->start = now; in wpa_bssid_ignore_add()
100 e->start = now; in wpa_bssid_ignore_add()
153 struct os_reltime now; in wpa_bssid_ignore_is_listed() local
158 os_get_reltime(&now); in wpa_bssid_ignore_is_listed()
159 if (os_reltime_expired(&now, &e->start, e->timeout_secs)) in wpa_bssid_ignore_is_listed()
193 struct os_reltime now; in wpa_bssid_ignore_update() local
199 os_get_reltime(&now); in wpa_bssid_ignore_update()
201 if (os_reltime_expired(&now, &e->start, in wpa_bssid_ignore_update()
/freebsd/usr.sbin/rtadvd/
H A Dtimer.c157 struct timespec now; in rtadvd_check_timer() local
160 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_check_timer()
163 if (TS_CMP(&rat->rat_tm, &now, <=)) { in rtadvd_check_timer()
168 TS_ADD(&rat->rat_tm, &now, &rat->rat_tm); in rtadvd_check_timer()
176 } else if (TS_CMP(&tm_max, &now, <)) { in rtadvd_check_timer()
180 TS_SUB(&tm_max, &now, &returnval); in rtadvd_check_timer()
187 struct timespec now; in rtadvd_set_timer() local
190 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_set_timer()
191 TS_ADD(&now, tm, &rat->rat_tm); in rtadvd_set_timer()
/freebsd/contrib/wpa/src/rsn_supp/
H A Dpmksa_cache.c61 struct os_reltime now; in pmksa_cache_expire() local
65 os_get_reltime(&now); in pmksa_cache_expire()
109 struct os_reltime now; in pmksa_cache_set_expiration() local
115 os_get_reltime(&now); in pmksa_cache_set_expiration()
179 struct os_reltime now; in pmksa_cache_add() local
200 os_get_reltime(&now); in pmksa_cache_add()
591 struct os_reltime now; in pmksa_cache_set_current() local
629 struct os_reltime now; in pmksa_cache_list() local
639 os_get_reltime(&now); in pmksa_cache_list()
719 struct os_reltime now; in pmksa_cache_reconfig() local
[all …]
/freebsd/sbin/routed/
H A Dmain.c115 now.tv_sec = EPOCH; in main()
367 timevalsub(&now, &clk, &epoch); in main()
446 if (!timercmp(&no_flash, &now, >)) in main()
448 timevalsub(&t2, &no_flash, &now); in main()
455 timevalsub(&t2, &age_timer, &now); in main()
465 timevalsub(&t2, &need_kern, &now); in main()
529 ifinit_timer.tv_sec = now.tv_sec; in sigalrm()
763 ifinit_timer.tv_sec = now.tv_sec; in rip_on()
879 if (lim->reuse > now.tv_sec) { in msglim()
883 lim->reuse = now.tv_sec + 10*60; in msglim()
[all …]
/freebsd/tests/sys/netinet/libalias/
H A Dperf.c55 gettimeofday(&now, NULL); \
56 if (timevalcmp(now, timeout, >=)) \
69 struct timeval timeout, now, start; in main() local
172 gettimeofday(&now, NULL); in main()
174 printf("%6.2f ", timevaldiff(now, start) / cnt); in main()
178 start = now; in main()
194 gettimeofday(&now, NULL); in main()
200 start = now; in main()
215 gettimeofday(&now, NULL); in main()
269 gettimeofday(&now, NULL); in main()
[all …]
/freebsd/contrib/sendmail/src/
H A Dratectrl.c83 time_t now; local
87 now = time(NULL);
93 totalrate = total_rate(now, e == NULL);
261 time_t now;
285 ticks = now / ChtGran;
372 chBest->ch_LTime = now;
478 client_rate(now, saddr, clflags) in client_rate() argument
479 time_t now; in client_rate()
499 total_rate(now, update) in total_rate() argument
500 time_t now; in total_rate()
[all …]

12345678910>>...58