/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_archive_getdate.c | 40 time_t now = time(NULL); local 42 assertEqualInt(get_date(now, "Jan 1, 1970 UTC"), 0); 43 assertEqualInt(get_date(now, "7:12:18-0530 4 May 1983"), 420900138); 44 assertEqualInt(get_date(now, "2004/01/29 513 mest"), 1075345980); 45 assertEqualInt(get_date(now, "99/02/17 7pm utc"), 919278000); 46 assertEqualInt(get_date(now, "02/17/99 7:11am est"), 919253460); 47 assertEqualInt(get_date(now, "now - 2 hours"), 48 get_date(now, "2 hours ago")); 49 assertEqualInt(get_date(now, " [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/vars/ |
H A D | tst.walltimestamp.d | 31 uint64_t now; 35 now = 18252813184; /* Jan 1, 2004 00:00:00 */ 46 /walltimestamp < now/ 48 printf("%d (%Y) is before %Y", walltimestamp, walltimestamp, now);
|
/freebsd-current/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_zio.h | 42 TP_PROTO(zio_t *zio, hrtime_t now), 43 TP_ARGS(zio, now), 46 __field(hrtime_t, now) 50 __entry->now = now; 52 TP_printk("now %llu " ZIO_TP_PRINTK_FMT, __entry->now, 57 TP_PROTO(zio_t *zio, hrtime_t now, hrtime_t diff), 58 TP_ARGS(zio, now, diff), 61 __field(hrtime_t, now) [all...] |
/freebsd-current/libexec/bootpd/ |
H A D | tzone.c | 36 time_t now; 38 (void)time(&now); 39 if ((tm = localtime(&now)) == NULL) {
|
/freebsd-current/sys/x86/x86/ |
H A D | delay.c | 53 uint64_t end, now; local 60 now = rdtsc(); 61 end = now + tsc_freq * n / 1000000; 64 now = rdtsc(); 65 } while (now < end); 74 uint64_t end, freq, now; local 93 now = 0; 100 now += mask - last + u + 1; 102 now += u - last; 104 } while (now < en [all...] |
/freebsd-current/stand/i386/libi386/ |
H A D | time.c | 71 time_t now, check; local 77 now = check; 79 if (check != now) 83 if (now < lasttime) 84 now += 24 * 3600; 85 lasttime = now; 88 *t = now; 89 return(now);
|
H A D | spinconsole.c | 82 time_t now; local 84 now = time(0); 85 if (now < (lasttime + 1)) 91 lasttime = now;
|
/freebsd-current/sys/sys/ |
H A D | tim_filter.h | 86 void tick_filter_clock(struct time_filter *tf, uint32_t now); 87 uint32_t apply_filter_min(struct time_filter *tf, uint64_t value, uint32_t now); 88 uint32_t apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now); 89 void filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now); 90 void filter_increase_by(struct time_filter *tf, uint64_t incr_by, uint32_t now); 108 void tick_filter_clock_small(struct time_filter_small *tf, uint32_t now); 110 uint32_t value, uint32_t now); 112 uint32_t value, uint32_t now); 114 uint32_t reduce_by, uint32_t now); 116 uint32_t incr_by, uint32_t now); [all...] |
/freebsd-current/contrib/kyua/utils/signals/ |
H A D | timer.cpp | 103 /// sequentially to find either expired or expiring-now timers. 154 /// \param now The current timestamp. 164 const datetime::timestamp& now, 170 while (iter != _all_timers.end() && (*iter).first <= now) { 187 /// \param now The current timestamp. 192 const datetime::timestamp& now, 211 while (next < now) { 222 if (next < _timer_activation || now > _timer_activation) { 223 INV(next >= now); 224 const datetime::delta delta = next - now; 163 compute_timers_to_run_and_prune_old( const datetime::timestamp& now, const signals::interrupts_inhibiter& ) argument 191 reprogram_system_timer( const datetime::timestamp& now, const signals::interrupts_inhibiter& ) argument 225 LD(F("Reprogramming timer; firing on %s; now is %s") % next % now); local 242 global_state(signals::timer* timer, const datetime::timestamp& now) argument 293 program_new(signals::timer* timer, const datetime::timestamp& now) argument 332 fire(const datetime::timestamp& now) argument 425 const datetime::timestamp now = datetime::timestamp::now(); local 454 const datetime::timestamp now = datetime::timestamp::now(); local 540 const datetime::timestamp now = datetime::timestamp::now(); local [all...] |
/freebsd-current/usr.sbin/efiwake/ |
H A D | efiwake.c | 54 struct efi_tm now; local 96 error = ioctl(efi_fd, EFIIOC_GET_TIME, &now); 102 now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, 103 now.tm_sec); 113 waketime.waketime = now;
|
/freebsd-current/tools/regression/priv/ |
H A D | priv_settimeofday.c | 45 static struct timeval now; variable in typeref:struct:timeval 51 if (gettimeofday(&now, NULL) < 0) { 63 error = settimeofday(&now, NULL);
|
/freebsd-current/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel_helper.h | 51 fqc_dodequeue(struct fq_codel_flow *q, aqm_time_t now, uint16_t *ok_to_drop, argument 80 sojourn_time = now - pkt_ts; 88 q->cst.first_above_time = now + schk->cfg.ccfg.interval; 89 } else if (now >= q->cst.first_above_time) { 103 aqm_time_t now; local 110 now = AQM_UNOW; 111 m = fqc_dodequeue(q, now, &ok_to_drop, si); 123 * happen now, hence the 'while' loop. 125 while (now >= cst->drop_next_time && cst->dropping) { 137 m = fqc_dodequeue(q, now, [all...] |
H A D | dn_aqm_codel.h | 79 codel_dodequeue(struct dn_queue *q, aqm_time_t now, uint16_t *ok_to_drop) argument 112 sojourn_time = now - pkt_ts; 120 cst->first_above_time = now + cprms->interval; 121 } else if (now >= cst->first_above_time) { 137 aqm_time_t now; local 142 now = AQM_UNOW; 144 m = codel_dodequeue(q, now, &ok_to_drop); 155 * happen now, hence the 'while' loop. 157 while (now >= cst->drop_next_time && cst->dropping) { 170 m = codel_dodequeue(q, now, [all...] |
/freebsd-current/include/rpc/ |
H A D | rpc_com.h | 54 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 55 (u_int32_t)(now)->tv_usec)
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_ratelimit.c | 77 hrtime_t now; local 84 now = gethrtime(); 85 elapsed = now - rl->start; 89 rl->start = now;
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_getdate.h | 35 time_t __archive_get_date(time_t now, const char *);
|
/freebsd-current/tests/ci/tools/ |
H A D | freebsdci | 44 shutdown -r now 47 shutdown -p now
|
/freebsd-current/contrib/unifdef/scripts/ |
H A D | copycheck.sh | 4 now=$(date +%Y) 13 grep ^$now | 17 grep -v $now
|
/freebsd-current/sys/rpc/ |
H A D | rpc_com.h | 58 #define __RPC_GETXID(now) ((uint32_t)curproc->p_pid ^ (uint32_t)(now)->tv_sec ^ \ 59 (uint32_t)(now)->tv_usec) 63 #define __RPC_GETXID(now) ((uint32_t)getpid() ^ (uint32_t)(now)->tv_sec ^ \ 64 (uint32_t)(now)->tv_usec)
|
/freebsd-current/tests/sys/cddl/zfs/tests/zinject/ |
H A D | zinject_004_pos.ksh | 85 now=`date '+%m/%d/%y %H:%M:%S'` 89 log_must check_ereport "$now" ${errset[((i+1))]} 90 log_must check_fault "$now" $fclass 94 now=`date '+%m/%d/%y %H:%M:%S'` 98 log_must check_ereport "$now" ${errset[((i+1))]} 99 log_must check_fault "$now" $fclass
|
/freebsd-current/sys/kern/ |
H A D | subr_filter.c | 56 * to the filter. You also provide a time (now). The filter will 57 * age out entries based on the time now and your time limit 136 check_update_times(struct time_filter *tf, uint64_t value, uint32_t now) argument 142 tim = now - tf->entries[i].time_up; 157 tf->entries[i].time_up = now; 162 tim = now - tf->entries[i].time_up; 166 tf->entries[i].time_up = now; 171 check_update_times_small(struct time_filter_small *tf, uint32_t value, uint32_t now) argument 177 tim = now - tf->entries[i].time_up; 192 tf->entries[i].time_up = now; 206 filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now) argument 226 filter_reduce_by_small(struct time_filter_small *tf, uint32_t reduce_by, uint32_t now) argument 246 filter_increase_by(struct time_filter *tf, uint64_t incr_by, uint32_t now) argument 263 filter_increase_by_small(struct time_filter_small *tf, uint32_t incr_by, uint32_t now) argument 308 tick_filter_clock(struct time_filter *tf, uint32_t now) argument 339 tick_filter_clock_small(struct time_filter_small *tf, uint32_t now) argument 370 apply_filter_min(struct time_filter *tf, uint64_t value, uint32_t now) argument 396 apply_filter_min_small(struct time_filter_small *tf, uint32_t value, uint32_t now) argument 423 apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now) argument 449 apply_filter_max_small(struct time_filter_small *tf, uint32_t value, uint32_t now) argument [all...] |
/freebsd-current/usr.sbin/fifolog/lib/ |
H A D | fifolog_write_poll.c | 45 static int fifolog_write_gzip(struct fifolog_writer *f, time_t now); 104 time_t now; local 110 time(&now); 111 fifolog_write_gzip(f, now); 123 time_t now; local 172 time(&now); 173 f->starttime = now; 174 f->lastsync = now; 175 f->lastwrite = now; 187 fifolog_write_output(struct fifolog_writer *f, int fl, time_t now) argument 262 fifolog_write_gzip(struct fifolog_writer *f, time_t now) argument 310 fifolog_write_poll(struct fifolog_writer *f, time_t now) argument 324 fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument 384 fifolog_write_record_poll(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument [all...] |
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_util.c | 368 l_fp now; local 539 get_systime(&now); 546 leapsec_expired(now.l_ui, NULL) 556 check_leap_expiration(TRUE, now.l_ui, &ttnow); 590 l_fp now; local 596 get_systime(&now); 597 filegen_setup(&peerstats, now.l_ui); 601 day = now.l_ui / 86400 + MJD_1900; 602 now.l_ui %= 86400; 605 ulfptoa(&now, 632 l_fp now; local 666 l_fp now; local 741 l_fp now; local 802 l_fp now; local 839 l_fp now; local 873 l_fp now; local 911 l_fp now; local [all...] |
/freebsd-current/tools/regression/security/cap_test/ |
H A D | cap_test_pdfork.c | 60 time_t now; local 86 now = time(NULL); 87 CHECK(now != (time_t)-1); 89 CHECK(now >= stat.st_birthtime); 90 CHECK((now - stat.st_birthtime) < 2);
|
/freebsd-current/contrib/sendmail/libsm/ |
H A D | clock.c | 95 auto struct timeval now, nowi, ival; local 98 auto time_t now, nowi; local 110 (void) gettimeofday(&now, NULL); 111 nowi = now; 112 timeradd(&now, &ival, &nowi); 114 now = time(NULL); 115 nowi = now + (time_t)(intvl / 1000); 166 timersub(&SmEventQueue->ev_time, &now, &itime.it_value); 175 intvl = SmEventQueue->ev_time - now; 218 /* now remov 327 struct timeval now; local 329 register time_t now; local [all...] |