Searched refs:now (Results 351 - 375 of 672) sorted by path

<<11121314151617181920>>

/freebsd-11-stable/usr.sbin/bluetooth/bthidd/
H A Dbthidd.c226 struct timeval now; local
228 gettimeofday(&now, NULL);
230 if (now.tv_sec - last.tv_sec >= tval) {
231 last = now;
/freebsd-11-stable/usr.sbin/bluetooth/btpand/
H A Devent.c91 struct timeval now, timeout, t; local
98 gettimeofday(&now, NULL);
116 if (tv_cmp(&now, &ev->expire) >= 0)
120 tv_sub(&t, &now);
154 gettimeofday(&now, NULL);
191 if (tv_cmp(&now, &ev->expire) >= 0) {
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hast/
H A Dhast_snmp.c277 static uint64_t now; local
282 now = get_ticks();
283 if (now - last_resources_update < UPDATE_INTERVAL)
286 last_resources_update = now;
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c80 uint64_t now; local
106 now = ((uint64_t)right_now.tv_sec * 100) + (right_now.tv_usec / 10000);
108 if (now - kernel_boot > UINT32_MAX)
111 *ut = now - kernel_boot;
331 /* now make UTC from it */
335 /* now apply timezone if specified */
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_lm75/
H A Dsnmp_lm75.c253 static uint64_t now; local
255 now = get_ticks();
256 if (now - last_sensors_update < UPDATE_INTERVAL)
259 last_sensors_update = now;
/freebsd-11-stable/usr.sbin/cron/crontab/
H A Dcrontab.c510 time_t now = time(NULL); local
531 fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now));
/freebsd-11-stable/usr.sbin/cron/lib/
H A Dmisc.c209 /* CRONDIR okay (now==CWD), now look at SPOOL_DIR ("tabs" or some such)
291 /* ch is now the first character of a line.
300 /* ch is now the first non-blank character of a line.
313 /* ch is now the newline of a line which we're going to
395 TIME_T now = time((TIME_T) 0); local
396 register struct tm *t = localtime(&now);
/freebsd-11-stable/usr.sbin/ctm/ctm_rmail/
H A Derror.c69 time_t now; local
83 time(&now);
84 tm = localtime(&now);
/freebsd-11-stable/usr.sbin/ctm/mkCTM/
H A DmkCTM126 puts "problems, stopping now."
136 puts "testing, stopping now."
143 exec echo now applying > $CTMlock
/freebsd-11-stable/usr.sbin/fifolog/fifolog_reader/
H A Dfifolog_reader.c53 Render(void *priv __unused, time_t now, unsigned flag __unused, const unsigned char *p, unsigned l __unused) argument
59 if (now < opt_B || now > opt_E)
68 (void)gmtime_r(&now, &utc);
73 fprintf(fo, "%12ld %s\n", (long)now, p);
/freebsd-11-stable/usr.sbin/fifolog/lib/
H A Dfifolog_reader.c54 time_t now; member in struct:fifolog_reader
224 fr->now = be32dec(p + 4);
239 func(priv, fr->now, u, p + w, v);
H A Dfifolog_write.h72 int fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len);
73 int fifolog_write_poll(struct fifolog_writer *f, time_t now);
74 int fifolog_write_record_poll(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len);
H A Dgetdate.y66 ** yacc had the %union construct.) Maybe someday; right now we only use
378 { "now", tMINUTE_UNIT, 0 },
627 time_t now;
629 now = Start;
630 tm = localtime(&now);
631 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
632 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
633 return DSTcorrect(Start, now);
834 that comment now applies to *gmt_ptr, but I am too
/freebsd-11-stable/usr.sbin/mfiutil/
H A Dmfi_patrol.c46 adapter_time(time_t now, uint32_t at_now, uint32_t at) argument
50 t = (now - at_now) + at;
87 time_t now; local
99 time(&now);
123 printf(" Next Run Starts: %s", adapter_time(now, at,
254 time_t now; local
315 time(&now);
323 adapter_time(now, at, prop.next_exec));
/freebsd-11-stable/usr.sbin/moused/
H A Dmoused.c3093 * it's not allowed now; just igore it.
3236 static struct timespec now; local
3265 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
/freebsd-11-stable/usr.sbin/ndp/
H A Dndp.c416 struct timeval now; local
418 gettimeofday(&now, 0);
419 expire_time = now.tv_sec + 20 * 60;
567 struct timeval now; local
660 gettimeofday(&now, 0);
662 ts_print(&now);
682 if (expire > now.tv_sec)
683 printf(" %-9.9s", sec2str(expire - now.tv_sec));
1063 struct timeval now; local
1098 gettimeofday(&now,
1116 struct timeval now; local
[all...]
/freebsd-11-stable/usr.sbin/pc-sysinstall/backend/
H A Dstartautoinstall.sh126 shutdown -r now
/freebsd-11-stable/usr.sbin/ppp/
H A Dbundle.c272 * The given fsm is now up
367 /* The given fsm is now down (fp cannot be NULL)
1178 time_t now = time(NULL); local
1185 unsigned up = now - bundle->upat;
1197 bundle->idle.done = now + secs;
1244 time_t now = time(NULL); local
1254 bundle->session.done = now + secs;
/freebsd-11-stable/usr.sbin/pw/
H A Dpw_log.c48 time_t now; local
105 now = time(NULL);
106 t = localtime(&now);
/freebsd-11-stable/usr.sbin/repquota/
H A Drepquota.c349 static time_t now; local
351 if (now == 0)
352 time(&now);
353 if (now > seconds) {
357 seconds -= now;
/freebsd-11-stable/usr.sbin/rpc.umntall/
H A Drpc.umntall.c62 time_t expire, now; local
97 time(&now);
112 if (mtab->mtab_time + expire < now) {
/freebsd-11-stable/usr.sbin/rtadvctl/
H A Drtadvctl.c421 struct timespec now, ts0, ts; local
470 clock_gettime(CLOCK_REALTIME_FAST, &now);
472 TS_SUB(&now, &ts, &ts0);
765 struct timespec now; local
767 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
792 ((long)pfx->pfx_vltimeexpire > now.tv_sec) ?
793 sec2str(pfx->pfx_vltimeexpire - now.tv_sec, ssbuf) :
804 ((long)pfx->pfx_pltimeexpire > now.tv_sec) ?
805 sec2str(pfx->pfx_pltimeexpire - now.tv_sec, ssbuf) :
/freebsd-11-stable/usr.sbin/rtadvd/
H A Dconfig.c570 struct timespec now; local
572 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
574 now.tv_sec + pfx->pfx_validlifetime;
591 struct timespec now; local
593 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
595 now.tv_sec + pfx->pfx_preflifetime;
1429 struct timespec now; local
1446 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
1450 vltime = ((time_t)pfx->pfx_vltimeexpire > now.tv_sec) ?
1451 pfx->pfx_vltimeexpire - now
[all...]
H A Drrenum.c218 struct timespec now; local
230 &now);
232 now.tv_sec +
238 &now);
240 now.tv_sec +
H A Drtadvd.c767 * If we happen to receive data on an interface which is now gone
999 struct timespec interval, now, min_delay, tm_tmp, *rest; local
1027 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
1028 TS_SUB(&now, &ifi->ifi_ra_lastsent, &tm_tmp);
1237 struct timespec now; local
1280 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
1281 preferred_time += now.tv_sec;
1313 clock_gettime(CLOCK_MONOTONIC_FAST, &now);
1314 valid_time += now.tv_sec;

Completed in 203 milliseconds

<<11121314151617181920>>