bin/ksh/mail.c
50
time_t now;
bin/ksh/mail.c
54
now = time((time_t *) 0);
bin/ksh/mail.c
56
mlastchkd = now;
bin/ksh/mail.c
57
if (now - mlastchkd >= mailcheck_interval) {
bin/ksh/mail.c
58
mlastchkd = now;
bin/ls/print.c
136
now = time(NULL);
bin/ls/print.c
419
else if (ftime + SIXMONTHS > now && ftime - SIXMONTHS < now)
bin/ls/print.c
78
static time_t now;
bin/pax/ar_subs.c
200
time_t now;
bin/pax/ar_subs.c
214
now = time(NULL);
bin/pax/ar_subs.c
255
ls_list(arcn, now, stdout);
bin/pax/ar_subs.c
301
time_t now;
bin/pax/ar_subs.c
313
now = time(NULL);
bin/pax/ar_subs.c
433
ls_list(arcn, now, listf);
bin/pax/ar_subs.c
544
time_t now;
bin/pax/ar_subs.c
560
now = time(NULL);
bin/pax/ar_subs.c
658
ls_list(arcn, now, listf);
bin/pax/gen_subs.c
110
ls_list(ARCHD *arcn, time_t now, FILE *fp)
bin/ps/print.c
108
static time_t now;
bin/ps/print.c
805
if (now == 0)
bin/ps/print.c
806
(void)time(&now);
bin/ps/print.c
807
if (now - k->p_ustart_sec < SECSPERDAY)
bin/ps/print.c
809
else if (now - k->p_ustart_sec < DAYSPERWEEK * SECSPERDAY)
bin/ps/print.c
868
if (now == 0)
bin/ps/print.c
869
(void)time(&now);
bin/ps/print.c
870
origseconds = now - k->p_ustart_sec;
bin/sh/var.c
1592
time_t now;
bin/sh/var.c
1605
(void)time(&now);
bin/sh/var.c
1621
tmp = localtime_rz(zone, &now, &tm_now);
bin/sh/var.c
1623
tmp = localtime_r(&now, &tm_now);
bin/sleep/sleep.c
178
if (clock_gettime(CLOCK_MONOTONIC, &now) != 0)
bin/sleep/sleep.c
180
timespecadd(&now, &ntime, &endtime);
bin/sleep/sleep.c
182
if (endtime.tv_sec < now.tv_sec || (endtime.tv_sec == now.tv_sec &&
bin/sleep/sleep.c
183
endtime.tv_nsec <= now.tv_nsec))
bin/sleep/sleep.c
200
if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */
bin/sleep/sleep.c
203
timespecsub(&endtime, &now, &ntime);
bin/sleep/sleep.c
79
struct timespec now;
common/dist/zlib/examples/gzlog.c
720
time_t now;
common/dist/zlib/examples/gzlog.c
723
now = time(NULL);
common/dist/zlib/examples/gzlog.c
728
fprintf(rec, "%.24s %s recovery: %s\n", ctime(&now), op == APPEND_OP ?
crypto/dist/ipsec-tools/src/racoon/handler.c
1024
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/handler.c
1025
timersub(&now, &r->time_send, &diff);
crypto/dist/ipsec-tools/src/racoon/handler.c
1055
r->time_send = now;
crypto/dist/ipsec-tools/src/racoon/handler.c
1143
struct timeval now, diff, sweep;
crypto/dist/ipsec-tools/src/racoon/handler.c
1145
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/handler.c
1150
timersub(&now, &diff, &sweep);
crypto/dist/ipsec-tools/src/racoon/handler.c
992
struct timeval now, diff;
crypto/dist/ipsec-tools/src/racoon/schedule.c
106
struct timeval now;
crypto/dist/ipsec-tools/src/racoon/schedule.c
109
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/schedule.c
111
timercmp(&TAILQ_FIRST(&sctree)->xtime, &now, <=)) {
crypto/dist/ipsec-tools/src/racoon/schedule.c
124
timersub(&p->xtime, &now, &timeout);
crypto/dist/ipsec-tools/src/racoon/schedule.c
137
struct timeval now;
crypto/dist/ipsec-tools/src/racoon/schedule.c
145
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/schedule.c
146
timeradd(&now, &sc->tick, &sc->xtime);
crypto/dist/ipsec-tools/src/racoon/schedule.c
180
struct timeval now, created;
crypto/dist/ipsec-tools/src/racoon/schedule.c
201
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/schedule.c
207
dst->created = sched_monotonic_to_time_t(&created, &now);
crypto/dist/ipsec-tools/src/racoon/schedule.c
79
sched_monotonic_to_time_t(struct timeval *tv, struct timeval *now __unused)
crypto/dist/ipsec-tools/src/racoon/schedule.c
84
if (now == NULL) {
crypto/dist/ipsec-tools/src/racoon/schedule.c
86
now = &mynow;
crypto/dist/ipsec-tools/src/racoon/schedule.c
88
timersub(now, tv, &res);
crypto/dist/ipsec-tools/src/racoon/schedule.h
87
time_t sched_monotonic_to_time_t(struct timeval *tv, struct timeval *now);
crypto/dist/ipsec-tools/src/racoon/throttle.c
131
timersub(&te->penalty_ends, &now, &remaining);
crypto/dist/ipsec-tools/src/racoon/throttle.c
139
timeradd(&now, &res, &te->penalty_ends);
crypto/dist/ipsec-tools/src/racoon/throttle.c
143
timersub(&te->penalty_ends, &now, &res);
crypto/dist/ipsec-tools/src/racoon/throttle.c
61
struct timeval now, penalty;
crypto/dist/ipsec-tools/src/racoon/throttle.c
71
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/throttle.c
74
timeradd(&now, &penalty, &te->penalty_ends);
crypto/dist/ipsec-tools/src/racoon/throttle.c
86
struct timeval now, res;
crypto/dist/ipsec-tools/src/racoon/throttle.c
92
sched_get_monotonic_time(&now);
crypto/dist/ipsec-tools/src/racoon/throttle.c
98
if (timercmp(&te->penalty_ends, &now, <)) {
games/adventure/save.c
666
struct timespec now;
games/adventure/save.c
688
clock_gettime(CLOCK_REALTIME, &now);
games/adventure/save.c
689
key = (uint32_t)(now.tv_sec & 0xffffffff) ^ (uint32_t)(now.tv_nsec);
games/backgammon/backgammon/move.c
254
struct BOARD *now; /* current position */
games/backgammon/backgammon/move.c
256
now = nextfree(); /* get free BOARD */
games/backgammon/backgammon/move.c
260
now->b_board[i] = board[i];
games/backgammon/backgammon/move.c
261
now->b_in[0] = in[0];
games/backgammon/backgammon/move.c
262
now->b_in[1] = in[1];
games/backgammon/backgammon/move.c
263
now->b_off[0] = off[0];
games/backgammon/backgammon/move.c
264
now->b_off[1] = off[1];
games/backgammon/backgammon/move.c
266
now->b_st[i] = mm->p[i];
games/backgammon/backgammon/move.c
267
now->b_fn[i] = mm->g[i];
games/backgammon/backgammon/move.c
269
return (now);
games/backgammon/backgammon/move.c
382
struct BOARD *now = bsave(mm);
games/backgammon/backgammon/move.c
399
boardcopy(mm, now);
games/canfield/canfield/canfield.c
1112
time_t now;
games/canfield/canfield/canfield.c
1115
time(&now);
games/canfield/canfield/canfield.c
1116
dollars = (now - acctstart) / secondsperdollar;
games/ching/castching/castching.c
63
static time_t now; /* current time */
games/ching/castching/castching.c
83
time(&now);
games/ching/castching/castching.c
85
seed = (int)now + getquest() + getgid() + getuid() + getpid();
games/dm/dm.c
172
ct = localtime(&now);
games/dm/dm.c
323
fprintf(lp, "\t%s\t%s\t%s", game, gametty, ctime(&now));
games/dm/dm.c
64
static time_t now; /* current time value */
games/dm/dm.c
96
(void)time(&now);
games/phantasia/gamesupport.c
31
time_t now; /* time now */
games/phantasia/gamesupport.c
75
time(&now);
games/phantasia/gamesupport.c
76
today = localtime(&now)->tm_yday;
games/pom/pom.c
101
if (time(&now) == (time_t)-1)
games/pom/pom.c
109
tmpt = now;
games/pom/pom.c
113
if (tmpt < now)
games/pom/pom.c
115
else if (tmpt == now)
games/pom/pom.c
97
time_t tmpt, now;
games/tetris/scores.c
664
(void)time(&now);
games/tetris/scores.c
681
sp->hs_time = now; /* and time */
games/tetris/scores.c
686
sp->hs_time = now; /* renew it */
games/tetris/scores.c
695
sp->hs_time = now;
games/tetris/scores.c
80
static time_t now;
games/tetris/scores.c
820
sp->hs_time + EXPIRATION >= now) ||
lib/libc/gen/syslog.c
85
time_t now;
lib/libc/gen/syslog.c
95
now = (time_t) tv.tv_sec;
lib/libc/gen/syslog.c
96
localtime_r(&now, &tmnow);
lib/libc/gen/syslog_ss.c
52
gmtime_r(&now, &tmnow);
lib/libc/isc/ev_timers.c
125
struct timeval now;
lib/libc/isc/ev_timers.c
139
if (gettimeofday(&now, NULL) < 0)
lib/libc/isc/ev_timers.c
141
return (evTimeSpec(now));
lib/libc/isc/ev_timers.c
146
struct timeval now;
lib/libc/isc/ev_timers.c
152
if (gettimeofday(&now, NULL) < 0)
lib/libc/isc/ev_timers.c
154
return (evTimeSpec(now));
lib/libc/resolv/res_init.c
760
struct timeval now;
lib/libc/resolv/res_init.c
765
gettimeofday(&now, NULL);
lib/libc/resolv/res_init.c
766
u32 = (uint32_t)now.tv_sec;
lib/libc/resolv/res_init.c
768
u32 = now.tv_usec;
lib/libc/resolv/res_init.c
770
u32 += (uint32_t)now.tv_sec;
lib/libc/resolv/res_init.c
779
struct timeval now;
lib/libc/resolv/res_init.c
784
gettimeofday(&now, NULL);
lib/libc/resolv/res_init.c
785
u16 = (uint16_t) (now.tv_sec ^ now.tv_usec);
lib/libc/resolv/res_send.c
1003
timeout = evSubTime(finish, now);
lib/libc/resolv/res_send.c
876
struct timespec now, timeout, finish;
lib/libc/resolv/res_send.c
982
now = evNowTime();
lib/libc/resolv/res_send.c
984
finish = evAddTime(now, timeout);
lib/libc/resolv/res_send.c
987
now = evNowTime();
lib/libc/resolv/res_send.c
990
if (evCmpTime(finish, now) > 0)
lib/libc/resolv/res_send.c
991
timeout = evSubTime(finish, now);
lib/libc/rpc/auth_unix.c
111
struct timeval now;
lib/libc/rpc/auth_unix.c
143
(void)gettimeofday(&now, NULL);
lib/libc/rpc/auth_unix.c
144
aup.aup_time = (u_long)now.tv_sec; /* XXX: truncate on 32 bit */
lib/libc/rpc/auth_unix.c
289
struct timeval now;
lib/libc/rpc/auth_unix.c
311
(void)gettimeofday(&now, NULL);
lib/libc/rpc/auth_unix.c
312
aup.aup_time = (u_long)now.tv_sec; /* XXX: truncate on 32 bit */
lib/libc/time/getdate.c
122
time(&now);
lib/libc/time/getdate.c
123
tmp = localtime(&now);
lib/libc/time/getdate.c
70
time_t now;
lib/libc/time/localtime.c
1949
fresh_tzdata(monotime_t now)
lib/libc/time/localtime.c
1954
if (last_checked && now - last_checked < tz_change_interval)
lib/libc/time/localtime.c
1956
last_checked = now;
lib/libc/time/localtime.c
2012
tzset_unlocked(bool threaded, bool wall, monotime_t now)
lib/libc/time/localtime.c
2044
if ((tz_change_interval <= 0 ? tz_change_interval < 0 : fresh_tzdata(now))
lib/libc/time/localtime.c
2086
struct timespec now;
lib/libc/time/localtime.c
2087
now.tv_sec = 0;
lib/libc/time/localtime.c
2090
clock_gettime(CLOCK_MONOTONIC_COARSE, &now);
lib/libc/time/localtime.c
2091
return now.tv_sec;
lib/libc/time/localtime.c
2101
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
2107
tzset_unlocked(!err, false, now);
lib/libc/time/localtime.c
2115
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
2121
tzset_unlocked(!err, true, now);
lib/libc/time/localtime.c
2358
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
2365
tzset_unlocked(!err, false, now);
lib/libc/time/localtime.c
3127
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
3134
tzset_unlocked(!err, false, now);
lib/libc/time/localtime.c
3273
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
3280
tzset_unlocked(!err, false, now);
lib/libc/time/localtime.c
3316
monotime_t now = get_monotonic_time();
lib/libc/time/localtime.c
3323
tzset_unlocked(!err, false, now);
lib/libc/time/strftime.c
792
time_t now = __lcl_get_monotonic_time();
lib/libc/time/strftime.c
798
tzset_unlocked(!err, false, now);
lib/libc/time/strftime.c
812
time_t now = __lcl_get_monotonic_time();
lib/libc/time/strftime.c
818
tzset_unlocked(!err, false, now);
lib/libc/time/zdump.c
419
time_t now;
lib/libc/time/zdump.c
516
now = 0;
lib/libc/time/zdump.c
518
now = time(NULL);
lib/libc/time/zdump.c
519
now |= !now;
lib/libc/time/zdump.c
544
if (now) {
lib/libc/time/zdump.c
545
show(tz, argv[i], now, false);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
118
struct timeval now;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
172
(void)gettimeofday(&now, NULL);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
188
doutmpx(user, rhost, tty, ss, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
189
dolastlogx(pamh, quiet, pwd, rhost, tty, ss, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
193
doutmp(user, rhost, tty, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
194
dolastlog(pamh, quiet, pwd, rhost, tty, &now);
lib/libpam/modules/pam_lastlog/pam_lastlog.c
272
const struct sockaddr_storage *ss, const struct timeval *now)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
278
utmpx.ut_tv = *now;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
305
const struct timeval *now)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
314
ll.ll_tv = *now;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
336
const struct timeval *now)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
341
utmp.ut_time = now->tv_sec;
lib/libpam/modules/pam_lastlog/pam_lastlog.c
351
const char *hostname, const char *tty, const struct timeval *now)
lib/libpam/modules/pam_lastlog/pam_lastlog.c
372
ll.ll_time = now->tv_sec;
lib/libpam/modules/pam_unix/pam_unix.c
149
struct timeval now;
lib/libpam/modules/pam_unix/pam_unix.c
180
(void) gettimeofday(&now, NULL);
lib/libpam/modules/pam_unix/pam_unix.c
192
if (now.tv_sec >= pwd->pw_expire) {
lib/libpam/modules/pam_unix/pam_unix.c
195
} else if (pwd->pw_expire - now.tv_sec < warntime &&
lib/libpam/modules/pam_unix/pam_unix.c
204
if (now.tv_sec >= pwd->pw_change) {
lib/libpam/modules/pam_unix/pam_unix.c
207
} else if (pwd->pw_change - now.tv_sec < warntime &&
lib/libperfuse/ops.c
366
struct timespec now;
lib/libperfuse/ops.c
377
if (clock_gettime(CLOCK_REALTIME, &now) != 0)
lib/libperfuse/ops.c
380
timespecadd(&now, &cn_ttl, &pnd->pnd_cn_expire);
lib/libquota/quota_nfs.c
76
struct timeval now;
lib/libquota/quota_nfs.c
78
gettimeofday(&now, NULL);
lib/libquota/quota_nfs.c
84
blocks->qv_expiretime = rq->rq_btimeleft + now.tv_sec;
lib/libquota/quota_nfs.c
91
files->qv_expiretime = rq->rq_ftimeleft + now.tv_sec;
lib/librumpuser/rumpfiber.c
148
tm = now();
lib/librumpuser/rumpfiber.c
329
thread->wakeup_time = now() + millisecs;
lib/librumpuser/rumpfiber.c
353
thread->wakeup_time = now() + (millisecs - real_now);
lib/librumpuser/rumpfiber.c
605
w.who->wakeup_time = now() + msec;
lib/librumpuser/rumpfiber.c
98
static int64_t now(void);
lib/libskey/skeylogin.c
246
time_t now;
lib/libskey/skeylogin.c
252
time(&now);
lib/libskey/skeylogin.c
253
tm = localtime(&now);
lib/libutil/parsedate.y
1144
parsedate(const char *p, const time_t *now, const int *zone)
lib/libutil/parsedate.y
1158
if (now == NULL) {
lib/libutil/parsedate.y
1159
now = &nowt;
lib/libutil/parsedate.y
1165
if ((tm = localtime_r(now, &local)) == NULL)
lib/libutil/parsedate.y
1174
time_t fake = *now + (*zone * 60);
lib/libutil/parsedate.y
1295
Start = *now;
lib/libutil/parsedate.y
884
time_t now;
lib/libutil/parsedate.y
887
now = Start;
lib/libutil/parsedate.y
888
if (localtime_r(&now, &tm) == NULL)
lib/libutil/parsedate.y
901
if ((change > 0 && LLONG_MAX - change < now) ||
lib/libutil/parsedate.y
902
(change < 0 && LLONG_MIN - change > now)) {
lib/libutil/parsedate.y
907
now += change;
lib/libutil/parsedate.y
908
return DSTcorrect(Start, now);
libexec/atrun/atrun.c
393
time_t now, run_time;
libexec/atrun/atrun.c
464
now = time(NULL);
libexec/atrun/atrun.c
488
if ((S_IXUSR & buf.st_mode) && (run_time <= now)) {
libexec/atrun/atrun.c
505
if ((run_time < now) && !(S_IXUSR & buf.st_mode) &&
libexec/ftpd/conf.c
521
time_t now, then;
libexec/ftpd/conf.c
569
time(&now);
libexec/ftpd/conf.c
581
t = localtime(&now);
libexec/ftpd/conf.c
599
time_t now;
libexec/ftpd/conf.c
681
now = time(NULL);
libexec/ftpd/conf.c
682
cprintf(stdout, "%.24s", ctime(&now));
libexec/ftpd/ftpd.c
2115
struct timeval now, td;
libexec/ftpd/ftpd.c
2144
(void)gettimeofday(&now, NULL);
libexec/ftpd/ftpd.c
2145
timersub(&now, then, &td);
libexec/ftpd/ftpd.c
2150
*then = now;
libexec/ftpd/ftpd.c
2435
struct timeval then, now, td;
libexec/ftpd/ftpd.c
2457
(void)gettimeofday(&now, NULL);
libexec/ftpd/ftpd.c
2458
timersub(&now, &then, &td);
libexec/ftpd/ftpd.c
3602
time_t now;
libexec/ftpd/ftpd.c
3649
time(&now);
libexec/ftpd/ftpd.c
3658
ctime(&now),
libexec/ftpd/ftpd.c
3718
time_t change, expire, now;
libexec/ftpd/ftpd.c
3724
time(&now);
libexec/ftpd/ftpd.c
3729
change = now;
libexec/ftpd/ftpd.c
3738
if ((expire && now >= expire) || (change && now >= change))
libexec/httpd/bozohttpd.c
272
time_t now;
libexec/httpd/bozohttpd.c
275
now = time(NULL);
libexec/httpd/bozohttpd.c
276
tm = gmtime(&now); /* HTTP/1.1 spec rev 06 sez GMT only */
libexec/ld.elf_so/rtld.c
1521
bool now;
libexec/ld.elf_so/rtld.c
1533
now = ((mode & RTLD_MODEMASK) == RTLD_NOW) ? true : false;
libexec/ld.elf_so/rtld.c
1560
(now || obj->z_now)) == -1) {
libexec/lfs_cleanerd/lfs_cleanerd.c
289
time_t now;
libexec/lfs_cleanerd/lfs_cleanerd.c
292
time(&now);
libexec/lfs_cleanerd/lfs_cleanerd.c
293
age = (now < t->lastmod ? 0 : now - t->lastmod);
libexec/lfs_cleanerd/lfs_cleanerd.c
603
time_t now;
libexec/lfs_cleanerd/lfs_cleanerd.c
688
time(&now);
libexec/lfs_cleanerd/lfs_cleanerd.c
694
if (now - st.st_mtime > segwait_timeout &&
libexec/lfs_cleanerd/lfs_cleanerd.c
697
lfs_sb_getfsmnt(fs), (int)(now - st.st_mtime));
libexec/rpc.rquotad/rquotad.c
174
time_to_rquota(time_t when, time_t now)
libexec/rpc.rquotad/rquotad.c
179
return when - now;
libexec/rpc.rquotad/rquotad.c
191
struct timeval now;
libexec/rpc.rquotad/rquotad.c
193
gettimeofday(&now, NULL);
libexec/rpc.rquotad/rquotad.c
201
rq->rq_btimeleft = time_to_rquota(blocks->qv_expiretime, now.tv_sec);
libexec/rpc.rquotad/rquotad.c
206
rq->rq_ftimeleft = time_to_rquota(files->qv_expiretime, now.tv_sec);
libexec/rpc.rusersd/rusers_proc.c
144
time_t now;
libexec/rpc.rusersd/rusers_proc.c
166
(void)time(&now);
libexec/rpc.rusersd/rusers_proc.c
169
(long)now, (long)st.st_atime);
libexec/rpc.rusersd/rusers_proc.c
171
idle = now - st.st_atime;
regress/sys/kern/kqueue/vnode/vnode.c
100
timersub(&now, &then, &diff);
regress/sys/kern/kqueue/vnode/vnode.c
48
struct timeval then, now, diff;
regress/sys/kern/kqueue/vnode/vnode.c
98
if (gettimeofday(&now, NULL) == -1)
sbin/efi/devpath3.c
626
From: RFC3232 says everything is now online, found here:
sbin/fsck_udf/main.c
230
time_t now;
sbin/fsck_udf/main.c
234
now = clock.tv_sec;
sbin/fsck_udf/main.c
244
if (ftime + SIXMONTHS > now && ftime - SIXMONTHS < now)
sbin/ifconfig/ifconfig.c
534
struct timespec now, end_det, end;
sbin/ifconfig/ifconfig.c
543
if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
sbin/ifconfig/ifconfig.c
545
timespecadd(&now, &tent, &end);
sbin/ifconfig/ifconfig.c
547
timespecadd(&now, &det, &end_det);
sbin/ifconfig/ifconfig.c
568
timespeccmp(&now, &end_det, <) &&
sbin/ifconfig/ifconfig.c
581
if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
sbin/ifconfig/ifconfig.c
583
if (timespeccmp(&now, &end, >))
sbin/mount_msdos/mount_msdos.c
181
time(&now);
sbin/mount_msdos/mount_msdos.c
182
tm = localtime(&now);
sbin/mount_msdos/mount_msdos.c
90
time_t now;
sbin/mount_nilfs/mount_nilfs.c
105
time_t now;
sbin/mount_nilfs/mount_nilfs.c
141
(void)time(&now);
sbin/mount_nilfs/mount_nilfs.c
142
tm = localtime(&now);
sbin/mount_udf/mount_udf.c
105
time_t now;
sbin/mount_udf/mount_udf.c
164
(void)time(&now);
sbin/mount_udf/mount_udf.c
165
tm = localtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
262
time_t now;
sbin/newfs_msdos/mkfs_msdos.c
634
tv.tv_sec = now = o.timestamp;
sbin/newfs_msdos/mkfs_msdos.c
636
tm = gmtime(&now);
sbin/newfs_msdos/mkfs_msdos.c
639
now = tv.tv_sec;
sbin/newfs_msdos/mkfs_msdos.c
640
tm = localtime(&now);
sbin/newfs_udf/newfs_udf.c
143
time_t now;
sbin/newfs_udf/newfs_udf.c
173
(void)time(&now);
sbin/newfs_udf/newfs_udf.c
174
tm = localtime(&now);
sbin/newfs_udf/udf_core.c
1004
struct timespec now;
sbin/newfs_udf/udf_core.c
1007
(void)clock_gettime(CLOCK_REALTIME, &now);
sbin/newfs_udf/udf_core.c
1012
now.tv_sec = time_of_day.tv_sec;
sbin/newfs_udf/udf_core.c
1013
now.tv_nsec = time_of_day.tv_usec * 1000;
sbin/newfs_udf/udf_core.c
1015
udf_timespec_to_timestamp(&now, timestamp);
sbin/ping/ping.c
1005
} while (diffsec(&next_tx, &now) < -0.1);
sbin/ping/ping.c
1101
last_rx = now;
sbin/ping/ping.c
205
static struct timespec now, clear_cache, last_tx, next_tx, first_tx;
sbin/ping/ping.c
729
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
756
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
759
d_last = last - timespec_to_sec(&now);
sbin/ping/ping.c
763
sec = diffsec(&next_tx, &now);
sbin/ping/ping.c
767
sec = diffsec(&next_tx, &now);
sbin/ping/ping.c
780
diffsec(&now, &last_tx);
sbin/ping/ping.c
817
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
856
jiggle_time = now;
sbin/ping/ping.c
911
if (clear_cache.tv_sec != now.tv_sec) {
sbin/ping/ping.c
946
tv32.tv32_sec = (uint32_t)htonl(now.tv_sec);
sbin/ping/ping.c
947
tv32.tv32_usec = htonl(now.tv_nsec / 1000);
sbin/ping/ping.c
950
(void) memcpy(&opack_icmp.icmp_data[0], &now, sizeof(now));
sbin/ping/ping.c
973
last_tx = now;
sbin/ping/ping.c
975
first_tx = now;
sbin/ping/ping.c
976
next_tx = now;
sbin/ping/ping.c
984
waittime = diffsec(&next_tx, &now);
sbin/ping6/ping6.c
1182
last_tx = now;
sbin/ping6/ping6.c
1184
first_tx = now;
sbin/ping6/ping6.c
1185
next_tx = now;
sbin/ping6/ping6.c
1193
if (diffsec(&next_tx, &now) <= interval.tv_sec) {
sbin/ping6/ping6.c
1196
} while (diffsec(&next_tx, &now) < -0.1);
sbin/ping6/ping6.c
219
static struct timespec now, last_tx, next_tx, first_tx;
sbin/ping6/ping6.c
919
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping6/ping6.c
921
last = timespec_to_sec(&now) + deadline;
sbin/ping6/ping6.c
933
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping6/ping6.c
948
d_last = last - timespec_to_sec(&now);
sbin/ping6/ping6.c
952
sec = diffsec(&next_tx, &now);
sbin/ping6/ping6.c
956
sec = diffsec(&next_tx, &now);
sbin/ping6/ping6.c
968
diffsec(&now, &last_tx);
sbin/route/route.c
1149
time_t now;
sbin/route/route.c
1155
now = time(NULL);
sbin/route/route.c
1156
(void)printf("got message of size %d on %s", n, ctime(&now));
sbin/routed/defs.h
472
extern struct timeval now; /* current idea of time */
sbin/routed/if.c
1005
if (now.tv_sec < ifp->int_data.ts+CHECK_BAD_INTERVAL)
sbin/routed/if.c
1026
now.tv_sec+CHECK_BAD_INTERVAL);
sbin/routed/if.c
1063
ifp->int_act_time = now.tv_sec;
sbin/routed/if.c
1222
LIM_SEC(ifinit_timer, now.tv_sec+CHECK_BAD_INTERVAL);
sbin/routed/if.c
1373
new.rts_time = now.tv_sec;
sbin/routed/if.c
554
LIM_SEC(ifinit_timer, now.tv_sec+CHECK_BAD_INTERVAL);
sbin/routed/if.c
570
LIM_SEC(ifinit_timer, now.tv_sec+CHECK_BAD_INTERVAL);
sbin/routed/if.c
575
ifp->int_data.ts = now.tv_sec;
sbin/routed/if.c
710
last_ifinit = now;
sbin/routed/if.c
711
ifinit_timer.tv_sec = now.tv_sec + (supplier
sbin/routed/if.c
767
ifs0.int_act_time = now.tv_sec;
sbin/routed/if.c
768
ifs0.int_data.ts = now.tv_sec;
sbin/routed/if.c
80
#define IF_RESCAN_DELAY() (last_ifinit.tv_sec == now.tv_sec \
sbin/routed/if.c
81
&& last_ifinit.tv_usec == now.tv_usec \
sbin/routed/if.c
82
&& timercmp(&ifinit_timer, &now, >))
sbin/routed/if.c
984
} else if (now.tv_sec>(ifp->int_data.ts
sbin/routed/if.c
989
(long long)now.tv_sec -
sbin/routed/input.c
163
aifp->int_act_time = now.tv_sec;
sbin/routed/input.c
218
aifp->int_act_time = now.tv_sec;
sbin/routed/input.c
527
aifp->int_act_time = now.tv_sec;
sbin/routed/input.c
757
new.rts_time = now.tv_sec;
sbin/routed/main.c
129
now.tv_sec = EPOCH;
sbin/routed/main.c
381
timevalsub(&now, &clk, &epoch);
sbin/routed/main.c
382
now_stale = now.tv_sec - STALE_TIME;
sbin/routed/main.c
383
now_expire = now.tv_sec - EXPIRE_TIME;
sbin/routed/main.c
384
now_garbage = now.tv_sec - GARBAGE_TIME;
sbin/routed/main.c
397
timevalsub(&wtime, &ifinit_timer, &now);
sbin/routed/main.c
408
timevalsub(&t2, &flush_kern_timer, &now);
sbin/routed/main.c
411
flush_kern_timer.tv_sec = (now.tv_sec
sbin/routed/main.c
421
timevalsub(&t2, &next_bcast, &now);
sbin/routed/main.c
460
if (!timercmp(&no_flash, &now, >))
sbin/routed/main.c
462
timevalsub(&t2, &no_flash, &now);
sbin/routed/main.c
469
timevalsub(&t2, &age_timer, &now);
sbin/routed/main.c
479
timevalsub(&t2, &need_kern, &now);
sbin/routed/main.c
490
if (!timercmp(&rdisc_timer, &now, >)) {
sbin/routed/main.c
494
timevalsub(&t2, &rdisc_timer, &now);
sbin/routed/main.c
548
ifinit_timer.tv_sec = now.tv_sec;
sbin/routed/main.c
77
struct timeval now; /* current idea of time */
sbin/routed/main.c
784
if (next_bcast.tv_sec < now.tv_sec+MIN_WAITTIME)
sbin/routed/main.c
785
next_bcast.tv_sec = now.tv_sec+MIN_WAITTIME;
sbin/routed/main.c
791
ifinit_timer.tv_sec = now.tv_sec;
sbin/routed/main.c
908
if (lim->reuse > now.tv_sec) {
sbin/routed/main.c
912
lim->reuse = now.tv_sec + 10*60;
sbin/routed/main.c
920
if (ms->until > now.tv_sec)
sbin/routed/main.c
929
ms->until = now.tv_sec + 60*60; /* 60 minutes */
sbin/routed/output.c
648
RT->rt_poison_time = now.tv_sec;
sbin/routed/output.c
846
timevaladd(&no_flash, &now);
sbin/routed/output.c
997
ifp->int_query_time = now.tv_sec+SUPPLY_INTERVAL;
sbin/routed/rdisc.c
284
LIM_SEC(rdisc_timer, now.tv_sec+MIN_WAITTIME);
sbin/routed/rdisc.c
294
ifp->int_rdisc_timer.tv_sec = now.tv_sec+MIN_WAITTIME;
sbin/routed/rdisc.c
341
sec = (now.tv_sec - drp->dr_life
sbin/routed/rdisc.c
397
ifp->int_rdisc_timer.tv_sec = now.tv_sec + (supplier
sbin/routed/rdisc.c
477
if (drp->dr_ts + drp->dr_life <= now.tv_sec) {
sbin/routed/rdisc.c
524
new.rts_time = now.tv_sec - GARBAGE_TIME;
sbin/routed/rdisc.c
552
new.rts_time = now.tv_sec;
sbin/routed/rdisc.c
659
new_drp->dr_ts = now.tv_sec;
sbin/routed/rdisc.c
840
rdisc_timer.tv_sec = now.tv_sec + NEVER;
sbin/routed/rdisc.c
846
if (!timercmp(&ifp->int_rdisc_timer, &now, >)
sbin/routed/rdisc.c
861
timevaladd(&ifp->int_rdisc_timer, &now);
sbin/routed/rdisc.c
882
rdisc_timer.tv_sec = now.tv_sec + NEVER;
sbin/routed/rdisc.c
889
if (!timercmp(&ifp->int_rdisc_timer, &now, >)) {
sbin/routed/rdisc.c
903
timevaladd(&ifp->int_rdisc_timer, &now);
sbin/routed/rtquery/rtquery.c
385
struct timeval now, delay;
sbin/routed/rtquery/rtquery.c
497
if (gettimeofday(&now, 0) < 0) {
sbin/routed/rtquery/rtquery.c
501
if (sent.tv_sec + wtime <= now.tv_sec)
sbin/routed/table.c
1224
if (ifinit_timer.tv_sec-now.tv_sec>=CHECK_BAD_INTERVAL
sbin/routed/table.c
1228
ifinit_timer.tv_sec = now.tv_sec;
sbin/routed/table.c
1526
if (k->k_keep > now.tv_sec) {
sbin/routed/table.c
1596
k->k_keep = now.tv_sec + K_KEEP_LIM;
sbin/routed/table.c
1630
need_kern.tv_sec = now.tv_sec;
sbin/routed/table.c
1680
no_flash.tv_sec = now.tv_sec + MIN_WAITTIME;
sbin/routed/table.c
1749
rt->rt_time = now.tv_sec;
sbin/routed/table.c
1758
need_kern.tv_sec = now.tv_sec;
sbin/routed/table.c
1784
need_kern.tv_sec = now.tv_sec;
sbin/routed/table.c
1785
if (new->rts_time >= now.tv_sec - EXPIRE_TIME)
sbin/routed/table.c
1786
new->rts_time = now.tv_sec - EXPIRE_TIME;
sbin/routed/table.c
1793
need_kern.tv_sec = now.tv_sec;
sbin/routed/table.c
1803
new->rts_time = now.tv_sec;
sbin/routed/table.c
1880
need_kern.tv_sec = now.tv_sec;
sbin/routed/table.c
2059
rts->rts_time = now.tv_sec;
sbin/routed/table.c
2100
if (now.tv_sec - RT->rt_time > EXPIRE_TIME) {
sbin/routed/table.c
2120
age_timer.tv_sec = (now.tv_sec
sbin/routed/table.c
2140
&& now.tv_sec - ifp->int_act_time > EXPIRE_TIME) {
sbin/routed/table.c
2145
(long long)(now.tv_sec - ifp->int_act_time)/60,
sbin/routed/table.c
2146
(long long)(now.tv_sec - ifp->int_act_time)%60);
sbin/routed/table.c
2153
if (now.tv_sec >= ifp->int_query_time) {
sbin/routed/table.c
2166
del_redirects(bad_gate, now.tv_sec-STALE_TIME);
sbin/routed/table.c
818
k->k_keep = now.tv_sec;
sbin/routed/table.c
843
new.rts_time = now.tv_sec;
sbin/routed/table.c
908
k->k_keep = now.tv_sec+keep;
sbin/routed/table.c
958
k->k_redirect_time = now.tv_sec;
sbin/routed/trace.c
171
if (lastlog_time.tv_sec != now.tv_sec
sbin/routed/trace.c
172
|| lastlog_time.tv_usec != now.tv_usec) {
sbin/routed/trace.c
173
(void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
sbin/routed/trace.c
174
lastlog_time = now;
sbin/savecore/savecore.c
169
static time_t now; /* current date */
sbin/savecore/savecore.c
246
(void)time(&now);
sbin/savecore/savecore.c
850
if (dumptime < now - LEEWAY || dumptime > now + LEEWAY) {
sbin/shutdown/shutdown.c
445
time_t now;
sbin/shutdown/shutdown.c
448
(void)time(&now);
sbin/shutdown/shutdown.c
451
shuttime = now;
sbin/shutdown/shutdown.c
459
shuttime = now + offset;
sbin/shutdown/shutdown.c
476
lt = localtime(&now); /* current time val */
sbin/shutdown/shutdown.c
525
if ((offset = shuttime - now) < 0)
share/examples/refuse/ian/libfetch/common.c
381
struct timeval now, timeout, wait;
share/examples/refuse/ian/libfetch/common.c
396
gettimeofday(&now, NULL);
share/examples/refuse/ian/libfetch/common.c
397
wait.tv_sec = timeout.tv_sec - now.tv_sec;
share/examples/refuse/ian/libfetch/common.c
398
wait.tv_usec = timeout.tv_usec - now.tv_usec;
share/examples/refuse/ian/libfetch/common.c
507
struct timeval now, timeout, wait;
share/examples/refuse/ian/libfetch/common.c
522
gettimeofday(&now, NULL);
share/examples/refuse/ian/libfetch/common.c
523
wait.tv_sec = timeout.tv_sec - now.tv_sec;
share/examples/refuse/ian/libfetch/common.c
524
wait.tv_usec = timeout.tv_usec - now.tv_usec;
sys/altq/altq_blue.c
422
struct timeval now;
sys/altq/altq_blue.c
425
microtime(&now);
sys/altq/altq_blue.c
426
t = (now.tv_sec - rp->blue_last.tv_sec);
sys/altq/altq_blue.c
431
t = t * 1000000 + (now.tv_usec - rp->blue_last.tv_usec);
sys/altq/altq_blue.c
473
struct timeval now;
sys/altq/altq_blue.c
477
microtime(&now);
sys/altq/altq_blue.c
478
t = (now.tv_sec - rp->blue_last.tv_sec);
sys/altq/altq_blue.c
479
t = t * 1000000 + (now.tv_usec - rp->blue_last.tv_usec);
sys/altq/altq_cdnr.c
559
u_int64_t interval, now;
sys/altq/altq_cdnr.c
564
now = read_machclk();
sys/altq/altq_cdnr.c
565
interval = now - tbm->tb.last;
sys/altq/altq_cdnr.c
573
tbm->tb.last = now;
sys/altq/altq_cdnr.c
652
u_int64_t interval, now;
sys/altq/altq_cdnr.c
665
now = read_machclk();
sys/altq/altq_cdnr.c
667
interval = now - tcm->cmtd_tb.last;
sys/altq/altq_cdnr.c
675
tcm->cmtd_tb.last = now;
sys/altq/altq_cdnr.c
678
interval = now - tcm->peak_tb.last;
sys/altq/altq_cdnr.c
686
tcm->peak_tb.last = now;
sys/altq/altq_cdnr.c
778
u_int64_t interval, now, tmp;
sys/altq/altq_cdnr.c
784
now = read_machclk();
sys/altq/altq_cdnr.c
786
interval = now - tsw->t_front;
sys/altq/altq_cdnr.c
799
tsw->t_front = now;
sys/altq/altq_jobs.c
1279
u_int64_t now, oldest_arv;
sys/altq/altq_jobs.c
1284
now = read_machclk();
sys/altq/altq_jobs.c
1285
oldest_arv = now;
sys/altq/altq_jobs.c
1320
oldest_arv = now; /* NOTREACHED */
sys/altq/altq_jobs.c
1328
- (int64_t)delay_diff(now, oldest_arv);
sys/altq/altq_jobs.c
1662
u_int64_t now;
sys/altq/altq_jobs.c
1666
now = read_machclk();
sys/altq/altq_jobs.c
1672
return ((int64_t)delay_diff(now, tslist_first(cl->arv_tm)->timestamp));
sys/altq/altq_jobs.c
2120
u_int64_t now;
sys/altq/altq_jobs.c
2121
now = read_machclk();
sys/altq/altq_jobs.c
2143
sp->busylength = ticks_to_secs(1000*delay_diff(now, cl->idletime));
sys/altq/altq_jobs.c
266
u_int64_t now;
sys/altq/altq_jobs.c
441
now = read_machclk();
sys/altq/altq_jobs.c
442
cl->idletime = now;
sys/altq/altq_jobs.c
500
u_int64_t now;
sys/altq/altq_jobs.c
506
now = read_machclk();
sys/altq/altq_jobs.c
507
tstamp1 = now;
sys/altq/altq_jobs.c
529
scan->idletime = now;
sys/altq/altq_jobs.c
530
scan->cl_last_rate_update = now;
sys/altq/altq_jobs.c
562
scan->idletime = now;
sys/altq/altq_jobs.c
563
scan->cl_last_rate_update = now;
sys/altq/altq_jobs.c
584
scan->cl_last_rate_update = now; /* initial case */
sys/altq/altq_jobs.c
587
delay_diff(now, scan->cl_last_rate_update)
sys/altq/altq_jobs.c
597
scan->cl_last_rate_update = now;
sys/altq/altq_jobs.c
664
u_int64_t now;
sys/altq/altq_jobs.c
669
now = read_machclk();
sys/altq/altq_jobs.c
670
tstamp1 = now;
sys/altq/altq_jobs.c
677
cl->idletime = now;
sys/altq/altq_jobs.c
745
cl->cl_lastdel = (u_int64_t)delay_diff(now,
sys/altq/altq_jobs.c
776
u_int64_t now;
sys/altq/altq_jobs.c
783
now = read_machclk();
sys/altq/altq_jobs.c
839
tslist_enqueue(cl, now);
sys/altq/altq_jobs.c
880
tslist_enqueue(cl, now);
sys/altq/altq_jobs.c
914
tslist_enqueue(cl, now);
sys/altq/altq_red.c
1126
struct timeval *now)
sys/altq/altq_red.c
1139
tthresh.tv_sec = now->tv_sec - FV_TTHRESH;
sys/altq/altq_red.c
1332
struct timeval now;
sys/altq/altq_red.c
1335
FV_TIMESTAMP(&now);
sys/altq/altq_red.c
1337
if ((fve = flowlist_lookup(fv, pktattr, &now)) == NULL)
sys/altq/altq_red.c
1371
if (now.tv_sec - fve->fve_lastdrop.tv_sec > FV_BACKOFFTHRESH) {
sys/altq/altq_red.c
1381
fve->fve_lastdrop = now;
sys/altq/altq_red.c
1410
struct timeval now;
sys/altq/altq_red.c
1414
FV_TIMESTAMP(&now);
sys/altq/altq_red.c
1419
else if ((fve = flowlist_lookup(fv, pktattr, &now)) == NULL)
sys/altq/altq_red.c
1431
fve->fve_lastdrop = now;
sys/altq/altq_red.c
371
struct timeval now;
sys/altq/altq_red.c
375
microtime(&now);
sys/altq/altq_red.c
376
t = (now.tv_sec - rp->red_last.tv_sec);
sys/altq/altq_red.c
384
t = t * 1000000 + (now.tv_usec - rp->red_last.tv_usec);
sys/altq/altq_rio.c
336
struct timeval now;
sys/altq/altq_rio.c
346
now.tv_sec = 0;
sys/altq/altq_rio.c
352
if (now.tv_sec == 0)
sys/altq/altq_rio.c
353
microtime(&now);
sys/altq/altq_rio.c
354
t = (now.tv_sec - prec->last.tv_sec);
sys/altq/altq_rio.c
359
(now.tv_usec - prec->last.tv_usec);
sys/altq/altq_rmclass.c
1018
rmc_under_limit(cl, &now)) {
sys/altq/altq_rmclass.c
1101
ifd->now_[ifd->qi_] = now;
sys/altq/altq_rmclass.c
1124
struct timespec now;
sys/altq/altq_rmclass.c
1126
RM_GETTIME(now);
sys/altq/altq_rmclass.c
1153
rmc_under_limit(cl, &now))
sys/altq/altq_rmclass.c
1207
ifd->now_[ifd->qi_] = now;
sys/altq/altq_rmclass.c
1407
if ((qlen(cl->q_) <= 1) || TS_LT(&now, &borrowed->undertime_)) {
sys/altq/altq_rmclass.c
1410
rmc_tl_satisfied(ifd, &now);
sys/altq/altq_rmclass.c
752
struct timespec now;
sys/altq/altq_rmclass.c
757
RM_GETTIME(now);
sys/altq/altq_rmclass.c
759
if (TS_LT(&cl->undertime_, &now)) {
sys/altq/altq_rmclass.c
775
if (TS_LT(&borrow->undertime_, &now)) {
sys/altq/altq_rmclass.c
785
if (TS_LT(&cl->borrow_->undertime_, &now)) {
sys/altq/altq_rmclass.c
818
rmc_tl_satisfied(struct rm_ifdat *ifd, struct timespec *now)
sys/altq/altq_rmclass.c
827
if (!rmc_satisfied(p, now)) {
sys/altq/altq_rmclass.c
844
rmc_satisfied(struct rm_class *cl, struct timespec *now)
sys/altq/altq_rmclass.c
850
if (TS_LT(now, &cl->undertime_))
sys/altq/altq_rmclass.c
861
if (!rmc_satisfied(p, now))
sys/altq/altq_rmclass.c
877
rmc_under_limit(struct rm_class *cl, struct timespec *now)
sys/altq/altq_rmclass.c
892
if (!TS_LT(now, &cl->undertime_)) {
sys/altq/altq_rmclass.c
929
p->overtime_ = *now;
sys/altq/altq_rmclass.c
932
p->overtime_ = *now;
sys/altq/altq_rmclass.c
938
} while (cl->undertime_.tv_sec && TS_LT(now, &cl->undertime_));
sys/altq/altq_rmclass.c
969
struct timespec now;
sys/altq/altq_rmclass.c
971
RM_GETTIME(now);
sys/altq/altq_rmclass.c
983
rmc_under_limit(cl, &now) == 0)
sys/altq/altq_rmclass.h
58
#define RM_GETTIME(now) nanotime(&now)
sys/altq/altq_subr.c
255
u_int64_t now;
sys/altq/altq_subr.c
263
now = read_machclk();
sys/altq/altq_subr.c
264
interval = now - tbr->tbr_last;
sys/altq/altq_subr.c
272
tbr->tbr_last = now;
sys/arch/alpha/alpha/qemu.c
89
unsigned long now;
sys/arch/alpha/alpha/qemu.c
92
while ((now = qemu_get_vmtime()) < finished) {
sys/arch/alpha/alpha/qemu.c
97
if (finished - now > qemu_nsec_per_tick) {
sys/arch/arm/clps711x/clpssoc.c
273
int prev, now, remaining;
sys/arch/arm/clps711x/clpssoc.c
279
now = TC2D & UINT16_MAX;
sys/arch/arm/clps711x/clpssoc.c
280
if (now >= prev)
sys/arch/arm/clps711x/clpssoc.c
281
remaining -= (now - prev);
sys/arch/arm/clps711x/clpssoc.c
283
remaining -= (UINT16_MAX - now + prev + 1);
sys/arch/arm/clps711x/clpssoc.c
284
prev = now;
sys/arch/arm/cortex/a9tmr.c
183
uint64_t now = a9tmr_gettime(sc);
sys/arch/arm/cortex/a9tmr.c
187
ci->ci_lastintr = now;
sys/arch/arm/cortex/a9tmr.c
203
now += sc->sc_autoinc;
sys/arch/arm/cortex/a9tmr.c
204
a9tmr_global_write(sc, TMR_GBL_CMP_L, (uint32_t) now);
sys/arch/arm/cortex/a9tmr.c
205
a9tmr_global_write(sc, TMR_GBL_CMP_H, (uint32_t) (now >> 32));
sys/arch/arm/cortex/a9tmr.c
224
uint64_t when = now;
sys/arch/arm/cortex/a9tmr.c
226
while ((now = a9tmr_gettime(sc)) < when) {
sys/arch/arm/cortex/a9tmr.c
231
n, when - now);
sys/arch/arm/cortex/a9tmr.c
328
const uint64_t now = a9tmr_gettime(sc);
sys/arch/arm/cortex/a9tmr.c
329
uint64_t delta = now - ci->ci_lastintr;
sys/arch/arm/cortex/a9tmr.c
335
__func__, cf, ci->ci_data.cpu_name, now, delta);
sys/arch/arm/cortex/a9tmr.c
341
ci->ci_lastintr = now;
sys/arch/arm/cortex/gtmr.c
359
const uint64_t now = gtmr_read_cntct(sc);
sys/arch/arm/cortex/gtmr.c
360
uint64_t delta = now - ci->ci_lastintr;
sys/arch/arm/cortex/gtmr.c
367
KASSERTMSG(then <= now, "%"PRId64, now - then);
sys/arch/arm/cortex/gtmr.c
392
gtmr_write_cval(sc, now + sc->sc_autoinc - delta);
sys/arch/arm/cortex/gtmr.c
397
ci->ci_lastintr = now;
sys/arch/arm/imx/imx23_platform.c
125
uint32_t now;
sys/arch/arm/imx/imx23_platform.c
135
now = REG_RD(HW_DIGCTL_BASE + HW_DIGCTL_MICROSECONDS);
sys/arch/arm/imx/imx23_platform.c
137
if (start <= now)
sys/arch/arm/imx/imx23_platform.c
138
elapsed = now - start;
sys/arch/arm/imx/imx23_platform.c
140
elapsed = (UINT32_MAX - start) + 1 + now;
sys/arch/arm/sunxi/sun8i_crypto.c
1123
unsigned now)
sys/arch/arm/sunxi/sun8i_crypto.c
1138
if (now - sc->sc_chan[i].cc_starttime >=
sys/arch/arm/xscale/ixp425_if_npe.c
1651
struct timeval now;
sys/arch/arm/xscale/ixp425_if_npe.c
1652
getmicrotime(&now);
sys/arch/arm/xscale/ixp425_if_npe.c
1653
randoff = (RD4(sc, NPE_MAC_UNI_ADDR_6) ^ now.tv_usec)
sys/arch/emips/stand/common/clock.c
44
uint64_t now;
sys/arch/emips/stand/common/clock.c
53
now = Tc->FreeRunning;
sys/arch/emips/stand/common/clock.c
56
now = now / 10*1000*1000;
sys/arch/emips/stand/common/clock.c
59
now = now >> 23;
sys/arch/emips/stand/common/clock.c
61
return (long) now;
sys/arch/epoc32/windermere/windermere.c
312
int prev, now, remaining;
sys/arch/epoc32/windermere/windermere.c
321
now = TC_READ(tc2, TC_VAL) & TC_MASK;
sys/arch/epoc32/windermere/windermere.c
322
if (now >= prev)
sys/arch/epoc32/windermere/windermere.c
323
remaining -= (now - prev);
sys/arch/epoc32/windermere/windermere.c
325
remaining -= (USHRT_MAX - now + prev + 1);
sys/arch/epoc32/windermere/windermere.c
326
prev = now;
sys/arch/evbarm/dev/plcom.c
845
struct timeval now, diff;
sys/arch/evbarm/dev/plcom.c
864
microuptime(&now);
sys/arch/evbarm/dev/plcom.c
865
while (timercmp(&now, &sc->sc_hup_pending, <)) {
sys/arch/evbarm/dev/plcom.c
866
timersub(&sc->sc_hup_pending, &now, &diff);
sys/arch/evbarm/dev/plcom.c
871
microuptime(&now);
sys/arch/evbmips/loongson/loongson_clock.c
212
uint32_t now, diff, next, new_cnt;
sys/arch/evbmips/loongson/loongson_clock.c
229
now = mips3_cp0_count_read();
sys/arch/evbmips/loongson/loongson_clock.c
230
diff = now - sc_last;
sys/arch/evbmips/loongson/loongson_clock.c
232
sc_last = now;
sys/arch/evbmips/loongson/loongson_clock.c
237
next = now + curcpu()->ci_cycles_per_hz;
sys/arch/evbmips/loongson/loongson_clock.c
262
uint32_t now, diff;
sys/arch/evbmips/loongson/loongson_clock.c
264
now = mips3_cp0_count_read();
sys/arch/evbmips/loongson/loongson_clock.c
265
diff = now - sc_last;
sys/arch/ia64/stand/common/bcache.c
266
time_t now;
sys/arch/ia64/stand/common/bcache.c
270
time(&now);
sys/arch/ia64/stand/common/bcache.c
287
DEBUG("insert blk %d -> %d @ %d # %d", blkno, cand, now, bcache_bcount);
sys/arch/ia64/stand/common/bcache.c
290
bcache_ctl[cand].bc_stamp = now;
sys/arch/ia64/stand/common/bcache.c
302
time_t now;
sys/arch/ia64/stand/common/bcache.c
305
time(&now);
sys/arch/ia64/stand/common/bcache.c
309
if ((bcache_ctl[i].bc_blkno == blkno) && ((bcache_ctl[i].bc_stamp + BCACHE_TIMEOUT) >= now)) {
sys/arch/ia64/stand/common/bcache.c
311
DEBUG("hit blk %d <- %d (now %d then %d)", blkno, i, now, bcache_ctl[i].bc_stamp);
sys/arch/landisk/stand/boot/delay.c
124
uint32_t base, now;
sys/arch/landisk/stand/boot/delay.c
128
now = gettick();
sys/arch/landisk/stand/boot/delay.c
129
if (((now - base) / MS_PER_TICK) > ms) {
sys/arch/m68k/060sp/dist/fpsp.s
19802
# if (packed) then punt for now #
sys/arch/m68k/060sp/dist/fpsp.s
20607
# if exp now equals one, then it overflowed so call ovf_res.
sys/arch/m68k/060sp/dist/fpsp.s
20818
# if exp now equals one, then it overflowed so call ovf_res.
sys/arch/m68k/060sp/dist/pfpsp.s
7509
# if exp now equals one, then it overflowed so call ovf_res.
sys/arch/m68k/060sp/dist/pfpsp.s
7720
# if exp now equals one, then it overflowed so call ovf_res.
sys/arch/macppc/dev/obiofan.c
166
time_t now = time_second, diff;
sys/arch/macppc/dev/obiofan.c
169
diff = now - sc->sc_stamp;
sys/arch/macppc/dev/obiofan.c
177
sc->sc_stamp = now;
sys/arch/mips/ralink/ralink_gpio.c
1322
struct timeval now;
sys/arch/mips/ralink/ralink_gpio.c
1324
microtime(&now);
sys/arch/mips/ralink/ralink_gpio.c
1327
if (ra_gpio_debounce_pin(sc, &now, pin))
sys/arch/mips/ralink/ralink_gpio.c
1342
struct timeval now;
sys/arch/mips/ralink/ralink_gpio.c
1404
microtime(&now);
sys/arch/mips/ralink/ralink_gpio.c
1417
timeradd(&now, &wait, &debounce_time[i]);
sys/arch/mvme68k/stand/sboot/le_poll.c
259
int now, then;
sys/arch/mvme68k/stand/sboot/le_poll.c
264
while ((now = time()) < stopat && !cc) {
sys/arch/mvme68k/stand/sboot/le_poll.c
266
if (then != now) {
sys/arch/mvme68k/stand/sboot/le_poll.c
268
printf("%d \r", stopat - now);
sys/arch/mvme68k/stand/sboot/le_poll.c
270
then = now;
sys/arch/mvme68k/stand/sboot/le_poll.c
277
printf("reject (%d sec left)\n", stopat - now);
sys/arch/powerpc/booke/dev/pq3etsec.c
2567
uint64_t now = mftb();
sys/arch/powerpc/booke/dev/pq3etsec.c
2568
if (now - sc->sc_mii_last_tick < cpu_timebase - 5000) {
sys/arch/powerpc/booke/dev/pq3etsec.c
2570
__func__, now - sc->sc_mii_last_tick);
sys/arch/powerpc/booke/dev/pq3etsec.c
2581
sc->sc_mii_last_tick = now;
sys/arch/powerpc/booke/e500_timer.c
100
const uint64_t now = mftb();
sys/arch/powerpc/booke/e500_timer.c
101
uint64_t latency = now - (ci->ci_lastintr + cpu->cpu_ticks_per_clock_intr);
sys/arch/powerpc/booke/e500_timer.c
105
if (now < ci->ci_lastintr + cpu->cpu_ticks_per_clock_intr)
sys/arch/powerpc/booke/e500_timer.c
124
if (nticks > 10 || now - ci->ci_lastintr < 7 * cpu->cpu_ticks_per_clock_intr / 8)
sys/arch/powerpc/booke/e500_timer.c
126
nticks, ci->ci_lastintr, now - latency, now, latency, orig_latency);
sys/arch/powerpc/booke/e500_timer.c
128
ci->ci_lastintr = now - latency;
sys/arch/powerpc/booke/e500_timer.c
129
ci->ci_lasttb = now;
sys/arch/riscv/fdt/clint_fdt.c
107
const uint64_t now = clint_time_read(sc);
sys/arch/riscv/fdt/clint_fdt.c
109
ci->ci_lastintr = now;
sys/arch/riscv/riscv/clock_machdep.c
123
const uint64_t now = csr_time_read();
sys/arch/riscv/riscv/clock_machdep.c
125
ci->ci_lastintr = now;
sys/arch/riscv/riscv/clock_machdep.c
130
if (__predict_true(ci->ci_lastintr_scheduled > now))
sys/arch/shark/shark/sequoia.c
510
struct timeval now;
sys/arch/shark/shark/sequoia.c
512
getmicrotime(&now);
sys/arch/shark/shark/sequoia.c
513
if(now.tv_sec == ledLastActive.tv_sec)
sys/arch/shark/shark/sequoia.c
515
timeSpan = now.tv_usec - ledLastActive.tv_usec;
sys/arch/shark/shark/sequoia.c
518
else if (now.tv_sec - 10 < ledLastActive.tv_sec) /* stop rollover problems */
sys/arch/shark/shark/sequoia.c
520
timeSpan = (1000000 + now.tv_usec) - ledLastActive.tv_usec;
sys/arch/sparc64/dev/psycho.c
1602
uint64_t cmp, now;
sys/arch/sparc64/dev/psycho.c
1608
now = psycho_getstick() + 1000;
sys/arch/sparc64/dev/psycho.c
1611
while (cmp < now)
sys/arch/x86/x86/hyperv.c
284
uint64_t end, now;
sys/arch/x86/x86/hyperv.c
293
now = 0;
sys/arch/x86/x86/hyperv.c
300
now += tc->tc_counter_mask - last + u + 1;
sys/arch/x86/x86/hyperv.c
302
now += u - last;
sys/arch/x86/x86/hyperv.c
304
} while (now < end);
sys/arch/x86/x86/hyperv.c
310
uint64_t end, now;
sys/arch/x86/x86/hyperv.c
313
now = 0;
sys/arch/x86/x86/hyperv.c
320
now += 0xffffffff - last + u + 1;
sys/arch/x86/x86/hyperv.c
322
now += u - last;
sys/arch/x86/x86/hyperv.c
324
} while (now < end);
sys/arch/xen/xen/xen_clock.c
780
uint64_t last, now, delta, next;
sys/arch/xen/xen/xen_clock.c
794
now = xen_vcputime_systime_ns();
sys/arch/xen/xen/xen_clock.c
795
SDT_PROBE2(sdt, xen, hardclock, tick, last, now);
sys/arch/xen/xen/xen_clock.c
796
if (__predict_false(now < last)) {
sys/arch/xen/xen/xen_clock.c
798
last, now);
sys/arch/xen/xen/xen_clock.c
802
last - now);
sys/arch/xen/xen/xen_clock.c
809
ci->ci_xen_hardclock_systime_ns = last = now - ns_per_tick;
sys/arch/xen/xen/xen_clock.c
811
delta = now - last;
sys/arch/xen/xen/xen_clock.c
820
last, now, delta/ns_per_tick);
sys/arch/xen/xen/xen_clock.c
833
last, now, delta,
sys/arch/xen/xen/xen_clock.c
847
last, now, delta);
sys/arch/zaurus/dev/ztp.c
402
volatile uint32_t base, now;
sys/arch/zaurus/dev/ztp.c
418
now = pxa2x0_read_ccnt();
sys/arch/zaurus/dev/ztp.c
419
while ((now - base) < tck)
sys/arch/zaurus/dev/ztp.c
420
now = pxa2x0_read_ccnt();
sys/compat/linux/common/linux_socket.c
1912
struct timespec ts = {0}, now;
sys/compat/linux/common/linux_socket.c
1921
getnanotime(&now);
sys/compat/linux/common/linux_socket.c
1922
timespecadd(&now, &ts, &ts);
sys/compat/linux/common/linux_socket.c
1994
getnanotime(&now);
sys/compat/linux/common/linux_socket.c
1995
timespecsub(&now, &ts, &now);
sys/compat/linux/common/linux_socket.c
1996
if (now.tv_sec > 0)
sys/compat/netbsd32/netbsd32_socket.c
274
struct timespec ts, now;
sys/compat/netbsd32/netbsd32_socket.c
285
getnanotime(&now);
sys/compat/netbsd32/netbsd32_socket.c
287
timespecadd(&now, &ts, &ts);
sys/compat/netbsd32/netbsd32_socket.c
350
getnanotime(&now);
sys/compat/netbsd32/netbsd32_socket.c
351
timespecsub(&now, &ts, &now);
sys/compat/netbsd32/netbsd32_socket.c
352
if (now.tv_sec > 0)
sys/dev/adb/adb_kbd.c
512
uint32_t now = time_second;
sys/dev/adb/adb_kbd.c
513
uint32_t diff = now - sc->sc_timestamp;
sys/dev/adb/adb_kbd.c
515
sc->sc_timestamp = now;
sys/dev/cardbus/cardbus.c
1013
pcireg_t value, cap, now;
sys/dev/cardbus/cardbus.c
1019
now = value & PCI_PMCSR_STATE_MASK;
sys/dev/cardbus/cardbus.c
1022
if (now == state)
sys/dev/cardbus/cardbus.c
1028
if (now == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D3) {
sys/dev/cardbus/cardbus.c
1029
printf("invalid transition from %d to D1\n", (int)now);
sys/dev/cardbus/cardbus.c
1038
if (now == PCI_PMCSR_STATE_D3) {
sys/dev/cardbus/cardbus.c
1039
printf("invalid transition from %d to D2\n", (int)now);
sys/dev/cardbus/cardbus.c
1054
if (state == PCI_PMCSR_STATE_D3 || now == PCI_PMCSR_STATE_D3)
sys/dev/cardbus/cardbus.c
1056
else if (state == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D2)
sys/dev/cardbus/cardbus.c
974
pcireg_t value, now;
sys/dev/cardbus/cardbus.c
979
now = value & PCI_PMCSR_STATE_MASK;
sys/dev/cardbus/cardbus.c
980
switch (now) {
sys/dev/cardbus/cardbus.c
985
*state = now;
sys/dev/flash/flash_io.c
280
struct bintime now;
sys/dev/flash/flash_io.c
292
binuptime(&now);
sys/dev/flash/flash_io.c
293
if (flash_timestamp_diff(&now, &fio->fio_last_write) > hz / 5) {
sys/dev/flash/flash_io.c
296
} else if (flash_timestamp_diff(&now, &fio->fio_creation)
sys/dev/ic/com.c
1162
struct timeval now, diff;
sys/dev/ic/com.c
1181
microuptime(&now);
sys/dev/ic/com.c
1182
while (timercmp(&now, &sc->sc_hup_pending, <)) {
sys/dev/ic/com.c
1183
timersub(&sc->sc_hup_pending, &now, &diff);
sys/dev/ic/com.c
1188
microuptime(&now);
sys/dev/ic/hd64570.c
1774
struct timeval now;
sys/dev/ic/hd64570.c
1839
getmicrotime(&now);
sys/dev/ic/hd64570.c
1840
scp->cka_lasttx = now.tv_usec;
sys/dev/ic/hd64570.c
409
struct timeval now;
sys/dev/ic/hd64570.c
471
getmicrotime(&now);
sys/dev/ic/hd64570.c
472
scp->cka_lasttx = now.tv_usec;
sys/dev/ic/joy.c
195
struct timeval start, now, diff;
sys/dev/ic/joy.c
201
now = start; /* structure assignment */
sys/dev/ic/joy.c
204
timersub(&now, &start, &diff);
sys/dev/ic/joy.c
216
microtime(&now);
sys/dev/ic/matrixkp_subr.c
137
struct timeval verystart, start, now;
sys/dev/ic/matrixkp_subr.c
147
microtime(&now);
sys/dev/ic/matrixkp_subr.c
151
start = now;
sys/dev/ic/matrixkp_subr.c
153
} while (TV_ELAPSED_US(now, start) <= (sc->debounce_stable_ms * 1000));
sys/dev/ic/mm58167.c
119
getmicrotime(&now);
sys/dev/ic/mm58167.c
120
clock_secs_to_ymdhms(now.tv_sec, &dt_reasonable);
sys/dev/ic/mm58167.c
85
struct timeval now;
sys/dev/isa/isv.c
177
struct timeval end, now,
sys/dev/isa/isv.c
186
microtime(&now);
sys/dev/isa/isv.c
187
timeradd(&now, &wait, &end);
sys/dev/isa/isv.c
196
microtime(&now);
sys/dev/isa/isv.c
197
} while (timercmp(&now, &end, <));
sys/dev/isa/isv.c
283
struct timeval now;
sys/dev/isa/isv.c
287
microtime(&now);
sys/dev/isa/isv.c
295
microtime(&now);
sys/dev/isa/isv.c
296
if (timercmp(&now, end, >=))
sys/dev/isa/isv.c
306
struct timeval now;
sys/dev/isa/isv.c
310
microtime(&now);
sys/dev/isa/isv.c
316
microtime(&now);
sys/dev/isa/isv.c
317
if (timercmp(&now, end, >=))
sys/dev/nor/cfi_0002.c
414
struct timeval now;
sys/dev/nor/cfi_0002.c
426
microtime(&now);
sys/dev/nor/cfi_0002.c
428
timersub(&now, &start, &delta);
sys/dev/nor/cfi_0002.c
436
microtime(&now);
sys/dev/nor/cfi_0002.c
438
timersub(&now, &start, &delta);
sys/dev/nor/cfi_0002.c
474
struct timeval now;
sys/dev/nor/cfi_0002.c
490
microtime(&now);
sys/dev/nor/cfi_0002.c
493
} while (timercmp(&now, &limit, <));
sys/dev/pci/cxgb/cxgb_offload.c
897
unsigned long now, next;
sys/dev/pci/cxgb/cxgb_offload.c
905
now = jiffies;
sys/dev/pci/cxgb/cxgb_offload.c
906
next = now + HZ;
sys/dev/pci/cxgb/cxgb_offload.c
916
if (time_before_eq(now,
sys/dev/pci/cxgb/cxgb_offload.c
920
} else if (time_before_eq(now,
sys/dev/pci/cxgb/cxgb_offload.c
926
next = now + neigh->parms->delay_probe_time;
sys/dev/pci/cxgb/cxgb_offload.c
934
if (time_before_eq(now,
sys/dev/pci/cxgb/cxgb_offload.c
946
next = now + neigh->parms->retrans_time;
sys/dev/pci/cxgb/cxgb_offload.c
950
next = now + neigh->parms->retrans_time;
sys/dev/pci/hifn7751.c
539
struct timeval now, oktime, wait;
sys/dev/pci/hifn7751.c
546
microtime(&now);
sys/dev/pci/hifn7751.c
551
if (timercmp(&oktime, &now, <=)) {
sys/dev/pci/hifn7751.c
554
timersub(&oktime, &now, &wait);
sys/dev/pci/if_wm.c
12006
struct timeval now;
sys/dev/pci/if_wm.c
12008
getmicrotime(&now);
sys/dev/pci/if_wm.c
12009
if (timercmp(&now, &sc->sc_linkup_delay_time, <))
sys/dev/pci/if_wm.c
3966
struct timeval now;
sys/dev/pci/if_wm.c
3968
getmicrotime(&now);
sys/dev/pci/if_wm.c
3969
if (timercmp(&now, &sc->sc_linkup_delay_time, <))
sys/dev/pci/pci.c
1119
pcireg_t value, now;
sys/dev/pci/pci.c
1122
now = value & PCI_PMCSR_STATE_MASK;
sys/dev/pci/pci.c
1123
switch (now) {
sys/dev/pci/pci.c
1128
*state = now;
sys/dev/pci/pci.c
1151
pcireg_t value, cap, now;
sys/dev/pci/pci.c
1155
now = value & PCI_PMCSR_STATE_MASK;
sys/dev/pci/pci.c
1158
if (now == state)
sys/dev/pci/pci.c
1164
if (now == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D3) {
sys/dev/pci/pci.c
1165
printf("invalid transition from %d to D1\n", (int)now);
sys/dev/pci/pci.c
1174
if (now == PCI_PMCSR_STATE_D3) {
sys/dev/pci/pci.c
1175
printf("invalid transition from %d to D2\n", (int)now);
sys/dev/pci/pci.c
1191
if (state == PCI_PMCSR_STATE_D3 || now == PCI_PMCSR_STATE_D3)
sys/dev/pci/pci.c
1193
else if (state == PCI_PMCSR_STATE_D2 || now == PCI_PMCSR_STATE_D2)
sys/dev/pci/voyager/pwmclock.c
274
uint32_t reg, now, diff;
sys/dev/pci/voyager/pwmclock.c
299
now = mips3_cp0_count_read();
sys/dev/pci/voyager/pwmclock.c
300
diff = now - sc->sc_last;
sys/dev/pci/voyager/pwmclock.c
302
sc->sc_last = now;
sys/dev/pci/voyager/pwmclock.c
327
uint32_t now, diff;
sys/dev/pci/voyager/pwmclock.c
329
now = mips3_cp0_count_read();
sys/dev/pci/voyager/pwmclock.c
330
diff = now - sc->sc_last;
sys/dev/pcmcia/if_cnw.c
594
struct timeval now;
sys/dev/pcmcia/if_cnw.c
608
microtime(&now);
sys/dev/pcmcia/if_cnw.c
609
now.tv_sec -= sc->sc_txlast.tv_sec;
sys/dev/pcmcia/if_cnw.c
610
now.tv_usec -= sc->sc_txlast.tv_usec;
sys/dev/pcmcia/if_cnw.c
611
if (now.tv_usec < 0) {
sys/dev/pcmcia/if_cnw.c
612
now.tv_usec += 1000000;
sys/dev/pcmcia/if_cnw.c
613
now.tv_sec--;
sys/dev/pcmcia/if_cnw.c
630
if (sc->sc_active && now.tv_sec == 0 && now.tv_usec < 200000)
sys/dev/sequencer.c
548
struct timeval now;
sys/dev/sequencer.c
600
microtime(&now);
sys/dev/sequencer.c
602
now = sc->timer.stoptime;
sys/dev/sequencer.c
603
SUBTIMEVAL(&now, &sc->timer.reftime);
sys/dev/sequencer.c
604
t = now.tv_sec * 1000000 + now.tv_usec;
sys/dev/sequencer.c
733
struct timeval now;
sys/dev/sequencer.c
866
microtime(&now);
sys/dev/sequencer.c
867
SUBTIMEVAL(&now, &sc->timer.reftime);
sys/dev/sequencer.c
868
tx = now.tv_sec * 1000000 + now.tv_usec;
sys/dev/usb/ehci.c
2275
unsigned now;
sys/dev/usb/ehci.c
2303
now = getticks();
sys/dev/usb/ehci.c
2304
if (now - starttime >= delta) {
sys/dev/usb/ehci.c
2314
endtime - now);
sys/dev/usb/uatp.c
2180
struct timeval now, diff, limit;
sys/dev/usb/uatp.c
2194
getmicrouptime(&now);
sys/dev/usb/uatp.c
2195
tap_transition_tapping(sc, &now, fingers);
sys/dev/usb/uatp.c
2207
getmicrouptime(&now);
sys/dev/usb/uatp.c
2213
tap_transition_double_tapping(sc, &now, fingers);
sys/dev/usb/uatp.c
2217
getmicrouptime(&now);
sys/dev/usb/uatp.c
2218
timersub(&now, &sc->sc_tap_timer, &diff);
sys/dev/usb/uatp.c
2230
getmicrouptime(&now);
sys/dev/usb/uatp.c
2231
tap_transition_tapping_in_drag(sc, &now, fingers);
sys/dev/usb/uatp.c
2255
struct timeval now, diff, limit;
sys/dev/usb/uatp.c
2285
getmicrouptime(&now);
sys/dev/usb/uatp.c
2286
timersub(&now, &sc->sc_tap_timer, &diff);
sys/dev/usb/uatp.c
2305
tap_transition_tapped(sc, &now);
sys/dev/usb/ucom.c
945
struct timeval now, delta;
sys/dev/usb/ucom.c
948
microuptime(&now);
sys/dev/usb/ucom.c
949
if (timercmp(&now, &sc->sc_hup_time, <)) {
sys/dev/usb/ucom.c
950
timersub(&sc->sc_hup_time, &now, &delta);
sys/fs/nfs/common/nfs_commonkrpc.c
452
time_t now;
sys/fs/nfs/common/nfs_commonkrpc.c
457
now = NFSD_MONOSEC;
sys/fs/nfs/common/nfs_commonkrpc.c
458
if (nf->nf_lastmsg + nmp->nm_tprintf_delay < now) {
sys/fs/nfs/common/nfs_commonkrpc.c
462
nf->nf_lastmsg = now;
sys/fs/nfs/server/nfs_nfsdsocket.c
409
nfsrvd_statstart(int op, struct bintime *now)
sys/fs/nfs/server/nfs_nfsdsocket.c
418
if (now != NULL)
sys/fs/nfs/server/nfs_nfsdsocket.c
419
nfsstatsv1.busyfrom = *now;
sys/fs/nfs/server/nfs_nfsdsocket.c
431
nfsrvd_statend(int op, uint64_t bytes, struct bintime *now,
sys/fs/nfs/server/nfs_nfsdsocket.c
441
if (now == NULL) {
sys/fs/nfs/server/nfs_nfsdsocket.c
442
now = &lnow;
sys/fs/nfs/server/nfs_nfsdsocket.c
443
binuptime(now);
sys/fs/nfs/server/nfs_nfsdsocket.c
452
dt = *now;
sys/fs/nfs/server/nfs_nfsdsocket.c
457
dt = *now;
sys/fs/nfs/server/nfs_nfsdsocket.c
460
nfsstatsv1.busyfrom = *now;
sys/fs/ptyfs/ptyfs_vnops.c
933
struct timespec now;
sys/fs/ptyfs/ptyfs_vnops.c
937
getnanotime(&now);
sys/fs/ptyfs/ptyfs_vnops.c
940
acc = &now;
sys/fs/ptyfs/ptyfs_vnops.c
945
mod = &now;
sys/fs/ptyfs/ptyfs_vnops.c
950
cre = &now;
sys/fs/udf/udf_strat_rmw.c
1202
struct timespec now, *last;
sys/fs/udf/udf_strat_rmw.c
1214
vfs_timestamp(&now);
sys/fs/udf/udf_strat_rmw.c
1225
(eccline->wait_time.tv_sec - now.tv_sec > 0)) {
sys/fs/udf/udf_strat_rmw.c
1273
vfs_timestamp(&now);
sys/fs/udf/udf_strat_rmw.c
1286
if (now.tv_sec - last->tv_sec < 2) {
sys/fs/udf/udf_strat_sequential.c
480
struct timespec now, *last;
sys/fs/udf/udf_strat_sequential.c
518
vfs_timestamp(&now);
sys/fs/udf/udf_strat_sequential.c
522
if (now.tv_sec - last->tv_sec < 3)
sys/fs/udf/udf_subr.c
4673
struct timespec now;
sys/fs/udf/udf_subr.c
4699
vfs_timestamp(&now);
sys/fs/udf/udf_subr.c
4700
udf_timespec_to_timestamp(&now, &fe->atime);
sys/fs/udf/udf_subr.c
4701
udf_timespec_to_timestamp(&now, &fe->attrtime);
sys/fs/udf/udf_subr.c
4702
udf_timespec_to_timestamp(&now, &fe->mtime);
sys/fs/udf/udf_subr.c
4720
udf_timespec_to_timestamp(&now, &ft_extattr->times[0]);
sys/fs/udf/udf_subr.c
4756
struct timespec now;
sys/fs/udf/udf_subr.c
4781
vfs_timestamp(&now);
sys/fs/udf/udf_subr.c
4782
udf_timespec_to_timestamp(&now, &efe->ctime);
sys/fs/udf/udf_subr.c
4783
udf_timespec_to_timestamp(&now, &efe->atime);
sys/fs/udf/udf_subr.c
4784
udf_timespec_to_timestamp(&now, &efe->attrtime);
sys/fs/udf/udf_subr.c
4785
udf_timespec_to_timestamp(&now, &efe->mtime);
sys/fs/udf/udf_subr.c
6116
struct timespec now;
sys/fs/udf/udf_subr.c
6165
vfs_timestamp(&now);
sys/fs/udf/udf_subr.c
6170
acc = &now;
sys/fs/udf/udf_subr.c
6177
mod = &now;
sys/fs/udf/udf_subr.c
6197
udf_timespec_to_timestamp(&now, attrtime);
sys/kern/kern_lock.c
181
unsigned now, then;
sys/kern/kern_lock.c
233
now = time_uptime;
sys/kern/kern_lock.c
234
if (now - then <= 10)
sys/kern/kern_lock.c
236
if (atomic_cas_uint(&kernel_lock_last_report, then, now) != then)
sys/kern/kern_softint.c
805
struct bintime now;
sys/kern/kern_softint.c
850
binuptime(&now);
sys/kern/kern_softint.c
851
updatertime(l, &now);
sys/kern/kern_synch.c
506
updatertime(lwp_t *l, const struct bintime *now)
sys/kern/kern_synch.c
513
if (__predict_false(bintimecmp(now, &l->l_stime, <)) && !backwards) {
sys/kern/kern_synch.c
536
(intmax_t)now->sec, now->frac,
sys/kern/kern_synch.c
541
bintime_add(&l->l_rtime, now);
sys/kern/kern_tc.c
88
static u_int now;
sys/kern/kern_tc.c
90
return ++now;
sys/kern/kern_time.c
1007
getnanotime(&now);
sys/kern/kern_time.c
1009
getnanouptime(&now);
sys/kern/kern_time.c
1011
if (timespeccmp(&aits->it_value, &now, <))
sys/kern/kern_time.c
1014
timespecsub(&aits->it_value, &now,
sys/kern/kern_time.c
1401
struct timespec now;
sys/kern/kern_time.c
1438
getnanotime(&now);
sys/kern/kern_time.c
1440
getnanouptime(&now);
sys/kern/kern_time.c
1443
&now)) {
sys/kern/kern_time.c
1447
timespecadd(&it->it_time.it_value, &now,
sys/kern/kern_time.c
1452
getnanotime(&now);
sys/kern/kern_time.c
1454
&now)) {
sys/kern/kern_time.c
1458
timespecsub(&it->it_time.it_value, &now,
sys/kern/kern_time.c
1652
struct timespec now;
sys/kern/kern_time.c
1727
getnanotime(&now);
sys/kern/kern_time.c
1728
if (!timespecaddok(&it->it_time.it_value, &now)) {
sys/kern/kern_time.c
1732
timespecadd(&it->it_time.it_value, &now,
sys/kern/kern_time.c
1736
getnanouptime(&now);
sys/kern/kern_time.c
1737
if (!timespecaddok(&it->it_time.it_value, &now)) {
sys/kern/kern_time.c
1741
timespecadd(&it->it_time.it_value, &now,
sys/kern/kern_time.c
214
struct timespec delta, now;
sys/kern/kern_time.c
223
nanotime(&now);
sys/kern/kern_time.c
224
timespecsub(ts, &now, &delta);
sys/kern/kern_time.c
865
struct timespec now, next;
sys/kern/kern_time.c
879
getnanouptime(&now);
sys/kern/kern_time.c
881
getnanotime(&now);
sys/kern/kern_time.c
888
itimer_transition(&it->it_time, &now, &next, &overruns);
sys/kern/kern_time.c
990
struct timespec now;
sys/kern/subr_time.c
103
struct timespec now, sleptts;
sys/kern/subr_time.c
110
getnanouptime(&now);
sys/kern/subr_time.c
111
KASSERT(timespeccmp(sleepts, &now, <=));
sys/kern/subr_time.c
112
timespecsub(&now, sleepts, &sleptts);
sys/kern/subr_time.c
113
*sleepts = now;
sys/kern/subr_time.c
58
struct timeval now, tv;
sys/kern/subr_time.c
61
getmicrotime(&now);
sys/kern/subr_time.c
62
timersub(&tv, &now, &tv);
sys/kern/subr_time.c
69
struct timespec now, ts;
sys/kern/subr_time.c
72
getnanotime(&now);
sys/kern/subr_time.c
73
timespecsub(&ts, &now, &ts);
sys/kern/subr_time.c
80
struct timespec now, ts;
sys/kern/subr_time.c
83
getnanouptime(&now);
sys/kern/subr_time.c
84
timespecsub(&ts, &now, &ts);
sys/kern/subr_time_arith.c
481
const struct timespec *restrict now,
sys/kern/subr_time_arith.c
525
if (__predict_true(timespeccmp(now, next, <))) {
sys/kern/subr_time_arith.c
538
if (__predict_false(!timespec2nsok(now)) ||
sys/kern/subr_time_arith.c
543
now_ns = timespec2ns(now);
sys/kern/subr_time_arith.c
571
KASSERT(timespeccmp(next, now, <=));
sys/kern/subr_time_arith.c
575
KASSERT(timespeccmp(now, next, <));
sys/kern/sys_timerfd.c
637
struct timespec now;
sys/kern/sys_timerfd.c
639
getnanotime(&now);
sys/kern/sys_timerfd.c
641
getnanouptime(&now);
sys/kern/sys_timerfd.c
643
timespecadd(&it->it_time.it_value, &now,
sys/kern/tty.c
1968
struct timeval now, stime;
sys/kern/tty.c
2056
getmicrotime(&now);
sys/kern/tty.c
2057
slp = t - diff(now, stime);
sys/kern/tty.c
2067
getmicrotime(&now);
sys/kern/tty.c
2068
slp = t - diff(now, stime);
sys/kern/uipc_syscalls.c
1012
struct timespec ts, now;
sys/kern/uipc_syscalls.c
1020
getnanotime(&now);
sys/kern/uipc_syscalls.c
1021
if (timespecaddok(&now, &ts)) {
sys/kern/uipc_syscalls.c
1022
timespecadd(&now, &ts, &ts);
sys/kern/uipc_syscalls.c
1092
getnanotime(&now);
sys/kern/uipc_syscalls.c
1093
if (timespeccmp(&ts, &now, <))
sys/net/agr/ieee8023ad_lacp_sm_tx.c
54
int now;
sys/net/agr/ieee8023ad_lacp_sm_tx.c
70
now = getticks();
sys/net/agr/ieee8023ad_lacp_sm_tx.c
71
if ((unsigned int)(now - lp->lp_last_lacpdu_sent) <=
sys/net/agr/ieee8023ad_lacp_sm_tx.c
75
lp->lp_last_lacpdu_sent = now;
sys/net/if_spppsubr.c
5469
uint32_t now, last_activity, last_receive;
sys/net/if_spppsubr.c
5473
now = time_uptime32;
sys/net/if_spppsubr.c
5483
if ((now - last_activity) >= sp->pp_idle_timeout) {
sys/net/if_spppsubr.c
5485
(unsigned long)(now - last_activity));
sys/net/if_spppsubr.c
5507
(now - last_receive) < sp->pp_max_noreceive) {
sys/net/if_wg.c
1644
const uint64_t now = time_second/60, now_le = htole64(now);
sys/net/if_wg.c
2580
const uint32_t now = time_uptime32;
sys/net/if_wg.c
2582
le32enc(now0, now/(WG_COOKIESECRET_TIME/2));
sys/net/if_wg.c
2583
le32enc(now1, now/(WG_COOKIESECRET_TIME/2) + 1);
sys/net/if_wg.c
2665
uint32_t now, last;
sys/net/if_wg.c
2678
now = time_uptime32;
sys/net/if_wg.c
2680
atomic_swap_32(&last_received[msgtype], now) : 0;
sys/net/if_wg.c
2681
return (now - last) == 0;
sys/net/if_wg.c
3263
const uint32_t now = time_uptime32;
sys/net/if_wg.c
3268
now, time_last_data_sent);
sys/net/if_wg.c
3269
if ((now - time_last_data_sent) >= wg_keepalive_timeout) {
sys/net/if_wg.c
4701
const uint32_t now = time_uptime32;
sys/net/if_wg.c
4702
atomic_store_relaxed(&wgs->wgs_time_last_data_sent, MAX(now, 1));
sys/net/if_wg.c
4708
now - wgs->wgs_time_established >= wg_rekey_after_time) {
sys/net/npf/npf_conndb.c
302
npf_conndb_gc_incr(npf_t *npf, npf_conndb_t *cd, const time_t now)
sys/net/npf/npf_conndb.c
332
if (npf_conn_expired(npf, con, now)) {
sys/netbt/hci_misc.c
118
struct timeval now;
sys/netbt/hci_misc.c
120
microtime(&now);
sys/netbt/hci_misc.c
126
if (now.tv_sec > memo->time.tv_sec + hci_memo_expiry) {
sys/netinet/ip_mroute.c
1615
struct timeval now;
sys/netinet/ip_mroute.c
1639
microtime(&now);
sys/netinet/ip_mroute.c
1641
TV_DELTA(rt->mfc_last_assert, now, delta);
sys/netinet/ip_mroute.c
1653
rt->mfc_last_assert = now;
sys/netinet/ip_mroute.c
1710
struct timeval now;
sys/netinet/ip_mroute.c
1712
microtime(&now);
sys/netinet/ip_mroute.c
1714
bw_meter_receive_packet(x, plen, &now);
sys/netinet/ip_mroute.c
2176
struct timeval now;
sys/netinet/ip_mroute.c
2227
microtime(&now);
sys/netinet/ip_mroute.c
2228
x->bm_start_time = now;
sys/netinet/ip_mroute.c
2241
schedule_bw_meter(x, &now);
sys/netinet/ip_mroute.c
2607
struct timeval now, process_endtime;
sys/netinet/ip_mroute.c
2609
microtime(&now);
sys/netinet/ip_mroute.c
2610
if (last_tv_sec == now.tv_sec)
sys/netinet/ip_mroute.c
2613
loops = now.tv_sec - last_tv_sec;
sys/netinet/ip_mroute.c
2614
last_tv_sec = now.tv_sec;
sys/netinet/ip_mroute.c
2624
for (i = (now.tv_sec - loops) % BW_METER_BUCKETS; loops > 0; loops--) {
sys/netinet/ip_mroute.c
2642
if (BW_TIMEVALCMP(&process_endtime, &now, >)) {
sys/netinet/ip_mroute.c
2647
if (time_hash == i && process_endtime.tv_sec == now.tv_sec) {
sys/netinet/ip_mroute.c
2670
bw_meter_prepare_upcall(x, &now);
sys/netinet/ip_mroute.c
2676
schedule_bw_meter(x, &now);
sys/netinet/sctp_indata.c
2934
struct timeval now;
sys/netinet/sctp_indata.c
2959
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_indata.c
2975
if (timercmp(&now, &tp1->rec.data.timetodrop, >))
sys/netinet/sctp_indata.c
2977
if (timevalcmp(&now, &tp1->rec.data.timetodrop, >))
sys/netinet/sctp_indata.c
3193
struct timeval now;
sys/netinet/sctp_indata.c
3214
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_indata.c
3232
if (timercmp(&now, &tp1->rec.data.timetodrop, >))
sys/netinet/sctp_indata.c
3234
if (timevalcmp(&now, &tp1->rec.data.timetodrop, >))
sys/netinet/sctp_input.c
1677
struct timeval now;
sys/netinet/sctp_input.c
1917
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_input.c
1922
if (timercmp(&now, &time_expires, >))
sys/netinet/sctp_input.c
1924
if (timevalcmp(&now, &time_expires, >))
sys/netinet/sctp_input.c
1953
tim = (now.tv_sec - time_expires.tv_sec) * 1000000;
sys/netinet/sctp_input.c
1956
tim = now.tv_usec - cookie->time_entered.tv_usec;
sys/netinet/sctp_output.c
10166
&reason, 1, &cwnd_full, 1, &now, &now_filled);
sys/netinet/sctp_output.c
5263
struct timeval *now, int *now_filled)
sys/netinet/sctp_output.c
5628
*now = net->last_sent_time;
sys/netinet/sctp_output.c
5630
net->last_sent_time = *now;
sys/netinet/sctp_output.c
5657
*now = net->last_sent_time;
sys/netinet/sctp_output.c
5659
net->last_sent_time = *now;
sys/netinet/sctp_output.c
5907
*now = net->last_sent_time;
sys/netinet/sctp_output.c
5909
net->last_sent_time = *now;
sys/netinet/sctp_output.c
5936
*now = net->last_sent_time;
sys/netinet/sctp_output.c
5938
net->last_sent_time = *now;
sys/netinet/sctp_output.c
6454
int *cnt_out, struct timeval *now, int *now_filled)
sys/netinet/sctp_output.c
6771
*now = asoc->time_last_sent;
sys/netinet/sctp_output.c
6774
asoc->time_last_sent = *now;
sys/netinet/sctp_output.c
6888
struct timeval now;
sys/netinet/sctp_output.c
6905
ret = sctp_chunk_retransmission(inp, stcb, asoc, &num_out, &now, &now_filled);
sys/netinet/sctp_output.c
6920
&now, &now_filled);
sys/netinet/sctp_output.c
6958
&now, &now_filled);
sys/netinet/sctp_output.c
7020
&now, &now_filled);
sys/netinet/sctp_output.c
8152
sctp_select_hb_destination(struct sctp_tcb *stcb, struct timeval *now)
sys/netinet/sctp_output.c
8157
SCTP_GETTIME_TIMEVAL(now);
sys/netinet/sctp_output.c
8186
ms_goneby = (now->tv_sec - net->last_sent_time.tv_sec) * 1000;
sys/netinet/sctp_output.c
8241
hnet->last_sent_time = *now;
sys/netinet/sctp_output.c
8254
struct timeval now;
sys/netinet/sctp_output.c
8259
net = sctp_select_hb_destination(stcb, &now);
sys/netinet/sctp_output.c
8300
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_output.c
8349
hb->heartbeat.hb_info.time_value_1 = now.tv_sec;
sys/netinet/sctp_output.c
8350
hb->heartbeat.hb_info.time_value_2 = now.tv_usec;
sys/netinet/sctp_output.c
9808
struct timeval now;
sys/netinet/sctp_pcb.c
2923
struct timeval now;
sys/netinet/sctp_pcb.c
2925
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_pcb.c
2935
now.tv_sec + SCTP_TIME_WAIT;
sys/netinet/sctp_pcb.c
2940
now.tv_sec)) {
sys/netinet/sctp_pcb.c
2946
twait_block->vtag_block[0].tv_sec_at_expire = now.tv_sec + SCTP_TIME_WAIT;
sys/netinet/sctp_pcb.c
2969
twait_block->vtag_block[0].tv_sec_at_expire = now.tv_sec +
sys/netinet/sctp_pcb.c
4337
sctp_is_vtag_good(struct sctp_inpcb *inp, u_int32_t tag, struct timeval *now)
sys/netinet/sctp_pcb.c
4387
now->tv_sec) {
sys/netinet/sctp_timer.c
358
struct timeval now, min_wait, tv;
sys/netinet/sctp_timer.c
373
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_timer.c
386
timersub(&now, &tv, &min_wait);
sys/netinet/sctp_timer.c
388
min_wait = now;
sys/netinet/sctp_timer.c
402
sctp_log_fr(cur_rto, now.tv_sec, now.tv_usec, SCTP_FR_T3_MARK_TIME);
sys/netinet/sctp_timer.c
504
if ((now.tv_sec > chk->rec.data.timetodrop.tv_sec) ||
sys/netinet/sctp_timer.c
505
((chk->rec.data.timetodrop.tv_sec == now.tv_sec) &&
sys/netinet/sctp_timer.c
506
(now.tv_usec > chk->rec.data.timetodrop.tv_usec))) {
sys/netinet/sctp_timer.c
765
struct timeval now;
sys/netinet/sctp_timer.c
767
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctp_timer.c
769
ms_goneby = (now.tv_sec - net->last_sent_time.tv_sec) * 1000;
sys/netinet/sctputil.c
1649
struct timeval now;
sys/netinet/sctputil.c
1655
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctputil.c
1657
if ((u_long)now.tv_sec > (u_long)old->tv_sec) {
sys/netinet/sctputil.c
1658
calc_time = ((u_long)now.tv_sec - (u_long)old->tv_sec) * 1000;
sys/netinet/sctputil.c
1659
if ((u_long)now.tv_usec > (u_long)old->tv_usec) {
sys/netinet/sctputil.c
1660
calc_time += (((u_long)now.tv_usec -
sys/netinet/sctputil.c
1662
} else if ((u_long)now.tv_usec < (u_long)old->tv_usec) {
sys/netinet/sctputil.c
1666
calc_time += ((int)now.tv_usec/1000);
sys/netinet/sctputil.c
1670
} else if ((u_long)now.tv_sec == (u_long)old->tv_sec) {
sys/netinet/sctputil.c
1671
if ((u_long)now.tv_usec > (u_long)old->tv_usec) {
sys/netinet/sctputil.c
1672
calc_time = ((u_long)now.tv_usec -
sys/netinet/sctputil.c
1674
} else if ((u_long)now.tv_usec < (u_long)old->tv_usec) {
sys/netinet/sctputil.c
627
struct timeval now;
sys/netinet/sctputil.c
629
SCTP_GETTIME_TIMEVAL(&now);
sys/netinet/sctputil.c
637
if (sctp_is_vtag_good(m, x, &now)) {
sys/netinet/tcp_vtw.c
1547
struct timeval now;
sys/netinet/tcp_vtw.c
1550
getmicrouptime(&now);
sys/netinet/tcp_vtw.c
1553
, now.tv_sec, now.tv_usec));
sys/netinet/tcp_vtw.c
1558
cnt += vtw_age(&vtw_tcpv4[i], &now);
sys/netinet/tcp_vtw.c
1559
cnt += vtw_age(&vtw_tcpv6[i], &now);
sys/netinet6/mld6.c
191
struct timeval now;
sys/netinet6/mld6.c
197
microtime(&now);
sys/netinet6/mld6.c
198
in6m->in6m_timer_expire.tv_sec = now.tv_sec + in6m->in6m_timer / hz;
sys/netinet6/mld6.c
199
in6m->in6m_timer_expire.tv_usec = now.tv_usec +
sys/netinet6/mld6.c
264
struct timeval now, diff;
sys/netinet6/mld6.c
266
microtime(&now);
sys/netinet6/mld6.c
268
if (now.tv_sec > in6m->in6m_timer_expire.tv_sec ||
sys/netinet6/mld6.c
269
(now.tv_sec == in6m->in6m_timer_expire.tv_sec &&
sys/netinet6/mld6.c
270
now.tv_usec > in6m->in6m_timer_expire.tv_usec)) {
sys/netinet6/mld6.c
274
diff.tv_sec -= now.tv_sec;
sys/netinet6/mld6.c
275
diff.tv_usec -= now.tv_usec;
sys/netipsec/key.c
4931
volatile time_t now;
sys/netipsec/key.c
4940
now = time_uptime;
sys/netipsec/key.c
4948
if ((sp->lifetime && now - sp->created > sp->lifetime) ||
sys/netipsec/key.c
4949
(sp->validtime && now - sp->lastused > sp->validtime)) {
sys/netipsec/key.c
4979
volatile time_t now;
sys/netipsec/key.c
5008
now = time_uptime;
sys/netipsec/key.c
5010
if (now - sav->created > key_larval_lifetime) {
sys/netipsec/key.c
5026
now = time_uptime;
sys/netipsec/key.c
5037
now - sav->created > sav->lft_s->sadb_lifetime_addtime) {
sys/netipsec/key.c
5095
now = time_uptime;
sys/netipsec/key.c
5105
now - sav->created > sav->lft_h->sadb_lifetime_addtime) {
sys/netipsec/key.c
5112
&& now - sav->created > sav->lft_s->sadb_lifetime_addtime) {
sys/netipsec/key.c
5167
volatile time_t now;
sys/netipsec/key.c
5174
now = time_uptime;
sys/netipsec/key.c
5176
if (now - acq->created > key_blockacq_lifetime) {
sys/netipsec/key.c
5192
time_t now = time_uptime;
sys/netipsec/key.c
5195
if (now - acq->created > key_blockacq_lifetime) {
sys/nfs/nfs_clntsubs.c
371
#define NFS_WCCKLUDGE(nmp, now) \
sys/nfs/nfs_clntsubs.c
373
((now) - (nmp)->nm_wcckludgetime - NFS_WCCKLUDGE_TIMEOUT) < 0)
sys/nfs/nfs_clntsubs.c
393
time_t now = time_second;
sys/nfs/nfs_clntsubs.c
426
if (!NFS_WCCKLUDGE(nmp, now) &&
sys/nfs/nfs_clntsubs.c
444
nmp->nm_wcckludgetime = now;
sys/nfs/nfs_clntsubs.c
446
} else if (NFS_WCCKLUDGE(nmp, now)) {
sys/nfs/nfs_serv.c
1063
struct timeval now;
sys/nfs/nfs_serv.c
1096
getmicrotime(&now);
sys/nfs/nfs_serv.c
1097
cur_usec = (u_quad_t)now.tv_sec * 1000000 + (u_quad_t)now.tv_usec;
sys/nfs/nfs_serv.c
1208
getmicrotime(&now);
sys/nfs/nfs_serv.c
1209
cur_usec = (u_quad_t)now.tv_sec * 1000000 + (u_quad_t)now.tv_usec;
sys/opencrypto/crypto.c
1500
struct timespec now, t;
sys/opencrypto/crypto.c
1502
nanouptime(&now);
sys/opencrypto/crypto.c
1503
t.tv_sec = now.tv_sec - tv->tv_sec;
sys/opencrypto/crypto.c
1504
t.tv_nsec = now.tv_nsec - tv->tv_nsec;
sys/opencrypto/crypto.c
1516
*tv = now;
sys/rump/librump/rumpvfs/rumpfs.c
906
struct timespec now;
sys/rump/librump/rumpvfs/rumpfs.c
928
getnanotime(&now);
sys/rump/librump/rumpvfs/rumpfs.c
938
vap->va_mtime = now;
sys/rump/librump/rumpvfs/rumpfs.c
943
error = rumpfs_update(flags, vp, &vap->va_atime, &vap->va_mtime, &now);
sys/sys/syscall_stats.h
105
uint32_t now = SYSCALL_TIME(); \
sys/sys/syscall_stats.h
106
uint32_t elapsed = now - (l)->l_syscall_time; \
sys/sys/syscall_stats.h
107
(l)->l_syscall_time = now; \
sys/sys/syscall_stats.h
122
uint32_t now = SYSCALL_TIME(); \
sys/sys/syscall_stats.h
123
SYSCALL_TIME_UPDATE_PROC(l, i, now - (l)->l_syscall_time); \
sys/sys/syscall_stats.h
124
(l)->l_syscall_time = now; \
sys/sys/syscall_stats.h
73
uint32_t now = SYSCALL_TIME(); \
sys/sys/syscall_stats.h
74
SYSCALL_TIME_UPDATE_PROC(l, u, elapsed = now - (l)->l_syscall_time); \
sys/sys/syscall_stats.h
76
(l)->l_syscall_time = now; \
sys/sys/syscall_stats.h
81
uint32_t now = SYSCALL_TIME(); \
sys/sys/syscall_stats.h
82
uint32_t elapsed = now - (l)->l_syscall_time; \
sys/sys/syscall_stats.h
83
(l)->l_syscall_time = now; \
sys/sys/syscall_stats.h
94
uint32_t now = SYSCALL_TIME(); \
sys/sys/syscall_stats.h
95
uint32_t elapsed = now - (l)->l_syscall_time; \
sys/sys/syscall_stats.h
96
(l)->l_syscall_time = now; \
sys/ufs/chfs/chfs_subr.c
309
struct timespec now;
sys/ufs/chfs/chfs_subr.c
315
vfs_timestamp(&now);
sys/ufs/chfs/chfs_subr.c
318
acc = &now;
sys/ufs/chfs/chfs_subr.c
323
mod = &now;
sys/ufs/chfs/chfs_subr.c
328
cre = &now;
sys/ufs/ext2fs/ext2fs_subr.c
108
struct timespec now;
sys/ufs/ext2fs/ext2fs_subr.c
114
vfs_timestamp(&now);
sys/ufs/ext2fs/ext2fs_subr.c
117
acc = &now;
sys/ufs/ext2fs/ext2fs_subr.c
122
mod = &now;
sys/ufs/ext2fs/ext2fs_subr.c
128
cre = &now;
sys/ufs/ext2fs/ext2fs_vfsops.c
1217
struct timespec now;
sys/ufs/ext2fs/ext2fs_vfsops.c
1218
vfs_timestamp(&now);
sys/ufs/ext2fs/ext2fs_vfsops.c
1219
EXT2_DINODE_TIME_SET(&now, ip->i_din.e2fs_din, e2di_crtime,
sys/ufs/ffs/ffs_inode.c
806
struct timespec now;
sys/ufs/ffs/ffs_inode.c
812
vfs_timestamp(&now);
sys/ufs/ffs/ffs_inode.c
815
acc = &now;
sys/ufs/ffs/ffs_inode.c
822
mod = &now;
sys/ufs/ffs/ffs_inode.c
830
cre = &now;
sys/ufs/lfs/lfs_itimes.c
108
mod = &now;
sys/ufs/lfs/lfs_itimes.c
117
cre = &now;
sys/ufs/lfs/lfs_itimes.c
63
struct timespec now;
sys/ufs/lfs/lfs_itimes.c
67
vfs_timestamp(&now);
sys/ufs/lfs/lfs_itimes.c
73
acc = &now;
sys/ufs/lfs/ulfs_quota2.c
431
lfsquota2_check_limit(struct quota2_val *q2v, uint64_t change, time_t now)
sys/ufs/lfs/ulfs_quota2.c
434
q2v->q2v_hardlimit, q2v->q2v_time, now);
sys/ufs/lfs/ulfs_quota2_subr.c
115
time_t expire, time_t now)
sys/ufs/lfs/ulfs_quota2_subr.c
124
if (now > expire) {
sys/ufs/ufs/quota2_subr.c
113
time_t expire, time_t now)
sys/ufs/ufs/quota2_subr.c
122
if (now > expire) {
sys/ufs/ufs/ufs_quota2.c
431
quota2_check_limit(struct quota2_val *q2v, uint64_t change, time_t now)
sys/ufs/ufs/ufs_quota2.c
434
q2v->q2v_hardlimit, q2v->q2v_time, now);
sys/uvm/uvm_pdaemon.c
557
swapcluster_flush(struct swapcluster *swc, bool now)
sys/uvm/uvm_pdaemon.c
579
if (!now) {
tests/dev/audio/audiotest.c
4078
struct timeval now, res;
tests/dev/audio/audiotest.c
4085
gettimeofday(&now, NULL);
tests/dev/audio/audiotest.c
4086
timersub(&now, &data->start, &res);
tests/kernel/kqueue/t_sig.c
107
struct timeval then, now, diff;
tests/kernel/kqueue/t_sig.c
111
RL(gettimeofday(&now, NULL));
tests/kernel/kqueue/t_sig.c
112
timersub(&now, &then, &diff);
tests/lib/libc/stdio/t_printf.c
142
time_t now;
tests/lib/libc/stdio/t_printf.c
151
time(&now);
tests/lib/libc/stdio/t_printf.c
152
srand(now);
tests/lib/libc/stdio/t_printf.c
153
printf("seed %u\n", (unsigned)now);
tests/lib/libc/sys/t_timer_create.c
436
struct timespec now;
tests/lib/libc/sys/t_timer_create.c
444
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timer_create.c
463
its.it_value.tv_sec += now.tv_sec;
tests/lib/libc/sys/t_timerfd.c
210
struct timespec now;
tests/lib/libc/sys/t_timerfd.c
216
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timerfd.c
234
its.it_value.tv_sec += now.tv_sec;
tests/lib/libc/sys/t_timerfd.c
260
struct timespec then, now, delta;
tests/lib/libc/sys/t_timerfd.c
279
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timerfd.c
282
timespecsub(&now, &then, &delta);
tests/lib/libc/sys/t_timerfd.c
286
(intmax_t)now.tv_sec, now.tv_nsec,
tests/lib/libc/sys/t_timerfd.c
301
struct timespec then, now, delta;
tests/lib/libc/sys/t_timerfd.c
322
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
325
timespecsub(&now, &then, &delta);
tests/lib/libc/sys/t_timerfd.c
329
(intmax_t)now.tv_sec, now.tv_nsec,
tests/lib/libc/sys/t_timerfd.c
344
struct timespec then, now, delta;
tests/lib/libc/sys/t_timerfd.c
359
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
364
timespecsub(&now, &then, &delta);
tests/lib/libc/sys/t_timerfd.c
368
(intmax_t)now.tv_sec, now.tv_nsec,
tests/lib/libc/sys/t_timerfd.c
383
struct timespec then, now, delta;
tests/lib/libc/sys/t_timerfd.c
407
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
410
timespecsub(&now, &then, &delta);
tests/lib/libc/sys/t_timerfd.c
414
(intmax_t)now.tv_sec, now.tv_nsec,
tests/lib/libc/sys/t_timerfd.c
430
struct timespec now;
tests/lib/libc/sys/t_timerfd.c
441
ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
444
ATF_REQUIRE(clock_settime(CLOCK_REALTIME, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
456
struct timespec now;
tests/lib/libc/sys/t_timerfd.c
461
ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
462
ATF_REQUIRE(clock_settime(CLOCK_REALTIME, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
627
struct timespec then, now;
tests/lib/libc/sys/t_timerfd.c
663
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
665
ATF_REQUIRE(now.tv_sec - then.tv_sec >= 1);
tests/lib/libc/sys/t_timerfd.c
674
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
676
ATF_REQUIRE(now.tv_sec - then.tv_sec >= 1);
tests/lib/libc/sys/t_timerfd.c
683
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
720
struct timespec then, now, delta;
tests/lib/libc/sys/t_timerfd.c
748
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
750
timespecsub(&now, &then, &delta);
tests/lib/libutil/t_parsedate.c
289
time_t now;
tests/lib/libutil/t_parsedate.c
291
#define REL_CHECK(s, now, tm) do { \
tests/lib/libutil/t_parsedate.c
294
p = parsedate(s, &now, NULL); \
tests/lib/libutil/t_parsedate.c
298
(uintmax_t)now, ctime_r(&now, nb), \
tests/lib/libutil/t_parsedate.c
319
for (now = 0x00FFFFFF; now < 0xFF000000; now += 3777779) {
tests/lib/libutil/t_parsedate.c
320
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
324
REL_CHECK("yesterday", now, tm);
tests/lib/libutil/t_parsedate.c
326
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
330
REL_CHECK("tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
332
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
339
REL_CHECK("this thursday", now, tm);
tests/lib/libutil/t_parsedate.c
341
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
345
REL_CHECK("next sunday", now, tm);
tests/lib/libutil/t_parsedate.c
347
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
354
REL_CHECK("last friday 4 p.m.", now, tm);
tests/lib/libutil/t_parsedate.c
356
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
364
REL_CHECK("we fortnight 3 a.m.", now, tm);
tests/lib/libutil/t_parsedate.c
366
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
369
REL_CHECK("5 minutes ago", now, tm);
tests/lib/libutil/t_parsedate.c
371
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
375
REL_CHECK("97 minutes", now, tm);
tests/lib/libutil/t_parsedate.c
377
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
386
REL_CHECK("month", now, tm);
tests/lib/libutil/t_parsedate.c
388
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
396
REL_CHECK("next month", now, tm);
tests/lib/libutil/t_parsedate.c
398
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
407
REL_CHECK("last month", now, tm);
tests/lib/libutil/t_parsedate.c
409
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
419
REL_CHECK("+6 months 2 days", now, tm);
tests/lib/libutil/t_parsedate.c
421
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
429
REL_CHECK("9 months ago", now, tm);
tests/lib/libutil/t_parsedate.c
431
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
437
REL_CHECK("1 week ago Tu", now, tm);
tests/lib/libutil/t_parsedate.c
439
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
443
REL_CHECK("midnight tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
445
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
449
REL_CHECK("tomorrow midnight", now, tm);
tests/lib/libutil/t_parsedate.c
451
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
456
REL_CHECK("noon tomorrow", now, tm);
tests/lib/libutil/t_parsedate.c
458
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
464
REL_CHECK("midnight Tuesday", now, tm);
tests/lib/libutil/t_parsedate.c
466
ATF_CHECK(localtime_r(&now, &tm) != NULL);
tests/lib/libutil/t_parsedate.c
473
REL_CHECK("Tuesday midnight", now, tm);
usr.bin/audio/record/record.c
373
struct timeval now, diff;
usr.bin/audio/record/record.c
375
(void)gettimeofday(&now, NULL);
usr.bin/audio/record/record.c
376
timersub(&now, start_tvp, &diff);
usr.bin/audio/record/record.c
377
timersub(record_tvp, &diff, &now);
usr.bin/audio/record/record.c
379
return (now.tv_sec > 0 || (now.tv_sec == 0 && now.tv_usec > 0));
usr.bin/cal/cal.c
220
time_t now;
usr.bin/cal/cal.c
306
(void)time(&now);
usr.bin/cal/cal.c
307
local_time = localtime(&now);
usr.bin/calendar/calendar.c
239
time_t now;
usr.bin/calendar/calendar.c
241
(void)time(&now);
usr.bin/calendar/calendar.c
242
tp = localtime(&now);
usr.bin/find/function.c
1325
COMPARE((now - entry->fts_statp->st_mtime + SECSPERMIN - 1) /
usr.bin/find/function.c
1353
COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) /
usr.bin/find/function.c
150
extern time_t now;
usr.bin/find/function.c
230
COMPARE((now - entry->fts_statp->st_atime +
usr.bin/find/function.c
315
COMPARE((now - entry->fts_statp->st_atime +
usr.bin/find/function.c
343
COMPARE((now - entry->fts_statp->st_ctime +
usr.bin/find/function.c
428
COMPARE((now - entry->fts_statp->st_ctime +
usr.bin/find/main.c
62
time_t now; /* time find was run */
usr.bin/find/main.c
80
(void)time(&now); /* initialize the time-of-day */
usr.bin/finger/extern.h
34
extern time_t now; /* Current time. */
usr.bin/finger/finger.c
155
(void)time(&now);
usr.bin/finger/finger.c
95
time_t now;
usr.bin/finger/lprint.c
266
fmt_time(timebuf, sizeof(timebuf), w->loginat, now);
usr.bin/finger/sprint.c
129
if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1))
usr.bin/finger/sprint.c
131
else if (now - w->loginat
usr.bin/finger/util.c
390
w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
usr.bin/ftp/fetch.c
1776
struct timeval then, now, td;
usr.bin/ftp/fetch.c
1815
(void)gettimeofday(&now, NULL);
usr.bin/ftp/fetch.c
1816
timersub(&now, &then, &td);
usr.bin/ftp/ftp.c
1736
struct timeval endtime, now, td;
usr.bin/ftp/ftp.c
1759
(void)gettimeofday(&now, NULL);
usr.bin/ftp/ftp.c
1760
timersub(&endtime, &now, &td);
usr.bin/ftp/progressbar.c
128
struct timeval now, wait;
usr.bin/ftp/progressbar.c
167
(void)gettimeofday(&now, NULL);
usr.bin/ftp/progressbar.c
169
timersub(&now, &lastupdate, &wait);
usr.bin/ftp/progressbar.c
171
lastupdate = now;
usr.bin/ftp/progressbar.c
246
timersub(&now, &start, &td);
usr.bin/ftp/progressbar.c
308
struct timeval now, td, wait;
usr.bin/ftp/progressbar.c
319
(void)gettimeofday(&now, NULL);
usr.bin/ftp/progressbar.c
320
timersub(&now, &start, &td);
usr.bin/ftp/progressbar.c
367
timersub(&now, &lastupdate, &wait);
usr.bin/ftp/ssl.c
114
(void)gettimeofday(&now, NULL);
usr.bin/ftp/ssl.c
115
timersub(&timeout, &now, &delta);
usr.bin/ftp/ssl.c
362
struct timeval now, delta;
usr.bin/ftp/ssl.c
378
gettimeofday(&now, NULL);
usr.bin/ftp/ssl.c
379
timersub(timeout, &now, &delta);
usr.bin/ftp/ssl.c
609
struct timeval timeout, now, delta;
usr.bin/ftp/ssl.c
690
(void)gettimeofday(&now, NULL);
usr.bin/ftp/ssl.c
691
timersub(&timeout, &now, &delta);
usr.bin/ftp/ssl.c
99
struct timeval timeout, now, delta;
usr.bin/ftp/util.c
1343
struct timeval endtime, now, td;
usr.bin/ftp/util.c
1414
(void)gettimeofday(&now, NULL);
usr.bin/ftp/util.c
1415
timersub(&endtime, &now, &td);
usr.bin/ipcs/ipcs.c
170
time_t now;
usr.bin/ipcs/ipcs.c
220
(void)time(&now);
usr.bin/ipcs/ipcs.c
223
ctime(&now));
usr.bin/leave/leave.c
77
time_t now;
usr.bin/leave/leave.c
97
(void)time(&now);
usr.bin/leave/leave.c
98
t = localtime(&now);
usr.bin/login/common.c
225
(void)gettimeofday(&now, NULL);
usr.bin/login/common.c
245
utmpx.ut_tv = now;
usr.bin/login/common.c
283
ll.ll_tv = now;
usr.bin/login/common.c
305
utmp.ut_time = now.tv_sec;
usr.bin/login/common.c
337
ll.ll_time = now.tv_sec;
usr.bin/login/common.c
82
struct timeval now;
usr.bin/login/common.h
51
extern struct timeval now;
usr.bin/login/login.c
535
(void)gettimeofday(&now, NULL);
usr.bin/login/login.c
537
if (now.tv_sec >= pwd->pw_expire) {
usr.bin/login/login.c
540
} else if (pwd->pw_expire - now.tv_sec < pw_warntime &&
usr.bin/login/login.c
548
else if (now.tv_sec >= pwd->pw_change) {
usr.bin/login/login.c
551
} else if (pwd->pw_change - now.tv_sec < pw_warntime &&
usr.bin/mail/format.c
711
time_t now;
usr.bin/mail/format.c
712
(void)time(&now);
usr.bin/mail/format.c
713
(void)localtime_r(&now, tm);
usr.bin/mail/mime_attach.c
161
time_t now;
usr.bin/mail/mime_attach.c
163
(void)time(&now);
usr.bin/mail/mime_attach.c
166
(long)now, getrandstring(BOUND_LEN - 12));
usr.bin/mail/names.c
250
time_t now;
usr.bin/mail/names.c
262
(void)time(&now);
usr.bin/mail/names.c
263
date = ctime(&now);
usr.bin/mail/send.c
549
time_t now;
usr.bin/mail/send.c
562
(void)time(&now);
usr.bin/mail/send.c
563
(void)fprintf(fo, "From %s %s", myname, ctime(&now));
usr.bin/make/arch.c
760
snprintf(arh.ar_date, sizeof arh.ar_date, "%-ld", (unsigned long)now);
usr.bin/make/arch.c
784
snprintf(arh.ar_date, sizeof arh.ar_date, "%-ld", (unsigned long)now);
usr.bin/make/arch.c
788
times.actime = times.modtime = now;
usr.bin/make/arch.c
937
gn->mtime > now ||
usr.bin/make/job.c
1375
times.actime = now;
usr.bin/make/job.c
1376
times.modtime = now;
usr.bin/make/main.c
122
time_t now; /* Time at start of make */
usr.bin/make/main.c
1462
(void)time(&now);
usr.bin/make/make.c
544
gn->mtime = now;
usr.bin/make/make.c
574
gn->mtime = now;
usr.bin/make/make.c
866
(cgn->mtime >= now && cgn->made == MADE)) {
usr.bin/make/make.h
608
extern time_t now;
usr.bin/midirecord/midirecord.c
665
struct timeval now, diff;
usr.bin/midirecord/midirecord.c
667
(void)gettimeofday(&now, NULL);
usr.bin/midirecord/midirecord.c
668
timersub(&now, start_tvp, &diff);
usr.bin/midirecord/midirecord.c
669
timersub(record_tvp, &diff, &now);
usr.bin/midirecord/midirecord.c
671
return (now.tv_sec > 0 || (now.tv_sec == 0 && now.tv_usec > 0));
usr.bin/netstat/inet.c
111
static struct timeval now;
usr.bin/netstat/inet.c
175
timersub(expires, &now, &delta);
usr.bin/netstat/inet.c
204
timersub(&vtw->expire, &now, &delta);
usr.bin/netstat/inet.c
390
gettimeofday(&now, NULL);
usr.bin/netstat/inet.c
391
timersub(&now, &t, &now);
usr.bin/netstat/inet6.c
165
static struct timeval now;
usr.bin/netstat/inet6.c
231
timersub(expires, &now, &delta);
usr.bin/netstat/inet6.c
257
timersub(&vtw->expire, &now, &delta);
usr.bin/netstat/inet6.c
402
gettimeofday(&now, NULL);
usr.bin/netstat/inet6.c
403
timersub(&now, &t, &now);
usr.bin/netstat/mroute.c
274
struct timeval now, end, delta;
usr.bin/netstat/mroute.c
276
gettimeofday(&now, NULL);
usr.bin/netstat/mroute.c
333
if (timercmp(&now, &end, <=)) {
usr.bin/netstat/mroute.c
334
timersub(&end, &now, &delta);
usr.bin/netstat/mroute.c
339
timersub(&now, &end, &delta);
usr.bin/newsyslog/newsyslog.c
1060
time_t now;
usr.bin/newsyslog/newsyslog.c
1062
now = time(NULL);
usr.bin/newsyslog/newsyslog.c
1063
tmp = localtime(&now);
usr.bin/newsyslog/newsyslog.c
434
time_t now;
usr.bin/newsyslog/newsyslog.c
436
now = time(NULL);
usr.bin/newsyslog/newsyslog.c
490
age = (int)(now - sb.st_mtime + 1800) / 3600;
usr.bin/newsyslog/newsyslog.c
512
} else if (log->trimat != (time_t)-1 && now >= log->trimat &&
usr.bin/newsyslog/newsyslog.c
514
difftime(now, log->trimat) < 60 * 60) {
usr.bin/newsyslog/newsyslog.c
684
time_t now;
usr.bin/newsyslog/newsyslog.c
706
now = time(NULL);
usr.bin/newsyslog/newsyslog.c
707
daytime = p = ctime(&now) + 4;
usr.bin/newsyslog/newsyslog.c
722
now = (time_t) tv.tv_sec;
usr.bin/newsyslog/newsyslog.c
723
tmnow = localtime(&now);
usr.bin/newsyslog/newsyslog.c
956
time_t now;
usr.bin/newsyslog/newsyslog.c
963
now = time(NULL);
usr.bin/newsyslog/newsyslog.c
964
tmp = localtime(&now);
usr.bin/quota/printquota.c
100
timeprt(char *buf, size_t len, time_t now, time_t seconds)
usr.bin/quota/printquota.c
104
if (now > seconds)
usr.bin/quota/printquota.c
107
seconds -= now;
usr.bin/quota/quota.c
341
static time_t now;
usr.bin/quota/quota.c
349
if (now == 0) {
usr.bin/quota/quota.c
350
time(&now);
usr.bin/quota/quota.c
361
now);
usr.bin/quota/quota.c
389
if (vflag || dflag || anyover(qvs, numqvs, now) ||
usr.bin/quota/quota.c
401
quota_objtype_isbytes(qup->qh, i), now);
usr.bin/quota/quota.c
437
printqv(struct quotaval *qv, int isbytes, time_t now)
usr.bin/quota/quota.c
452
over = isover(qv, now);
usr.bin/quota/quota.c
466
str = timeprt(buf, 9, now, qv->qv_expiretime);
usr.bin/quota/quota.c
568
anyover(struct quotaval *qvs, unsigned numqvs, time_t now)
usr.bin/quota/quota.c
573
if (isover(&qvs[i], now)) {
usr.bin/quota/quota.c
581
isover(struct quotaval *qv, time_t now)
usr.bin/quota/quota.c
588
getovermsg(struct quotaval *qv, const char *what, time_t now)
usr.bin/quota/quota.c
603
if (now > qv->qv_expiretime) {
usr.bin/quota/quota.c
91
static int isover(struct quotaval *qv, time_t now);
usr.bin/rump_dhcpclient/dhcp.c
748
struct timeval now;
usr.bin/rump_dhcpclient/dhcp.c
762
get_monotonic(&now);
usr.bin/rump_dhcpclient/dhcp.c
763
if (now.tv_sec + (time_t)lease->leasetime < now.tv_sec)
usr.bin/rup/rup.c
233
time_t now;
usr.bin/rup/rup.c
243
now = host_stat->curtime.tv_sec;
usr.bin/rup/rup.c
244
tmp_time = localtime(&now);
usr.bin/ruptime/ruptime.c
161
(void)time(&now);
usr.bin/ruptime/ruptime.c
167
interval(now - hsp->hs_wd->wd_recvtime, "down"));
usr.bin/ruptime/ruptime.c
258
(ISDOWN(HS(a2)) ? HS(a2)->hs_wd->wd_recvtime - now
usr.bin/ruptime/ruptime.c
261
(ISDOWN(HS(a1)) ? HS(a1)->hs_wd->wd_recvtime - now
usr.bin/ruptime/ruptime.c
63
#define ISDOWN(h) (now - (h)->hs_wd->wd_recvtime > 11 * 60)
usr.bin/ruptime/ruptime.c
68
static time_t now;
usr.bin/rwall/rwall.c
155
time_t now;
usr.bin/rwall/rwall.c
173
(void)time(&now);
usr.bin/rwall/rwall.c
174
lt = localtime(&now);
usr.bin/rwho/rwho.c
122
(void)time(&now);
usr.bin/rwho/rwho.c
143
if (DOWN(wd, now)) {
usr.bin/rwho/rwho.c
66
#define DOWN(w,now) ((now) - (w).wd_recvtime > 11 * 60)
usr.bin/rwho/rwho.c
84
time_t now;
usr.bin/rwho/rwho.c
94
now = 0;
usr.bin/skeyinit/skeyinit.c
335
(void)time(&now);
usr.bin/skeyinit/skeyinit.c
336
tm = localtime(&now);
usr.bin/skeyinit/skeyinit.c
51
time_t now;
usr.bin/skeyinit/skeyinit.c
94
(void)time(&now);
usr.bin/skeyinit/skeyinit.c
95
(void)snprintf(tbuf, sizeof(tbuf), "%05ld", (long) (now % 100000));
usr.bin/systat/ps.c
102
now = 0; /* force start2str to reget current time */
usr.bin/systat/ps.c
340
if (now == 0)
usr.bin/systat/ps.c
341
time(&now);
usr.bin/systat/ps.c
342
if (now - u_start.tv_sec < 24 * SECSPERHOUR) {
usr.bin/systat/ps.c
344
} else if (now - u_start.tv_sec < 7 * SECSPERDAY) {
usr.bin/systat/ps.c
78
static time_t now;
usr.bin/systat/syscall.c
134
time_t now;
usr.bin/systat/syscall.c
136
time(&now);
usr.bin/systat/syscall.c
137
strlcpy(buf, ctime(&now), sizeof(buf));
usr.bin/systat/vmstat.c
254
time_t now;
usr.bin/systat/vmstat.c
256
time(&now);
usr.bin/systat/vmstat.c
257
strlcpy(buf, ctime(&now), sizeof(buf));
usr.bin/unzip/unzip.c
1098
time(&now);
usr.bin/unzip/unzip.c
637
tv[0].tv_sec = now;
usr.bin/unzip/unzip.c
85
static time_t now;
usr.bin/vacation/vacation.c
583
time_t now;
usr.bin/vacation/vacation.c
587
(void)time(&now);
usr.bin/vacation/vacation.c
588
data.data = &now;
usr.bin/vacation/vacation.c
589
data.size = sizeof(now);
usr.bin/vmstat/vmstat.c
635
struct timespec now;
usr.bin/vmstat/vmstat.c
645
clock_gettime(CLOCK_REALTIME, &now);
usr.bin/vmstat/vmstat.c
658
now.tv_sec = nowsec;
usr.bin/vmstat/vmstat.c
659
now.tv_nsec = 0;
usr.bin/vmstat/vmstat.c
661
kread(timenl, X_TIME, &now, sizeof(now));
usr.bin/vmstat/vmstat.c
664
uptime = now.tv_sec - boottime.tv_sec;
usr.bin/w/pr_time.c
56
pr_attime(time_t *started, time_t *now)
usr.bin/w/pr_time.c
63
tnow_yday = localtime(now)->tm_yday;
usr.bin/w/pr_time.c
65
diff = *now - *started;
usr.bin/w/w.c
203
(void)time(&now);
usr.bin/w/w.c
323
pr_header(&now, nusers);
usr.bin/w/w.c
426
pr_attime(&then, &now);
usr.bin/w/w.c
486
uptime = now - boottime.tv_sec;
usr.bin/w/w.c
595
if ((ep->idle = now - touched) < 0)
usr.bin/w/w.c
92
time_t now; /* the current time of day */
usr.bin/wall/wall.c
192
time_t now;
usr.bin/wall/wall.c
200
(void)time(&now);
usr.bin/wall/wall.c
201
lt = localtime(&now);
usr.bin/who/who.c
231
time_t now;
usr.bin/who/who.c
253
(void)time(&now);
usr.bin/who/who.c
257
print(pw ? pw->pw_name : "?", p, now, "", getpid(), 0, 0, 0, 0);
usr.bin/who/who.c
284
static time_t now = 0;
usr.bin/who/who.c
300
if (now == 0)
usr.bin/who/who.c
301
time(&now);
usr.bin/who/who.c
305
idle = now - sb.st_atime;
usr.bin/write/write.c
221
time_t now;
usr.bin/write/write.c
243
now = time(NULL);
usr.bin/write/write.c
244
nows = ctime(&now);
usr.sbin/autofs/autounmountd.c
182
time_t now;
usr.sbin/autofs/autounmountd.c
186
now = time(NULL);
usr.sbin/autofs/autounmountd.c
191
mounted_for = (time_t)difftime(now, af->af_mount_time);
usr.sbin/inetd/ratelimit.c
311
rl_reset(struct servtab *sep, time_t now)
usr.sbin/inetd/ratelimit.c
314
SERV_PARAMS(sep), (intmax_t)(now - sep->se_time));
usr.sbin/inetd/ratelimit.c
317
sep->se_time = now;
usr.sbin/inetd/ratelimit.c
350
rl_process_service_max(struct servtab *sep, int ctrl, time_t *now)
usr.sbin/inetd/ratelimit.c
353
if (*now == -1) {
usr.sbin/inetd/ratelimit.c
355
*now = rl_time();
usr.sbin/inetd/ratelimit.c
358
if (*now - sep->se_time > CNT_INTVL) {
usr.sbin/inetd/ratelimit.c
359
rl_reset(sep, *now);
usr.sbin/inetd/ratelimit.c
393
rl_process_ip_max(struct servtab *sep, int ctrl, time_t *now) {
usr.sbin/inetd/ratelimit.c
423
if (*now == -1) {
usr.sbin/inetd/ratelimit.c
424
*now = rl_time();
usr.sbin/inetd/ratelimit.c
427
if (*now - sep->se_time > CNT_INTVL) {
usr.sbin/inetd/ratelimit.c
428
rl_reset(sep, *now);
usr.sbin/inetd/ratelimit.c
80
time_t now = -1;
usr.sbin/inetd/ratelimit.c
89
now = rl_time();
usr.sbin/inetd/ratelimit.c
90
sep->se_time = now;
usr.sbin/inetd/ratelimit.c
93
if (!rl_process_service_max(sep, ctrl, &now)
usr.sbin/inetd/ratelimit.c
94
|| !rl_process_ip_max(sep, ctrl, &now)) {
usr.sbin/makefs/udf.c
163
time_t now;
usr.sbin/makefs/udf.c
164
(void)time(&now);
usr.sbin/makefs/udf.c
165
(void)localtime_r(&now, &tm);
usr.sbin/map-mbone/mapper.c
760
time_t now = time(0);
usr.sbin/map-mbone/mapper.c
761
char *nowstr = ctime(&now);
usr.sbin/mmcformat/mmcformat.c
67
print_eta(uint32_t progress, uint64_t now, uint64_t start_time)
usr.sbin/mmcformat/mmcformat.c
76
tbusy = now - start_time;
usr.sbin/moused/moused.c
2765
static struct timeval now;
usr.sbin/moused/moused.c
2794
gettimeofday(&now, NULL);
usr.sbin/mrinfo/mrinfo.c
430
struct timeval tv, now;
usr.sbin/mrinfo/mrinfo.c
441
gettimeofday(&now, 0);
usr.sbin/mrinfo/mrinfo.c
442
tv.tv_sec = et.tv_sec - now.tv_sec;
usr.sbin/mrinfo/mrinfo.c
443
tv.tv_usec = et.tv_usec - now.tv_usec;
usr.sbin/mrouted/main.c
108
struct timeval sched, *svp = &sched, now, *nvp = &now;
usr.sbin/mrouted/main.c
634
struct timeval now;
usr.sbin/mrouted/main.c
650
gettimeofday(&now,NULL);
usr.sbin/mrouted/main.c
651
t = now.tv_sec;
usr.sbin/mrouted/main.c
654
fprintf(stderr, "%s.%03ld %s", tbuf, (long)now.tv_usec / 1000,
usr.sbin/ndbootd/ndbootd.c
319
time_t now;
usr.sbin/ndbootd/ndbootd.c
535
now = time(NULL);
usr.sbin/ndbootd/ndbootd.c
568
if ((last_rarp_time + NDBOOTD_CLIENT_TTL_SECONDS) < now
usr.sbin/ndbootd/ndbootd.c
593
last_rarp_time = now;
usr.sbin/ndbootd/ndbootd.c
641
if ((last_open_time + NDBOOTD_CLIENT_TTL_SECONDS) < now) {
usr.sbin/ndbootd/ndbootd.c
710
last_open_time = now;
usr.sbin/rbootd/rbootd.c
274
struct timeval now;
usr.sbin/rbootd/rbootd.c
276
(void) gettimeofday(&now, (struct timezone *)0);
usr.sbin/rbootd/rbootd.c
283
if ((rtmp->tstamp.tv_sec + RMP_TIMEOUT) < now.tv_sec) {
usr.sbin/repquota/repquota.c
119
static int isover(struct quotaval *qv, time_t now);
usr.sbin/repquota/repquota.c
286
time_t now;
usr.sbin/repquota/repquota.c
314
time(&now);
usr.sbin/repquota/repquota.c
333
if (isover(&q[i], now)) {
usr.sbin/repquota/repquota.c
334
timemsg[i] = timeprt(b0[i], 8, now,
usr.sbin/repquota/repquota.c
569
isover(struct quotaval *qv, time_t now)
usr.sbin/rpc.statd/statd.c
181
time_t now;
usr.sbin/rpc.statd/statd.c
187
now = time(NULL);
usr.sbin/rpc.statd/statd.c
189
(void) walk_db(notify_one, &now);
usr.sbin/rpc.statd/statd.c
191
if (walk_db(check_work, &now) == 0) {
usr.sbin/rpc.statd/statd.c
437
time_t now = *(time_t *) ptr;
usr.sbin/rpc.statd/statd.c
441
if (hi->notifyReqd == 0 || hi->notifyReqd > now)
usr.sbin/rpc.statd/statd.c
534
time_t now = time(NULL);
usr.sbin/rpc.statd/statd.c
535
walk_db(reset_host, &now);
usr.sbin/rpc.statd/statd.c
553
time_t now = time(NULL);
usr.sbin/rpc.statd/statd.c
554
walk_db(unmon_host, &now);
usr.sbin/rtadvd/config.c
1118
struct timespec now;
usr.sbin/rtadvd/config.c
1136
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/config.c
1140
vltime = (pfx->vltimeexpire > now.tv_sec) ?
usr.sbin/rtadvd/config.c
1141
pfx->vltimeexpire - now.tv_sec : 0;
usr.sbin/rtadvd/config.c
1149
pltime = (pfx->pltimeexpire > now.tv_sec) ?
usr.sbin/rtadvd/config.c
1150
pfx->pltimeexpire - now.tv_sec : 0;
usr.sbin/rtadvd/config.c
458
struct timespec now;
usr.sbin/rtadvd/config.c
459
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/config.c
461
now.tv_sec + pfx->validlifetime;
usr.sbin/rtadvd/config.c
478
struct timespec now;
usr.sbin/rtadvd/config.c
479
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/config.c
481
now.tv_sec + pfx->preflifetime;
usr.sbin/rtadvd/dump.c
104
struct timespec now;
usr.sbin/rtadvd/dump.c
106
prog_clock_gettime(CLOCK_MONOTONIC, &now); /* XXX: unused in most cases */
usr.sbin/rtadvd/dump.c
182
(pfx->vltimeexpire > now.tv_sec ?
usr.sbin/rtadvd/dump.c
183
pfx->vltimeexpire - now.tv_sec : 0));
usr.sbin/rtadvd/dump.c
192
(pfx->pltimeexpire > now.tv_sec ?
usr.sbin/rtadvd/dump.c
193
pfx->pltimeexpire - now.tv_sec : 0));
usr.sbin/rtadvd/rtadvd.c
1022
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1023
timespecsub(&now, &rai->lastsent, &tm_tmp);
usr.sbin/rtadvd/rtadvd.c
1203
struct timespec now;
usr.sbin/rtadvd/rtadvd.c
1252
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1253
preferred_time += now.tv_sec;
usr.sbin/rtadvd/rtadvd.c
1288
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1289
valid_time += now.tv_sec;
usr.sbin/rtadvd/rtadvd.c
996
struct timespec interval, now, min_delay, tm_tmp, *rest;
usr.sbin/rtadvd/timer.c
102
struct timespec now;
usr.sbin/rtadvd/timer.c
105
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/timer.c
106
timespecadd(&now, tm, &timer->tm);
usr.sbin/rtadvd/timer.c
125
struct timespec now;
usr.sbin/rtadvd/timer.c
128
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/timer.c
134
if (timespeccmp(&tm->tm, &now, <=)) {
usr.sbin/rtadvd/timer.c
139
timespecadd(&tm->tm, &now, &tm->tm);
usr.sbin/rtadvd/timer.c
147
if (timespeccmp(&tm_max, &now, <)) {
usr.sbin/rtadvd/timer.c
151
timespecsub(&tm_max, &now, &returnval);
usr.sbin/rtadvd/timer.c
159
struct timespec now;
usr.sbin/rtadvd/timer.c
161
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/timer.c
162
if (timespeccmp(&timer->tm, &now, <=)) {
usr.sbin/rtadvd/timer.c
171
timespecsub(&timer->tm, &now, &returnval);
usr.sbin/rwhod/rwhod.c
132
struct timeval delta, next, now;
usr.sbin/rwhod/rwhod.c
224
gettimeofday(&now, NULL);
usr.sbin/rwhod/rwhod.c
225
timeradd(&now, &delta, &next);
usr.sbin/rwhod/rwhod.c
243
(void)gettimeofday(&now, NULL);
usr.sbin/rwhod/rwhod.c
244
if (timercmp(&now, &next, >)) {
usr.sbin/rwhod/rwhod.c
246
timeradd(&now, &delta, &next);
usr.sbin/rwhod/rwhod.c
366
time_t now;
usr.sbin/rwhod/rwhod.c
371
now = time(NULL);
usr.sbin/rwhod/rwhod.c
405
we->we_idle = htonl(now - stb.st_atime);
usr.sbin/sysinst/configmenu.c
139
time_t now = time(NULL);
usr.sbin/sysinst/configmenu.c
140
struct tm *lt = localtime(&now);
usr.sbin/sysinst/configmenu.c
695
time_t now;
usr.sbin/sysinst/configmenu.c
708
now = time(NULL);
usr.sbin/sysinst/configmenu.c
710
menu_arg.new_time = *localtime(&now);
usr.sbin/sysinst/main.c
718
time_t now = time(NULL);
usr.sbin/sysinst/main.c
720
if (now >= BUILD_TIMESTAMP - 2*86400)
usr.sbin/sysinst/net.c
557
time_t now;
usr.sbin/sysinst/net.c
828
time(&now);
usr.sbin/sysinst/net.c
830
"Created by NetBSD sysinst on", safectime(&now));
usr.sbin/syslogd/extern.h
56
extern time_t now;
usr.sbin/syslogd/sign.c
146
GlobalSign.rsid = now;
usr.sbin/syslogd/syslogd.c
171
time_t now;
usr.sbin/syslogd/syslogd.c
1879
current = gmtime(&now);
usr.sbin/syslogd/syslogd.c
2008
&& (now - f->f_time) < MarkInterval / 2)
usr.sbin/syslogd/syslogd.c
2028
f->f_prevcount, (long)(now - f->f_time),
usr.sbin/syslogd/syslogd.c
2036
if (now > REPEATTIME(f)) {
usr.sbin/syslogd/syslogd.c
2240
f->f_time = now;
usr.sbin/syslogd/syslogd.c
2848
now = time(NULL);
usr.sbin/syslogd/syslogd.c
2856
if (f->f_prevcount && now >= REPEATTIME(f)) {
usr.sbin/syslogd/syslogd.c
4783
mytime = now = tv.tv_sec;
usr.sbin/timed/timed/correct.c
123
struct timeval now;
usr.sbin/timed/timed/correct.c
174
(void) gettimeofday(&now, 0);
usr.sbin/timed/timed/correct.c
175
timeradd(&now, corr, &now);
usr.sbin/timed/timed/correct.c
176
if (settimeofday(&now, 0) < 0)
usr.sbin/timed/timed/correct.c
186
adj_msg_time(struct tsp *msg, struct timeval *now)
usr.sbin/timed/timed/correct.c
190
timersub(now, &from_when, &diff);
usr.sbin/timed/timed/master.c
730
struct timeval now, tmptv;
usr.sbin/timed/timed/master.c
744
(void)gettimeofday(&now, 0);
usr.sbin/timed/timed/master.c
745
if (now.tv_sec >= fromnet->slvwait.tv_sec+3
usr.sbin/timed/timed/master.c
746
|| now.tv_sec < fromnet->slvwait.tv_sec) {
usr.sbin/timed/timedc/cmds.c
188
struct timeval now;
usr.sbin/timed/timedc/cmds.c
191
(void)gettimeofday(&now, NULL);
usr.sbin/timed/timedc/cmds.c
192
return (sec - now.tv_sec);
usr.sbin/traceroute/traceroute.c
1073
struct timeval now, wait;
usr.sbin/traceroute/traceroute.c
1083
(void)gettimeofday(&now, NULL);
usr.sbin/traceroute/traceroute.c
1084
tvsub(&wait, &now);
usr.sbin/ypbind/ypbind.c
708
time_t now;
usr.sbin/ypbind/ypbind.c
788
(void)time(&now);
usr.sbin/ypbind/ypbind.c
789
if (dom->dom_state == DOM_ALIVE && now < dom->dom_asktime + 5) {
usr.sbin/ypbind/ypbind.c
795
if (dom->dom_checktime >= now) {
usr.sbin/ypbind/ypbind.c
801
dom->dom_asktime = now;