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

1234567891011>>

/freebsd-10-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-10-stable/sys/boot/arm/at91/libat91/
H A Ddelay.c37 unsigned later, now; local
39 now = AT91C_BASE_ST->ST_CRTR;
40 later = (now + us / 25 + 1) & AT91C_ST_CRTV;
/freebsd-10-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-10-stable/libexec/bootpd/
H A Dtzone.c38 time_t now;
40 (void)time(&now);
41 if ((tm = localtime(&now)) == NULL) {
/freebsd-10-stable/sys/boot/pc98/libpc98/
H A Dtime.c70 time_t now; local
72 now = bios_seconds();
74 if (now < lasttime)
75 now += 24 * 3600;
76 lasttime = now;
79 *t = now;
80 return(now);
/freebsd-10-stable/sys/boot/i386/libi386/
H A Dtime.c73 time_t now, check; local
79 now = check;
81 if (check != now)
85 if (now < lasttime)
86 now += 24 * 3600;
87 lasttime = now;
90 *t = now;
91 return(now);
H A Dspinconsole.c83 time_t now; local
85 now = time(NULL);
86 if (now < (lasttime + 1))
88 lasttime = now;
/freebsd-10-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-10-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-10-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-10-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-10-stable/contrib/libarchive/libarchive/
H A Darchive_getdate.h37 time_t __archive_get_date(time_t now, const char *);
/freebsd-10-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-10-stable/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c45 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
254 fifolog_write_gzip(struct fifolog_writer *f, time_t now) argument
302 fifolog_write_poll(struct fifolog_writer *f, time_t now) argument
316 fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument
376 fifolog_write_record_poll(struct fifolog_writer *f, uint32_t id, time_t now, const void *ptr, ssize_t len) argument
[all...]
/freebsd-10-stable/contrib/ntp/ntpd/
H A Dntp_util.c339 l_fp now; local
492 get_systime(&now);
499 leapsec_expired(now.l_ui, NULL)
509 check_leap_expiration(TRUE, now.l_ui, &ttnow);
543 l_fp now; local
549 get_systime(&now);
550 filegen_setup(&peerstats, now.l_ui);
551 day = now.l_ui / 86400 + MJD_1900;
552 now.l_ui %= 86400;
556 ulfptoa(&now,
584 l_fp now; local
618 l_fp now; local
693 l_fp now; local
747 l_fp now; local
784 l_fp now; local
818 l_fp now; local
856 l_fp now; local
[all...]
/freebsd-10-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-10-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-10-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-10-stable/sys/kern/
H A Dkern_clocksource.c63 static void loadtimer(sbintime_t now, int first);
70 static int handleevents(sbintime_t now, int fake);
119 sbintime_t now; /* Last tick time. */ member in struct:pcpu_state
140 sbintime_t now; local
147 now = state->now;
148 CTR3(KTR_SPARE2, "ipi at %d: now %d.%08x",
149 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff));
150 done = handleevents(now,
158 handleevents(sbintime_t now, int fake) argument
302 sbintime_t now; local
370 loadtimer(sbintime_t now, int start) argument
437 sbintime_t now; local
473 sbintime_t now, next; local
664 sbintime_t now; local
728 sbintime_t now, t; local
761 sbintime_t now; local
[all...]
/freebsd-10-stable/contrib/xz/src/xz/
H A Dmytime.c83 const uint64_t now = mytime_now(); local
84 if (now >= next_flush)
87 const uint64_t remaining = next_flush - now;
/freebsd-10-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-10-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-10-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-10-stable/contrib/unbound/services/cache/
H A Ddns.c58 * @param now: current time.
70 store_rrsets(struct module_env* env, struct reply_info* rep, time_t now, argument
81 env->alloc, now + ((ntohs(rep->ref[i].key->rk.type)==
93 rep->ref[i].key, region, now);
124 reply_info_set_ttls(rep, *env->now);
125 store_rrsets(env, rep, *env->now, leeway, pside, qrep, region);
146 uint16_t qclass, time_t now, uint16_t searchtype, int stripfront)
161 qnamelen, searchtype, qclass, 0, now, 0)))
175 struct dns_msg* msg, time_t now)
178 packed_rrset_copy_region(rrset, region, now))) {
145 find_closest_of_type(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qclass, time_t now, uint16_t searchtype, int stripfront) argument
174 addr_to_additional(struct ub_packed_rrset_key* rrset, struct regional* region, struct dns_msg* msg, time_t now) argument
186 msg_cache_lookup(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint16_t flags, time_t now, int wr) argument
210 find_add_addrs(struct module_env* env, uint16_t qclass, struct regional* region, struct delegpt* dp, time_t now, struct dns_msg** msg) argument
270 time_t now = *env->now; local
318 find_add_ds(struct module_env* env, struct regional* region, struct dns_msg* msg, struct delegpt* dp, time_t now) argument
382 dns_msg_authadd(struct dns_msg* msg, struct regional* region, struct ub_packed_rrset_key* rrset, time_t now) argument
394 dns_msg_ansadd(struct dns_msg* msg, struct regional* region, struct ub_packed_rrset_key* rrset, time_t now) argument
405 dns_cache_find_delegation(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, struct regional* region, struct dns_msg** msg, time_t now) argument
482 tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, struct regional* region, time_t now, struct regional* scratch) argument
533 rrset_msg(struct ub_packed_rrset_key* rrset, struct regional* region, time_t now, struct query_info* q) argument
562 synth_dname_msg(struct ub_packed_rrset_key* rrset, struct regional* region, time_t now, struct query_info* q) argument
656 time_t now = *env->now; local
711 time_t now = *env->now; local
[all...]

Completed in 261 milliseconds

1234567891011>>