Home
last modified time | relevance | path

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

12345678910>>...58

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_getdate.c40 time_t now = time(NULL); in DEFINE_TEST()
42 assertEqualInt(get_date(now, "Jan 1, 1970 UTC"), 0); in DEFINE_TEST()
43 assertEqualInt(get_date(now, "7:12:18-0530 4 May 1983"), 420900138); in DEFINE_TEST()
44 assertEqualInt(get_date(now, "2004/01/29 513 mest"), 1075345980); in DEFINE_TEST()
45 assertEqualInt(get_date(now, "99/02/17 7pm utc"), 919278000); in DEFINE_TEST()
46 assertEqualInt(get_date(now, "02/17/99 7:11am est"), 919253460); in DEFINE_TEST()
47 assertEqualInt(get_date(now, "now - 2 hours"), in DEFINE_TEST()
48 get_date(now, "2 hours ago")); in DEFINE_TEST()
49 assertEqualInt(get_date(now, " in DEFINE_TEST()
41 time_t now = time(NULL); DEFINE_TEST() local
[all...]
/freebsd/sys/kern/
H A Dkern_clocksource.c61 static void loadtimer(sbintime_t now, int first);
69 static int handleevents(sbintime_t now, int fake);
116 sbintime_t now; /* Last tick time. */ member
137 sbintime_t now; in hardclockintr() local
144 now = state->now; in hardclockintr()
146 (int)(now >> 32), (u_int)(now & 0xffffffff)); in hardclockintr()
147 done = handleevents(now, 0); in hardclockintr()
155 handleevents(sbintime_t now, int fake) in handleevents() argument
164 (int)(now >> 32), (u_int)(now & 0xffffffff)); in handleevents()
177 while (now >= state->nexthard) { in handleevents()
[all …]
H A Dsubr_filter.c136 check_update_times(struct time_filter *tf, uint64_t value, uint32_t now) in check_update_times() argument
142 tim = now - tf->entries[i].time_up; in check_update_times()
157 tf->entries[i].time_up = now; in check_update_times()
162 tim = now - tf->entries[i].time_up; in check_update_times()
166 tf->entries[i].time_up = now; in check_update_times()
171 check_update_times_small(struct time_filter_small *tf, uint32_t value, uint32_t now) in check_update_times_small() argument
177 tim = now - tf->entries[i].time_up; in check_update_times_small()
192 tf->entries[i].time_up = now; in check_update_times_small()
197 tim = now - tf->entries[i].time_up; in check_update_times_small()
201 tf->entries[i].time_up = now; in check_update_times_small()
[all …]
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c45 static int fifolog_write_gzip(struct fifolog_writer *f, time_t now);
104 time_t now; in fifolog_write_close() local
110 time(&now); in fifolog_write_close()
111 fifolog_write_gzip(f, now); in fifolog_write_close()
123 time_t now; in fifolog_write_open() local
172 time(&now); in fifolog_write_open()
173 f->starttime = now; in fifolog_write_open()
174 f->lastsync = now; in fifolog_write_open()
175 f->lastwrite = now; in fifolog_write_open()
187 fifolog_write_output(struct fifolog_writer *f, int fl, time_t now) in fifolog_write_output() argument
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_util.c368 l_fp now; in stats_config()
539 get_systime(&now); in stats_config()
546 leapsec_expired(now.l_ui, NULL) in stats_config()
556 check_leap_expiration(TRUE, now.l_ui, &ttnow); in stats_config()
590 l_fp now; in record_peer_stats() local
596 get_systime(&now); in record_peer_stats()
597 filegen_setup(&peerstats, now.l_ui); in record_peer_stats()
601 day = now.l_ui / 86400 + MJD_1900; in record_peer_stats()
602 now.l_ui %= 86400; in record_peer_stats()
605 ulfptoa(&now, in record_peer_stats()
363 l_fp now; stats_config() local
631 l_fp now; record_loop_stats() local
665 l_fp now; record_clock_stats() local
740 l_fp now; record_raw_stats() local
801 l_fp now; record_sys_stats() local
838 l_fp now; record_proto_stats() local
872 l_fp now; record_crypto_stats() local
910 l_fp now; record_timing_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
170 while (iter != _all_timers.end() && (*iter).first <= now) { in compute_timers_to_run_and_prune_old()
192 const datetime::timestamp& now, in reprogram_system_timer() argument
211 while (next < now) { in reprogram_system_timer()
222 if (next < _timer_activation || now > _timer_activation) { in reprogram_system_timer()
223 INV(next >= now); in reprogram_system_timer()
224 const datetime::delta delta = next - now; in reprogram_system_timer()
225 LD(F("Reprogramming timer; firing on %s; now is %s") % next % now); in reprogram_system_timer()
242 global_state(signals::timer* timer, const datetime::timestamp& now) : in global_state() argument
245 PRE(now < timer->when()); in global_state()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dclock.c95 auto struct timeval now, nowi, ival; local
98 auto time_t now, nowi; local
110 (void) gettimeofday(&now, NULL);
111 nowi = now;
112 timeradd(&now, &ival, &nowi);
114 now = time(NULL);
115 nowi = now + (time_t)(intvl / 1000);
166 timersub(&SmEventQueue->ev_time, &now, &itime.it_value);
175 intvl = SmEventQueue->ev_time - now;
327 struct timeval now; local
[all …]
/freebsd/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c239 time_t now; in ATF_TC_BODY() local
241 #define REL_CHECK(s, now, tm) do { \ in ATF_TC_BODY() argument
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()
270 ATF_CHECK(localtime_r(&now, &tm) != NULL); in ATF_TC_BODY()
274 REL_CHECK("yesterday", now, tm); in ATF_TC_BODY()
276 ATF_CHECK(localtime_r(&now, &tm) != NULL); in ATF_TC_BODY()
280 REL_CHECK("tomorrow", now, tm); in ATF_TC_BODY()
282 ATF_CHECK(localtime_r(&now, &tm) != NULL); in ATF_TC_BODY()
[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/unbound/services/cache/
H A Ddns.c78 store_rrsets(struct module_env* env, struct reply_info* rep, time_t now, in store_rrsets() argument
91 LDNS_RR_TYPE_NS && !pside)?qstarttime:now) + leeway)) { in store_rrsets()
103 rep->ref[i].key, region, now); in store_rrsets()
172 reply_info_set_ttls(rep, *env->now); in dns_cache_store_msg()
173 store_rrsets(env, rep, *env->now, leeway, pside, qrep, region, in dns_cache_store_msg()
209 uint16_t qclass, time_t now, uint16_t searchtype, int stripfront, in find_closest_of_type() argument
225 qnamelen, searchtype, qclass, 0, now, 0))) { in find_closest_of_type()
244 &qnamelen, searchtype, qclass, now, expiretop, in find_closest_of_type()
252 searchtype, qclass, 0, now, 0))) { in find_closest_of_type()
271 struct dns_msg* msg, time_t now) in addr_to_additional() argument
[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/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel_helper.h51 fqc_dodequeue(struct fq_codel_flow *q, aqm_time_t now, uint16_t *ok_to_drop, in fqc_dodequeue() argument
80 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()
[all …]
H A Ddn_aqm_codel.h79 codel_dodequeue(struct dn_queue *q, aqm_time_t now, uint16_t *ok_to_drop) in codel_dodequeue() argument
112 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()
[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()
150 timersub(&target, &now, &remaining); in prompt_tty()
216 struct timeval now, target, remaining; in prompt_notty() local
227 (void)gettimeofday(&now, NULL); in prompt_notty()
230 timeradd(&now, &remaining, &target); in prompt_notty()
[all …]
/freebsd/sys/contrib/libsodium/
H A DChangeLog3 - Signatures computations and verifications are now way faster on
12 `crypto_sign_edwards25519sha512batch_open` now reject public keys in
16 - Webassembly: `crypto_pwhash_*()` functions are now included in
21 - The Salsa20-based PRNG example is now thread-safe on platforms with
28 - The default password hashing algorithm is now Argon2id. The
39 module now returns a `.ready` promise that will resolve after the
45 - iOS binaries should now be compatible with WatchOS and TVOS.
46 - WebAssembly is now officially supported. Special thanks to
62 - crypto_sign_ed25519_pk_to_curve25519() now rejects points that are
66 - Visual Studio solutions are now included in distribution tarballs.
[all …]
/freebsd/contrib/flex/
H A DNEWS7 *** The indent target now knows about flex's new (as of 2.6.0)
11 *** The files included in the flex distribution are now built by the
20 we now check for how to call libtoolize and use what we find in
49 *** All scripts in the test suite are now run by $(SHELL) and the
55 *** Tests that depend on platform dependent features now properly skip
58 *** When running "make check", you can now pas V=0 to silence more of
87 *** It is now possible to build flex without building the accompanying
109 *** flex should now handle quoting when mixed with m4 processing correctly
121 *** input filenames on MSWindows are now calculated correctly
123 *** general code cleanups in a number of tests now make the test suite compile much more cleanly
[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/usr.bin/grdc/
H A Dgrdc.c30 static struct timespec now; variable
148 clock_gettime(CLOCK_REALTIME_FAST, &now); in main()
149 prev_sec = now.tv_sec; in main()
151 end = now; in main()
157 tm = localtime(&now.tv_sec); in main()
173 n = end.tv_sec - now.tv_sec; in main()
220 clock_gettime(CLOCK_REALTIME_FAST, &now); in main()
221 if (now.tv_sec == prev_sec) { in main()
224 delay.tv_nsec = 1000000000 - now.tv_nsec; in main()
230 clock_gettime(CLOCK_REALTIME_FAST, &now); in main()
[all …]
/freebsd/sbin/routed/
H A Dmain.c61 struct timeval now; /* current idea of time */ variable
115 now.tv_sec = EPOCH; in main()
367 timevalsub(&now, &clk, &epoch); in main()
368 now_stale = now.tv_sec - STALE_TIME; in main()
369 now_expire = now.tv_sec - EXPIRE_TIME; in main()
370 now_garbage = now.tv_sec - GARBAGE_TIME; in main()
383 timevalsub(&wtime, &ifinit_timer, &now); in main()
394 timevalsub(&t2, &flush_kern_timer, &now); in main()
397 flush_kern_timer.tv_sec = (now.tv_sec in main()
407 timevalsub(&t2, &next_bcast, &now); in main()
[all …]
/freebsd/contrib/llvm-project/lld/docs/
H A DReleaseNotes.rst29 * Experimental CREL relocations with explicit addends are now supported using the
35 * ``EI_OSABI`` in the output is now inferred from input object files.
41 * The default compression level for zlib is now independent of linker
45 ``R_AARCH64_AUTH_RELATIVE`` relocations are now supported.
47 * ``--no-allow-shlib-undefined`` now rejects non-exported definitions in the
66 * ``--build-id`` now defaults to generating a 20-byte digest ("sha1") instead
72 * ``--lto-emit-asm`` is now added as the canonical spelling of ``--plugin-opt=emit-llvm``.
73 * ``--lto-emit-llvm`` now uses the pre-codegen module.
75 * When AArch64 PAuth is enabled, ``-z pack-relative-relocs`` now encodes ``R_AARCH64_AUTH_RELATIVE`…
77 * ``-z gcs`` and ``-z gcs-report`` are now supported for AArch64 Guarded Control Stack extension.
[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()
196 printf("%6.2f ", timevaldiff(now, start) / cnt); in main()
200 start = now; in main()
215 gettimeofday(&now, NULL); in main()
[all …]

12345678910>>...58