/freebsd-11-stable/usr.bin/fetch/ |
H A D | fetch.c | 287 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 D | extern.h | 122 extern time_t now;
|
H A D | function.c | 257 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 D | getdate.y | 104 ** 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 D | main.c | 64 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 D | extern.h | 43 extern time_t now;
|
H A D | finger.c | 89 time_t now; variable 199 (void)time(&now);
|
H A D | lprint.c | 209 if (now - w->loginat > 86400 * 365 / 2) {
|
H A D | sprint.c | 130 if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1)) { 137 if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2) {
|
H A D | util.c | 317 w->idletime = now < touched ? 0 : now - touched;
|
/freebsd-11-stable/usr.bin/grdc/ |
H A D | grdc.c | 29 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 D | leave.c | 69 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 D | names.c | 285 time_t now; local 291 (void)time(&now); 292 date = ctime(&now); 412 * the list; now for sake of header expansion
|
H A D | send.c | 568 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 D | resizewin.c | 64 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 D | rwall.c | 130 time_t now; local 148 time(&now); 149 lt = localtime(&now);
|
/freebsd-11-stable/usr.bin/rwho/ |
H A D | rwho.c | 69 #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 D | keyboard.c | 57 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 D | touch.c | 220 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 D | pr_time.c | 53 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 D | w.c | 95 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 D | wall.c | 194 time_t now; local 216 (void)time(&now); 217 lt = localtime(&now);
|
/freebsd-11-stable/usr.bin/write/ |
H A D | write.c | 247 time_t now; local 269 now = time((time_t *)NULL); 270 nows = ctime(&now);
|
/freebsd-11-stable/usr.sbin/ac/ |
H A D | ac.c | 330 * 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 D | autounmountd.c | 186 time_t now; local 190 now = time(NULL); 195 mounted_for = difftime(now, af->af_mount_time);
|