/freebsd-9.3-release/usr.sbin/pw/ |
H A D | pw_log.c | 51 time_t now = time(NULL); local 52 struct tm *t = localtime(&now);
|
/freebsd-9.3-release/usr.sbin/timed/timed/ |
H A D | correct.c | 108 * adjust our own clock now that we are not sending it out 122 struct timeval now; local 167 (void) gettimeofday(&now, 0); 168 timevaladd(&now, corr); 169 if (settimeofday(&now, 0) < 0) 179 adj_msg_time(msg, now) 181 struct timeval *now; 183 msg->tsp_time.tv_sec += (now->tv_sec - from_when.tv_sec); 184 msg->tsp_time.tv_usec += (now->tv_usec - from_when.tv_usec);
|
/freebsd-9.3-release/contrib/openpam/lib/libpam/ |
H A D | openpam_ttyconv.c | 88 struct timeval now, target, remaining; local 128 (void)gettimeofday(&now, NULL); 131 timeradd(&now, &remaining, &target); 134 now.tv_sec = now.tv_usec = 0; 148 gettimeofday(&now, NULL); 149 if (timercmp(&now, &target, >)) 151 timersub(&target, &now, &remaining); 217 struct timeval now, target, remaining; local 228 (void)gettimeofday(&now, NUL [all...] |
/freebsd-9.3-release/sbin/camcontrol/ |
H A D | progress.h | 48 time_t now; /* time now */ member in struct:progress_t
|
/freebsd-9.3-release/usr.bin/calendar/ |
H A D | day.c | 49 settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2) argument 54 localtime_r(&now, &tp); 60 time1 = now - SECSPERDAY * before; 63 time2 = now + SECSPERDAY * after;
|
/freebsd-9.3-release/usr.bin/finger/ |
H A D | extern.h | 43 extern time_t now;
|
/freebsd-9.3-release/usr.sbin/rtadvd/ |
H A D | timer_subr.c | 46 static struct timeval returnval, now; local 48 gettimeofday(&now, NULL); 49 if (TIMEVAL_LEQ(&rat->rat_tm, &now)) { 56 TIMEVAL_SUB(&rat->rat_tm, &now, &returnval);
|
/freebsd-9.3-release/contrib/opie/libopie/ |
H A D | newseed.c | 66 time_t now; local 68 time(&now); 69 srand(now);
|
H A D | writerec.c | 45 time_t now; local 50 time(&now); 51 if (strftime(buf2, sizeof(buf2), " %b %d,%Y %T", localtime(&now)) < 1)
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | ratectrl.c | 102 time_t now; local 106 now = time(NULL); 112 totalrate = total_rate(now, e == NULL); 118 clientrate = client_rate(now, hostaddr, e == NULL); 209 ** now - current time in secs 222 client_rate(now, saddr, update) 223 time_t now; 241 ticks = now / ChtGran; 339 if (coll && (now - chBest->ch_LTime < CollTime)) 390 chBest->ch_LTime = now; [all...] |
/freebsd-9.3-release/usr.bin/w/ |
H A D | pr_time.c | 52 pr_attime(time_t *started, time_t *now) argument 61 tm = *localtime(now); 62 diff = *now - *started; 73 /* else if (*now / 86400 != *started / 86400) { */
|
/freebsd-9.3-release/usr.sbin/ctm/ctm_rmail/ |
H A D | error.c | 69 time_t now; local 83 time(&now); 84 tm = localtime(&now);
|
/freebsd-9.3-release/usr.sbin/fifolog/lib/ |
H A D | fifolog_write.h | 70 int fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len); 71 int fifolog_write_poll(struct fifolog_writer *f, time_t now); 72 int fifolog_write_record_poll(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len);
|
/freebsd-9.3-release/usr.sbin/fifolog/fifolog_reader/ |
H A D | fifolog_reader.c | 51 Render(void *priv __unused, time_t now, unsigned flag __unused, const unsigned char *p, unsigned l __unused) argument 57 if (now < opt_B || now > opt_E) 66 (void)gmtime_r(&now, &utc); 71 fprintf(fo, "%12ld %s\n", (long)now, p);
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | dump.c | 65 struct timeval now; local 68 gettimeofday(&now, NULL); 96 (ifi->expire.tv_sec < now.tv_sec) ? "expired" 148 struct timeval now; local 151 gettimeofday(&now, NULL); 154 tsec -= now.tv_sec; 155 tsec -= now.tv_usec / 1000000;
|
/freebsd-9.3-release/games/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-9.3-release/contrib/bind9/lib/dns/ |
H A D | time.c | 108 isc_stdtime_t now; local 118 isc_stdtime_get(&now); 119 start = (isc_int64_t) now; 120 if (isc_serial_gt(value, now)) 121 t = start + (value - now); 123 t = start - (now - value);
|
/freebsd-9.3-release/contrib/sendmail/contrib/ |
H A D | re-mqueue.pl | 140 $now = time(); 163 if (($mtime + $age) > $now) { 164 printf ("%s is %d seconds old - skipping\n", $dfile, $now-$mtime) if ($debug); 193 print "$qfile now flock()ed\n" if ($debug);
|
/freebsd-9.3-release/sbin/routed/ |
H A D | main.c | 76 struct timeval now; /* current idea of time */ variable in typeref:struct:timeval 130 now.tv_sec = EPOCH; 393 timevalsub(&now, &clk, &epoch); 394 now_stale = now.tv_sec - STALE_TIME; 395 now_expire = now.tv_sec - EXPIRE_TIME; 396 now_garbage = now.tv_sec - GARBAGE_TIME; 409 timevalsub(&wtime, &ifinit_timer, &now); 420 timevalsub(&t2, &flush_kern_timer, &now); 423 flush_kern_timer.tv_sec = (now.tv_sec 433 timevalsub(&t2, &next_bcast, &now); [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/badioctl/ |
H A D | badioctl.c | 64 hrtime_t now, last = 0, end; local 76 if ((now = gethrtime()) - last > NANOSEC) { 96 last = now;
|
/freebsd-9.3-release/contrib/libc++/src/ |
H A D | chrono.cpp | 30 system_clock::now() _NOEXCEPT 104 steady_clock::now() _NOEXCEPT 121 steady_clock::now() _NOEXCEPT
|
/freebsd-9.3-release/contrib/bind9/bin/dnssec/ |
H A D | dnssec-settime.c | 142 isc_stdtime_t now; local 172 isc_stdtime_get(&now); 260 now, now); 273 now, now); 286 now, now); 299 now, now); [all...] |
/freebsd-9.3-release/contrib/sendmail/libmilter/ |
H A D | monitor.c | 83 time_t now, end; local 100 now = time(NULL); \ 102 if (now > end) \ 105 "WARNING: monitor timeout triggered, now=%ld, end=%ld, tid=%ld, state=0x%x",\ 106 (long) now, (long) end, \
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | dsl_userhold.h | 51 minor_t minor, uint64_t now, struct dmu_tx *tx);
|
/freebsd-9.3-release/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 */
|