Searched refs:now (Results 1 - 25 of 672) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_archive_getdate.c41 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 Dtst.walltimestamp.d31 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 Dtzone.c38 time_t now;
40 (void)time(&now);
41 if ((tm = localtime(&now)) == NULL) {
/freebsd-11-stable/sys/x86/x86/
H A Ddelay.c55 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 Dtime.c74 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 Dspinconsole.c86 time_t now; local
88 now = time(0);
89 if (now < (lasttime + 1))
95 lasttime = now;
/freebsd-11-stable/include/rpc/
H A Drpc_com.h55 #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 Ddn_aqm_codel.h82 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 Ddn_sched_fq_codel_helper.h53 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 Dpriv_settimeofday.c47 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 Dtimevar.c190 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 Darchive_getdate.h37 time_t __archive_get_date(time_t now, const char *);
/freebsd-11-stable/sys/rpc/
H A Drpc_com.h60 #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 Dfifolog_write_poll.c47 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 Dntp_util.c341 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 Dclock.c57 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 Dcap_test_pdfork.c65 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 Dclock.c95 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 Dkern_clocksource.c61 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 Drpc_com.h58 #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 Dmytime.c79 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 Djitter.c91 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 Dt_parsedate.c239 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 Dmctest_run.sh62 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 Dtimer_subr.c46 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);

Completed in 231 milliseconds

1234567891011>>