Searched refs:now (Results 326 - 350 of 672) sorted by path

<<11121314151617181920>>

/freebsd-11-stable/usr.bin/fetch/
H A Dfetch.c287 struct timeval now; local
295 gettimeofday(&now, NULL);
296 if (!force && now.tv_sec <= xs->last.tv_sec)
299 xs->last = now;
560 * Whatever value sb.st_size has now is either
945 warnx("the -H option is now implicit, "
/freebsd-11-stable/usr.bin/find/
H A Dextern.h122 extern time_t now;
H A Dfunction.c257 COMPARE((now - entry->fts_statp->st_ctime +
260 COMPARE((now - entry->fts_statp->st_atime +
263 COMPARE((now - entry->fts_statp->st_birthtime +
266 COMPARE((now - entry->fts_statp->st_mtime +
313 COMPARE(now - xtime, plan->t_data.tv_sec);
315 COMPARE((now - xtime + 86400 - 1) / 86400, plan->t_data.tv_sec);
H A Dgetdate.y104 ** yacc had the %union construct.) Maybe someday; right now we only use
398 { "now", tMINUTE_UNIT, 0 },
638 time_t now;
640 now = Start;
641 tm = localtime(&now);
642 now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7);
643 now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1);
644 return DSTcorrect(Start, now);
867 that comment now applies to *gmt_ptr, but I am too
H A Dmain.c64 time_t now; /* time find was run */ variable
87 (void)time(&now); /* initialize the time-of-day */
/freebsd-11-stable/usr.bin/finger/
H A Dextern.h43 extern time_t now;
H A Dfinger.c89 time_t now; variable
199 (void)time(&now);
H A Dlprint.c209 if (now - w->loginat > 86400 * 365 / 2) {
H A Dsprint.c130 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) {
137 if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) {
H A Dutil.c317 w->idletime = now < touched ? 0 : now - touched;
/freebsd-11-stable/usr.bin/grdc/
H A Dgrdc.c29 static struct timespec now; variable in typeref:struct:timespec
142 clock_gettime(CLOCK_REALTIME_FAST, &now);
143 prev_sec = now.tv_sec;
146 tm = localtime(&now.tv_sec);
200 clock_gettime(CLOCK_REALTIME_FAST, &now);
201 if (now.tv_sec == prev_sec) {
204 delay.tv_nsec = 1000000000 - now.tv_nsec;
210 clock_gettime(CLOCK_REALTIME_FAST, &now);
212 n -= now.tv_sec - prev_sec;
213 prev_sec = now
[all...]
/freebsd-11-stable/usr.bin/leave/
H A Dleave.c69 time_t now; local
106 (void)time(&now);
107 t = localtime(&now);
129 secs -= now % 60; /* truncate (now + secs) to min */
/freebsd-11-stable/usr.bin/mail/
H A Dnames.c285 time_t now; local
291 (void)time(&now);
292 date = ctime(&now);
412 * the list; now for sake of header expansion
H A Dsend.c568 time_t now; local
579 (void)time(&now);
580 fprintf(fo, "From %s %s", myname, ctime(&now));
/freebsd-11-stable/usr.bin/resizewin/
H A Dresizewin.c64 struct timeval then, now; local
118 gettimeofday(&now, NULL);
119 timersub(&now, &then, &now);
120 if (now.tv_sec >= 2) {
/freebsd-11-stable/usr.bin/rwall/
H A Drwall.c130 time_t now; local
148 time(&now);
149 lt = localtime(&now);
/freebsd-11-stable/usr.bin/rwho/
H A Drwho.c69 #define down(w,now) ((now) - (w)->wd_recvtime > 11 * 60)
80 static time_t now; variable
139 (void) time(&now);
154 if (down(w, now) != 0) {
/freebsd-11-stable/usr.bin/systat/
H A Dkeyboard.c57 struct timeval last, intvl, now, tm; local
69 (void)gettimeofday(&now, NULL);
70 tm.tv_sec = last.tv_sec + intvl.tv_sec - now.tv_sec;
71 tm.tv_usec = last.tv_usec + intvl.tv_usec - now.tv_usec;
/freebsd-11-stable/usr.bin/touch/
H A Dtouch.c220 time_t now; local
225 now = time(NULL);
226 if ((t = localtime(&now)) == NULL)
284 time_t now; local
287 now = time(NULL);
288 if ((t = localtime(&now)) == NULL)
/freebsd-11-stable/usr.bin/w/
H A Dpr_time.c53 pr_attime(time_t *started, time_t *now) argument
62 tm = *localtime(now);
63 diff = *now - *started;
74 /* else if (*now / 86400 != *started / 86400) { */
H A Dw.c95 static time_t now; /* the current time of day */ variable
203 (void)time(&now);
249 if ((ep->idle = now - touched) < 0)
257 pr_header(&now, nusers);
441 longattime = pr_attime(&t, &now);
/freebsd-11-stable/usr.bin/wall/
H A Dwall.c194 time_t now; local
216 (void)time(&now);
217 lt = localtime(&now);
/freebsd-11-stable/usr.bin/write/
H A Dwrite.c247 time_t now; local
269 now = time((time_t *)NULL);
270 nows = ctime(&now);
/freebsd-11-stable/usr.sbin/ac/
H A Dac.c330 * now lose it
410 struct timeval prev_secs, ut_timecopy, secs, clock_shift, now; local
478 (void)gettimeofday(&now, NULL);
482 usht.ut_tv = now;
500 * anyone still logged in gets time up to now
505 show_today(now);
/freebsd-11-stable/usr.sbin/autofs/
H A Dautounmountd.c186 time_t now; local
190 now = time(NULL);
195 mounted_for = difftime(now, af->af_mount_time);

Completed in 208 milliseconds

<<11121314151617181920>>