/freebsd-11-stable/contrib/libarchive/libarchive/test/ |
H A D | test_archive_getdate.c | 41 time_t now = time(NULL); local 43 assertEqualInt(get_date(now, "Jan 1, 1970 UTC"), 0); 44 assertEqualInt(get_date(now, "7:12:18-0530 4 May 1983"), 420900138); 45 assertEqualInt(get_date(now, "2004/01/29 513 mest"), 1075345980); 46 assertEqualInt(get_date(now, "99/02/17 7pm utc"), 919278000); 47 assertEqualInt(get_date(now, "02/17/99 7:11am est"), 919253460); 48 assertEqualInt(get_date(now, "now - 2 hours"), 49 get_date(now, "2 hours ago")); 50 assertEqualInt(get_date(now, " [all...] |
/freebsd-11-stable/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-11-stable/libexec/bootpd/ |
H A D | tzone.c | 38 time_t now; 40 (void)time(&now); 41 if ((tm = localtime(&now)) == NULL) {
|
/freebsd-11-stable/sys/x86/x86/ |
H A D | delay.c | 55 uint64_t end, now; local 62 now = rdtsc(); 63 end = now + tsc_freq * n / 1000000; 66 now = rdtsc(); 67 } while (now < end); 76 uint64_t end, freq, now; local 95 now = 0; 102 now += mask - last + u + 1; 104 now += u - last; 106 } while (now < en [all...] |
/freebsd-11-stable/stand/i386/libi386/ |
H A D | time.c | 74 time_t now, check; local 80 now = check; 82 if (check != now) 86 if (now < lasttime) 87 now += 24 * 3600; 88 lasttime = now; 91 *t = now; 92 return(now);
|
H A D | spinconsole.c | 86 time_t now; local 88 now = time(0); 89 if (now < (lasttime + 1)) 95 lasttime = now;
|
/freebsd-11-stable/include/rpc/ |
H A D | rpc_com.h | 55 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 56 (u_int32_t)(now)->tv_usec)
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | dn_aqm_codel.h | 82 codel_dodequeue(struct dn_queue *q, aqm_time_t now, uint16_t *ok_to_drop) argument 115 sojourn_time = now - pkt_ts; 123 cst->first_above_time = now + cprms->interval; 124 } else if (now >= cst->first_above_time) { 140 aqm_time_t now; local 145 now = AQM_UNOW; 147 m = codel_dodequeue(q, now, &ok_to_drop); 158 * happen now, hence the 'while' loop. 160 while (now >= cst->drop_next_time && cst->dropping) { 174 m = codel_dodequeue(q, now, [all...] |
H A D | dn_sched_fq_codel_helper.h | 53 fqc_dodequeue(struct fq_codel_flow *q, aqm_time_t now, uint16_t *ok_to_drop, argument 82 sojourn_time = now - pkt_ts; 90 q->cst.first_above_time = now + schk->cfg.ccfg.interval; 91 } else if (now >= q->cst.first_above_time) { 105 aqm_time_t now; local 112 now = AQM_UNOW; 113 m = fqc_dodequeue(q, now, &ok_to_drop, si); 125 * happen now, hence the 'while' loop. 127 while (now >= cst->drop_next_time && cst->dropping) { 140 m = fqc_dodequeue(q, now, [all...] |
/freebsd-11-stable/tools/regression/priv/ |
H A D | priv_settimeofday.c | 47 static struct timeval now; variable in typeref:struct:timeval 53 if (gettimeofday(&now, NULL) < 0) { 65 error = settimeofday(&now, NULL);
|
/freebsd-11-stable/contrib/gcc/ |
H A D | timevar.c | 190 get_time (struct timevar_time_def *now) argument 192 now->user = 0; 193 now->sys = 0; 194 now->wall = 0; 195 now->ggc_mem = timevar_ggc_mem_total; 203 now->wall = times (&tms) * ticks_to_msec; 204 now->user = tms.tms_utime * ticks_to_msec; 205 now->sys = tms.tms_stime * ticks_to_msec; 210 now->user = rusage.ru_utime.tv_sec + rusage.ru_utime.tv_usec * 1e-6; 211 now 268 struct timevar_time_def now; local 313 struct timevar_time_def now; local 367 struct timevar_time_def now; local 390 struct timevar_time_def now; local [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_getdate.h | 37 time_t __archive_get_date(time_t now, const char *);
|
/freebsd-11-stable/sys/rpc/ |
H A D | rpc_com.h | 60 #define __RPC_GETXID(now) ((uint32_t)curproc->p_pid ^ (uint32_t)(now)->tv_sec ^ \ 61 (uint32_t)(now)->tv_usec) 65 #define __RPC_GETXID(now) ((uint32_t)getpid() ^ (uint32_t)(now)->tv_sec ^ \ 66 (uint32_t)(now)->tv_usec)
|
/freebsd-11-stable/usr.sbin/fifolog/lib/ |
H A D | fifolog_write_poll.c | 47 static int fifolog_write_gzip(struct fifolog_writer *f, time_t now); 106 time_t now; local 112 time(&now); 113 fifolog_write_gzip(f, now); 125 time_t now; local 174 time(&now); 175 f->starttime = now; 176 f->lastsync = now; 177 f->lastwrite = now; 189 fifolog_write_output(struct fifolog_writer *f, int fl, time_t now) argument 264 fifolog_write_gzip(struct fifolog_writer *f, time_t now) argument 312 fifolog_write_poll(struct fifolog_writer *f, time_t now) argument 326 fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument 386 fifolog_write_record_poll(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | ntp_util.c | 341 l_fp now; local 496 get_systime(&now); 503 leapsec_expired(now.l_ui, NULL) 513 check_leap_expiration(TRUE, now.l_ui, &ttnow); 547 l_fp now; local 553 get_systime(&now); 554 filegen_setup(&peerstats, now.l_ui); 555 day = now.l_ui / 86400 + MJD_1900; 556 now.l_ui %= 86400; 560 ulfptoa(&now, 588 l_fp now; local 622 l_fp now; local 697 l_fp now; local 751 l_fp now; local 788 l_fp now; local 822 l_fp now; local 860 l_fp now; local [all...] |
/freebsd-11-stable/contrib/amd/amd/ |
H A D | clock.c | 57 void reschedule_timeouts(time_t now, time_t then); 179 reschedule_timeouts(time_t now, time_t then) argument 184 if (cp->c_time >= now && cp->c_time <= then) { 187 cp->c_id, (long) (cp->c_time - now)); 188 next_softclock = cp->c_time = now; 200 time_t now; local 207 now = clocktime(NULL); 212 while ((cp = callouts.c_next) && cp->c_time <= now) { 238 return cp->c_time - now;
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_pdfork.c | 65 time_t now; local 91 now = time(NULL); 92 CHECK(now != (time_t)-1); 94 CHECK(now >= stat.st_birthtime); 95 CHECK((now - stat.st_birthtime) < 2);
|
/freebsd-11-stable/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...] |
/freebsd-11-stable/sys/kern/ |
H A D | kern_clocksource.c | 61 static void loadtimer(sbintime_t now, int first); 68 static int handleevents(sbintime_t now, int fake); 115 sbintime_t now; /* Last tick time. */ member in struct:pcpu_state 136 sbintime_t now; local 143 now = state->now; 144 CTR3(KTR_SPARE2, "ipi at %d: now %d.%08x", 145 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff)); 146 done = handleevents(now, 154 handleevents(sbintime_t now, int fake) argument 302 sbintime_t now; local 377 loadtimer(sbintime_t now, int start) argument 444 sbintime_t now; local 480 sbintime_t now, next; local 681 sbintime_t now; local 761 sbintime_t now, t; local 794 sbintime_t now; local [all...] |
/freebsd-11-stable/lib/libc/rpc/ |
H A D | rpc_com.h | 58 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 59 (u_int32_t)(now)->tv_usec)
|
/freebsd-11-stable/contrib/xz/src/xz/ |
H A D | mytime.c | 79 const uint64_t now = mytime_now(); local 80 if (now >= next_flush) 83 const uint64_t remaining = next_flush - now;
|
/freebsd-11-stable/contrib/ntp/util/ |
H A D | jitter.c | 91 l_fp *now /* system time */ 107 now->l_i = ts.tv_sec + JAN_1970; 117 now->l_i = tv.tv_sec + JAN_1970; 128 now->l_i++; 131 now->l_i--; 134 now->l_uf = (u_int32)dtemp;
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libutil/ |
H A D | t_parsedate.c | 239 time_t now; local 241 #define REL_CHECK(s, now, tm) do { \ 244 p = parsedate(s, &now, NULL); \ 248 (uintmax_t)now, ctime_r(&now, nb), \ 269 for (now = 0x00FFFFFF; now < 0xFF000000; now += 3777779) { 270 ATF_CHECK(localtime_r(&now, &tm) != NULL); 274 REL_CHECK("yesterday", now, t [all...] |
/freebsd-11-stable/tools/tools/mctest/ |
H A D | mctest_run.sh | 62 now=`date "+%Y%m%d%H%M"` 65 output=$host\_$interface\_$size\_$number\.$now 74 $command -M $# -b $base -g $group -n $number -s $size -i $local_interface -t $gap > `uname -n`\_$size\_$number\.$now
|
/freebsd-11-stable/usr.sbin/rtadvd/ |
H A D | timer_subr.c | 46 static struct timespec returnval, now; local 48 clock_gettime(CLOCK_MONOTONIC_FAST, &now); 49 if (TS_CMP(&rat->rat_tm, &now, <=)) { 56 TS_SUB(&rat->rat_tm, &now, &returnval);
|