Searched refs:now (Results 376 - 400 of 672) sorted by path

<<11121314151617181920>>

/freebsd-11-stable/usr.sbin/rtadvd/
H A Dtimer.c158 struct timespec now; local
161 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
164 if (TS_CMP(&rat->rat_tm, &now, <=)) {
169 TS_ADD(&rat->rat_tm, &now, &rat->rat_tm);
177 } else if (TS_CMP(&tm_max, &now, <)) {
181 TS_SUB(&tm_max, &now, &returnval);
188 struct timespec now; local
191 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
192 TS_ADD(&now, tm, &rat->rat_tm);
H A Dtimer_subr.c46 static struct timespec returnval, now; local
48 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
49 if (TS_CMP(&rat->rat_tm, &now, <=)) {
56 TS_SUB(&rat->rat_tm, &now, &returnval);
/freebsd-11-stable/usr.sbin/rtsold/
H A Ddump.c62 struct timespec now; local
65 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
93 (ifi->expire.tv_sec < now.tv_sec) ? "expired"
145 struct timespec now; local
148 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
151 tsec -= now.tv_sec;
152 tsec -= now.tv_nsec / 1000 / 1000000;
H A Drtsold.c554 struct timespec now, rtsol_timer; local
560 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
565 if (TS_CMP(&ifi->expire, &now, <=)) {
659 if (TS_CMP(&now, &rao->rao_expire,
683 } else if (TS_CMP(&rtsol_timer, &now, <))
687 TS_SUB(&rtsol_timer, &now, &returnval);
689 now.tv_sec += returnval.tv_sec;
690 now.tv_nsec += returnval.tv_nsec;
692 sec2str(&now));
703 struct timespec now; local
[all...]
/freebsd-11-stable/usr.sbin/rwhod/
H A Drwhod.c454 time_t now; local
464 now = time(NULL);
490 we->we_idle = htonl(now - stb.st_atime);
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dcorrect.c107 * adjust our own clock now that we are not sending it out
120 struct timeval now; local
165 (void) gettimeofday(&now, 0);
166 timevaladd(&now, corr);
167 if (settimeofday(&now, 0) < 0)
177 adj_msg_time(struct tsp *msg, struct timeval *now) argument
179 msg->tsp_time.tv_sec += (now->tv_sec - from_when.tv_sec);
180 msg->tsp_time.tv_usec += (now->tv_usec - from_when.tv_usec);
H A Dmaster.c735 struct timeval now, tmptv; local
749 (void)gettimeofday(&now, NULL);
750 if (now.tv_sec >= fromnet->slvwait.tv_sec+3
751 || now.tv_sec < fromnet->slvwait.tv_sec) {
/freebsd-11-stable/usr.sbin/timed/timedc/
H A Dcmds.c84 struct timeval tout, now; local
132 (void)gettimeofday(&now, NULL);
133 return (sec - now.tv_sec);
/freebsd-11-stable/bin/ps/
H A Dps.c101 time_t now; /* Current time(3) value */ variable
193 time(&now); /* Used by routines in print.c. */
238 * now it will not be described in the man page.
275 * `-g' option. So we skip it for now.
945 * option was simply ignored), but now they are fatal
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zfs/
H A Dzfs_main.c981 * -d If we can't destroy now, mark for deferred destruction
5847 time_t now = time(NULL); local
5848 if (last_spin_time + SPINNER_TIME < now) {
5850 last_spin_time = now;
6128 time_t now = time(NULL); local
6134 } else if (current != total && last_progress_time + MOUNT_TIME >= now) {
6139 last_progress_time = now;
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c5823 hrtime_t now; local
5827 while ((now = gethrtime()) < zs->zs_thread_stop) {
5831 if (now > zs->zs_thread_kill)
5848 if (now >= call_next &&
6190 * so that the only way to record changes from now on is the ZIL.
6673 hrtime_t now = gethrtime(); local
6675 now = MIN(now, zs->zs_proc_stop);
6676 print_time(zs->zs_proc_stop - now, timebuf);
6686 100.0 * (now
[all...]
/freebsd-11-stable/contrib/apr/locks/unix/
H A Dproc_mutex.c157 apr_time_t now; local
160 now = apr_time_now();
161 sec = apr_time_sec(now);
162 usec = apr_time_usec(now);
662 new_mutex->curr_locked = 0; /* mutex created now */
/freebsd-11-stable/contrib/apr/time/unix/
H A Dtime.c325 struct timeval now; local
329 gettimeofday(&now, NULL);
330 t1 = now.tv_sec;
/freebsd-11-stable/contrib/bmake/
H A Dmain.c155 time_t now; /* Time at start of make */ variable
932 * Have now read the entire graph and need to make a list of
945 * now that any .BEGIN and .END targets have been read.
1218 * Find where we are (now).
1303 (void)time(&now);
1509 /* print the graph now it's been processed if the user requested it */
H A Dmake.h429 extern time_t now; /* The time at the start of this whole
/freebsd-11-stable/contrib/less/
H A Dforwback.c54 time_type now = get_time(); local
55 if (now == last_eof_bell) /* max once per second */
57 last_eof_bell = now;
/freebsd-11-stable/contrib/libarchive/cpio/
H A Dcpio.c624 * that can now be flushed.
1152 static time_t now; local
1162 if (!now)
1163 time(&now);
1196 if (mtime - now > 365*86400/2
1197 || mtime - now < -365*86400/2)
1202 if (mtime - now > 365*86400/2
1203 || mtime - now < -365*86400/2)
/freebsd-11-stable/contrib/libarchive/cpio/test/
H A Dtest_format_newc.c87 time_t t, t2, now; local
166 now = time(NULL); /* They were all created w/in last two seconds. */
211 failure("t=%#08jx now=%#08jx=%jd", (intmax_t)t, (intmax_t)now,
212 (intmax_t)now);
213 assert(t <= now); /* File wasn't created in future. */
214 failure("t=%#08jx now - 2=%#08jx=%jd", (intmax_t)t, (intmax_t)now - 2,
215 (intmax_t)now - 2);
216 assert(t >= now
[all...]
H A Dtest_option_c.c70 time_t t, now; local
95 now = time(NULL); /* They were all created w/in last two seconds. */
142 assert(t <= now); /* File wasn't created in future. */
143 assert(t >= now - 2); /* File was created w/in last 2 secs. */
168 assert(t <= now); /* File wasn't created in future. */
169 assert(t >= now - 2); /* File was created w/in last 2 secs. */
204 assert(t <= now); /* File wasn't created in future. */
205 assert(t >= now - 2); /* File was created w/in last 2 secs. */
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_getdate.c404 /* "now", "tomorrow" */
631 { 0, "now", tSEC_UNIT, 0 },
801 time_t t, now; local
823 now = Start;
824 now += DAY * ((DayNumber - tm->tm_wday + 7) % 7);
825 now += 7 * DAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
827 return DSTcorrect(Start, now);
828 return now - Start;
985 __archive_get_date(time_t now, const char *p) argument
1009 tm = localtime_r(&now,
1152 time_t now = time(NULL); local
[all...]
H A Darchive_getdate.h37 time_t __archive_get_date(time_t now, const char *);
H A Darchive_match.c108 time_t now; member in struct:archive_match
236 time(&a->now);
1110 t = get_date(a->now, datestr);
1139 t = get_date(a->now, as.s);
H A Darchive_write_set_format_warc.c56 time_t now; member in struct:warc_s
142 w->now = time(NULL);
146 w->rng = (unsigned int)w->now;
202 wi.rtime = w->now;
203 wi.mtime = w->now;
209 /* now also use HDR buffer for the actual warcinfo */
243 rh.rtime = w->now;
283 /* now then, out we put the whole shebang */
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_compression_store.c47 static time_t now; variable
90 archive_entry_set_mtime(entry, now, 0);
91 archive_entry_set_atime(entry, now + 3, 0);
104 archive_entry_set_mtime(entry, now, 0);
105 archive_entry_set_ctime(entry, now + 5, 0);
131 struct tm *tm = localtime(&now);
188 assertEqualInt(i4(p + 5), now); /* 'UT' mtime */
189 assertEqualInt(i4(p + 9), now + 3); /* 'UT' atime */
214 assertEqualInt(i4(q + 5), now); /* 'UT' mtime */
215 assertEqualInt(i4(q + 9), now
[all...]
/freebsd-11-stable/contrib/libarchive/tar/
H A Dutil.c195 /* If we allocated a heap-based formatting buffer, free it now. */
587 * we're comparing two paths. Right now, it just handles leading
668 static time_t now; local
689 if (!now)
690 time(&now);
744 if (tim < now - HALF_YEAR || tim > now + HALF_YEAR)

Completed in 456 milliseconds

<<11121314151617181920>>