Home
last modified time | relevance | path

Searched refs:now (Results 76 – 100 of 1458) sorted by relevance

12345678910>>...59

/freebsd/libexec/bootpd/
H A Dtzone.c36 time_t now; in tzone_init()
38 (void)time(&now); in tzone_init()
39 if ((tm = localtime(&now)) == NULL) { in tzone_init()
/freebsd/contrib/tcsh/
H A DNewThings5 * %$variables are now expanded in the prompt.
24 * prompt is now %# by default.
41 * $?0 returns false now on interactive shells for csh compatibility.
46 * Shell -w -x are now POSIX compliant on POSIX machines.
57 * history and dirs accept now -LSc flags.
61 now the timestamps as csh comments.
70 * echo_style controls now the behaviour of the builtin echo; the default
109 the reason is that now you can
115 works now is the way the 4.4BSD csh works.
138 * quoted expansions now work.
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_dumbclock.c106 time_t now; in dumbclock_start() local
140 time(&now); in dumbclock_start()
142 tm_time_p = localtime(&now); in dumbclock_start()
144 tm_time_p = gmtime(&now); in dumbclock_start()
242 time_t now; in dumbclock_receive() local
263 time(&now); in dumbclock_receive()
267 reality_delta = asserted_time - now; in dumbclock_receive()
/freebsd/sbin/recoverdisk/
H A Drecoverdisk.c84 if (pp == NULL || pp->t1 < now) { in report_good_read2()
87 pp->t0 = (now / dt) * dt; in report_good_read2()
88 pp->t1 = (now / dt + 1) * dt; in report_good_read2()
101 report_good_read(time_t now, size_t bytes) in report_good_read() argument
104 report_good_read2(now, bytes, &minute, 60L); in report_good_read()
106 report_good_read2(now, bytes, &hour, 3600L); in report_good_read()
107 report_good_read2(now, bytes, &day, 86400L); in report_good_read()
195 off_t j, bucket, fp, fe, k, now; in report_histogram() local
218 now = lp->start / bucket; in report_histogram()
224 if (j == now) in report_histogram()
[all …]
/freebsd/lib/libc/resolv/
H A Dres_state.c69 struct timespec now; in res_check_reload() local
82 if (clock_gettime(CLOCK_MONOTONIC_FAST, &now) != 0 || in res_check_reload()
83 (now.tv_sec - ext->conf_stat) < ext->reload_period) { in res_check_reload()
87 ext->conf_stat = now.tv_sec; in res_check_reload()
/freebsd/sbin/ifconfig/
H A Daf_inet6.c139 struct timespec now; in setip6lifetime() local
148 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in setip6lifetime()
155 lifetime->ia6t_expire = now.tv_sec + newval; in setip6lifetime()
158 lifetime->ia6t_preferred = now.tv_sec + newval; in setip6lifetime()
284 printf(" %s", px_time < now->tv_sec ? "0" : sec2str(px_time - now->tv_sec)); in print_lifetime()
347 struct timespec now; in in6_status() local
349 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in in6_status()
363 struct timespec now; in show_lifetime() local
377 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in show_lifetime()
378 print_lifetime("pltime", pl + now.tv_sec, &now); in show_lifetime()
[all …]
/freebsd/contrib/kyua/utils/process/
H A Ddeadline_killer_test.cpp72 datetime::timestamp start = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
76 datetime::timestamp end = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
91 datetime::timestamp start = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
95 datetime::timestamp end = datetime::timestamp::now(); in ATF_TEST_CASE_BODY()
/freebsd/contrib/wpa/src/ap/
H A Dtkip_countermeasures.c71 struct os_reltime now; in michael_mic_failure() local
97 os_get_reltime(&now); in michael_mic_failure()
98 if (os_reltime_expired(&now, &hapd->michael_mic_failure, 60)) { in michael_mic_failure()
107 hapd->michael_mic_failure = now; in michael_mic_failure()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_encrypted.ksh57 log_must zfs snapshot $TESTPOOL/$TESTFS1@now
59 log_mustnot zfs clone -o encryption=off $TESTPOOL/$TESTFS1@now \
63 log_must zfs clone $TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS2
64 log_must zfs clone $TESTPOOL/$TESTFS1@now $TESTPOOL/$TESTFS1/child
/freebsd/tools/build/
H A Dfutimens.c42 struct timeval now, tv[2], *tvp; in futimens() local
85 if (gettimeofday(&now, NULL) == -1) in futimens()
88 tv[0] = now; in futimens()
90 tv[1] = now; in futimens()
H A Dutimensat.c42 struct timeval now, tv[2], *tvp; in utimensat() local
89 if (gettimeofday(&now, NULL) == -1) in utimensat()
92 tv[0] = now; in utimensat()
94 tv[1] = now; in utimensat()
/freebsd/contrib/unifdef/scripts/
H A Dcopycheck.sh4 now=$(date +%Y)
13 grep ^$now |
17 grep -v $now
/freebsd/sys/netgraph/
H A Dng_pipe.c593 struct timeval *now = &uuptime; in ngp_rcvdata() local
629 microuptime(now); in ngp_rcvdata()
636 if (when->tv_sec < now->tv_sec || (when->tv_sec == now->tv_sec in ngp_rcvdata()
638 when->tv_sec = now->tv_sec; in ngp_rcvdata()
639 when->tv_usec = now->tv_usec; in ngp_rcvdata()
718 pipe_dequeue(hinfo, now); in ngp_rcvdata()
756 if (when->tv_sec > now->tv_sec || (when->tv_sec == now->tv_sec in pipe_dequeue()
871 if (when->tv_sec > now->tv_sec || in pipe_dequeue()
910 struct timeval now; in ngp_callout() local
913 microuptime(&now); in ngp_callout()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_dfs.c236 int i, oldest, now; in dfs_timeout() local
240 now = oldest = ticks; in dfs_timeout()
244 if (ieee80211_time_after_eq(now, dfs->nol_event[i]+NOL_TIMEOUT)) { in dfs_timeout()
264 if (oldest != now) { in dfs_timeout()
266 callout_schedule(&dfs->nol_timer, oldest + NOL_TIMEOUT - now); in dfs_timeout()
296 int i, now; in ieee80211_dfs_notify_radar() local
324 now = ticks; in ieee80211_dfs_notify_radar()
330 dfs->nol_event[i] = now; in ieee80211_dfs_notify_radar()
/freebsd/contrib/xz/src/common/
H A Dmythread.h327 struct timespec now; in mythread_condtime_set() local
328 int ret = clock_gettime(cond->clk_id, &now); in mythread_condtime_set()
332 condtime->tv_sec += now.tv_sec; in mythread_condtime_set()
333 condtime->tv_nsec += now.tv_nsec; in mythread_condtime_set()
337 struct timeval now; in mythread_condtime_set() local
338 gettimeofday(&now, NULL); in mythread_condtime_set()
340 condtime->tv_sec += now.tv_sec; in mythread_condtime_set()
341 condtime->tv_nsec += now.tv_usec * 1000L; in mythread_condtime_set()
/freebsd/sbin/natd/
H A DHISTORY7 - Alias address can now be set by giving interface name with
21 - -a option now understands a hostname also.
37 - SIGTERM is now catched to allow kernel to close
39 - SIGHUP is now catched to allow natd to refresh aliasing
71 - Directory tree reorganized, alias package is now a library.
111 fixed. Natd now waits with select(2) for buffer space
117 - Ignored incoming packets are now dropped when
124 - Port numbers are now unsigned as they should always have been.
136 - permanent_link is now obsolete, use redirect_port instead.
/freebsd/tools/regression/priv/
H A Dpriv_settimeofday.c45 static struct timeval now; variable
51 if (gettimeofday(&now, NULL) < 0) { in priv_settimeofday_setup()
63 error = settimeofday(&now, NULL); in priv_settimeofday()
/freebsd/include/rpc/
H A Drpc_com.h54 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ argument
55 (u_int32_t)(now)->tv_usec)
/freebsd/contrib/libevent/
H A Dwhatsnew-2.1.txt60 using that option now is to turn warnings into errors.
62 For IDE users, files that are not supposed to be built are now
75 checking for new high-priority events. You can now use the
136 By analogy to event_base_loopbreak(), there is now an
329 callback is no longer hardcoded; it's now configurable with
431 whitespace at the end of a header is now removed.
623 Therefore, we now set it.
666 4.2. Finicky tests are now off-by-default
707 Libevent now tries to detect OpenSSL via pkg-config.
754 And now we have CI:
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dwhatsnew-2.1.txt60 using that option now is to turn warnings into errors.
62 For IDE users, files that are not supposed to be built are now
75 checking for new high-priority events. You can now use the
136 By analogy to event_base_loopbreak(), there is now an
329 callback is no longer hardcoded; it's now configurable with
431 whitespace at the end of a header is now removed.
623 Therefore, we now set it.
666 4.2. Finicky tests are now off-by-default
707 Libevent now tries to detect OpenSSL via pkg-config.
754 And now we have CI:
[all …]
/freebsd/usr.sbin/rtsold/
H A Drtsold.c553 struct timespec now, rtsol_timer; in rtsol_check_timer() local
564 if (TS_CMP(&ifi->expire, &now, <=)) { in rtsol_check_timer()
666 if (TS_CMP(&now, &rao->rao_expire, in rtsol_check_timer()
694 TS_SUB(&rtsol_timer, &now, &returnval); in rtsol_check_timer()
696 now.tv_sec += returnval.tv_sec; in rtsol_check_timer()
697 now.tv_nsec += returnval.tv_nsec; in rtsol_check_timer()
699 sec2str(&now)); in rtsol_check_timer()
710 struct timespec now; in rtsol_timer_update() local
767 now.tv_sec += ifi->timer.tv_sec; in rtsol_timer_update()
768 now.tv_nsec += ifi->timer.tv_nsec; in rtsol_timer_update()
[all …]
/freebsd/contrib/libbegemot/
H A Drpoll.c495 tval_t now; in poll_dispatch() local
518 now = GETUSECS(); in poll_dispatch()
521 fprintf(stderr, "now=%llu", now); in poll_dispatch()
524 i, tfd[i]->when - now); in poll_dispatch()
527 if((tout = tims[tfd[0]].when - now) < 0) in poll_dispatch()
613 now = GETUSECS(); in poll_dispatch()
617 if(tims[tfd[i]].when > now) in poll_dispatch()
625 tims[tfd[i]].when = now + tims[tfd[i]].usecs; in poll_dispatch()
639 struct timeval start, now; variable
648 gettimeofday(&now, NULL); in elaps()
[all …]
/freebsd/sys/dev/filemon/
H A Dfilemon.c192 struct timeval now; in filemon_write_header() local
194 getmicrotime(&now); in filemon_write_header()
198 FILEMON_VERSION, curproc->p_pid, (uintmax_t)now.tv_sec, in filemon_write_header()
199 (uintmax_t)now.tv_usec, FILEMON_VERSION); in filemon_write_header()
254 struct timeval now; in filemon_close_log() local
261 getmicrotime(&now); in filemon_close_log()
266 (uintmax_t)now.tv_sec, (uintmax_t)now.tv_usec); in filemon_close_log()
/freebsd/crypto/openssl/test/
H A Dx509_time_test.c278 time_t now = time(NULL); in test_x509_cmp_time_current() local
283 asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_x509_cmp_time_current()
284 asn1_after = ASN1_TIME_adj(NULL, now, 1, 0); in test_x509_cmp_time_current()
324 time_t now = time(NULL); in test_X509_cmp_timeframe() local
325 ASN1_TIME *asn1_mid = ASN1_TIME_adj(NULL, now, 0, 0); in test_X509_cmp_timeframe()
327 ASN1_TIME *asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_X509_cmp_timeframe()
328 ASN1_TIME *asn1_after = ASN1_TIME_adj(NULL, now, 1, 0); in test_X509_cmp_timeframe()
337 X509_VERIFY_PARAM_set_time(vpm, now); in test_X509_cmp_timeframe()
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_format_newc.c86 time_t t, t2, now; in DEFINE_TEST() local
165 now = time(NULL); /* They were all created w/in last two seconds. */ in DEFINE_TEST()
210 failure("t=%#08jx now=%#08jx=%jd", (intmax_t)t, (intmax_t)now, in DEFINE_TEST()
211 (intmax_t)now); in DEFINE_TEST()
212 assert(t <= now); /* File wasn't created in future. */ in DEFINE_TEST()
213 failure("t=%#08jx now - 2=%#08jx=%jd", (intmax_t)t, (intmax_t)now - 2, in DEFINE_TEST()
214 (intmax_t)now - 2); in DEFINE_TEST()
215 assert(t >= now - 2); /* File was created w/in last 2 secs. */ in DEFINE_TEST()

12345678910>>...59