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

1234567891011>>

/freebsd-9.3-release/contrib/libarchive/tar/test/
H A Dtest_getdate.c38 time_t now = time(NULL); local
40 assertEqualInt(get_date(now, "Jan 1, 1970 UTC"), 0);
41 assertEqualInt(get_date(now, "7:12:18-0530 4 May 1983"), 420900138);
42 assertEqualInt(get_date(now, "2004/01/29 513 mest"), 1075345980);
43 assertEqualInt(get_date(now, "99/02/17 7pm utc"), 919278000);
44 assertEqualInt(get_date(now, "02/17/99 7:11am est"), 919253460);
46 assertEqualInt(get_date(now, "Sun Feb 22 17:38:26 PST 2009"),
54 assertEqualInt(get_date(0, "now + 1 hour"), 60 * 60);
55 assertEqualInt(get_date(0, "now + 1 hour + 1 minute"), 60 * 60 + 60);
57 now
[all...]
/freebsd-9.3-release/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-9.3-release/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-9.3-release/libexec/bootpd/
H A Dtzone.c38 time_t now;
40 (void)time(&now);
41 if ((tm = localtime(&now)) == NULL) {
/freebsd-9.3-release/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-9.3-release/sys/boot/i386/libi386/
H A Dtime.c73 time_t now, check; local
79 now = check;
81 } while (now != check && ++try < 1000);
83 if (now < lasttime)
84 now += 24 * 3600;
85 lasttime = now;
88 *t = now;
89 return(now);
H A Dspinconsole.c83 time_t now; local
85 now = time(NULL);
86 if (now < (lasttime + 1))
88 lasttime = now;
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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
689 l_fp now; local
733 l_fp now; local
770 l_fp now; local
804 l_fp now; local
842 l_fp now; local
[all...]
/freebsd-9.3-release/sys/kern/
H A Dkern_clocksource.c66 static void loadtimer(struct bintime *now, int first);
73 static int handleevents(struct bintime *now, int fake);
132 struct bintime now; /* Last tick time. */ member in struct:pcpu_state
162 struct bintime now; local
169 now = state->now;
170 CTR4(KTR_SPARE2, "ipi at %d: now %d.%08x%08x",
171 curcpu, now.sec, (unsigned int)(now.frac >> 32),
172 (unsigned int)(now
181 handleevents(struct bintime *now, int fake) argument
341 struct bintime now; local
412 loadtimer(struct bintime *now, int start) argument
485 struct bintime now; local
521 struct bintime now, next; local
709 struct bintime now; local
773 struct bintime now, t; local
806 struct bintime now; local
832 struct bintime now; local
[all...]
/freebsd-9.3-release/contrib/amd/amd/
H A Dclock.c61 void reschedule_timeouts(time_t now, time_t then);
183 reschedule_timeouts(time_t now, time_t then) argument
188 if (cp->c_time >= now && cp->c_time <= then) {
191 cp->c_id, (long) (cp->c_time - now));
192 next_softclock = cp->c_time = now;
204 time_t now; local
211 now = clocktime(NULL);
216 while ((cp = callouts.c_next) && cp->c_time <= now) {
242 return cp->c_time - now;
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/contrib/bind9/lib/isccc/include/isccc/
H A Dcc.h69 isc_uint32_t serial, isccc_time_t now,
87 isccc_cc_createresponse(isccc_sexpr_t *message, isccc_time_t now,
113 isccc_cc_cleansymtab(isccc_symtab_t *symtab, isccc_time_t now);
118 isccc_time_t now);
/freebsd-9.3-release/contrib/wpa/src/ap/
H A Dtkip_countermeasures.c64 time_t now; local
84 time(&now);
85 if (now > hapd->michael_mic_failure + 60) {
92 hapd->michael_mic_failure = now;
/freebsd-9.3-release/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-9.3-release/usr.sbin/rtadvd/
H A Dtimer.c156 struct timeval now; local
159 gettimeofday(&now, NULL);
162 if (TIMEVAL_LEQ(&rat->rat_tm, &now)) {
167 TIMEVAL_ADD(&rat->rat_tm, &now, &rat->rat_tm);
175 } else if (TIMEVAL_LT(&tm_max, &now)) {
179 TIMEVAL_SUB(&tm_max, &now, &returnval);
186 struct timeval now; local
189 gettimeofday(&now, NULL);
190 TIMEVAL_ADD(&now, tm, &rat->rat_tm);
/freebsd-9.3-release/contrib/libarchive/cpio/test/
H A Dtest_option_c.c60 time_t t, now; local
89 now = time(NULL); /* They were all created w/in last two seconds. */
136 assert(t <= now); /* File wasn't created in future. */
137 assert(t >= now - 2); /* File was created w/in last 2 secs. */
162 assert(t <= now); /* File wasn't created in future. */
163 assert(t >= now - 2); /* File was created w/in last 2 secs. */
196 assert(t <= now); /* File wasn't created in future. */
197 assert(t >= now - 2); /* File was created w/in last 2 secs. */
/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DProcess.cpp60 static TimeValue &StartTime = *new TimeValue(TimeValue::now());
61 return TimeValue::now() - StartTime;

Completed in 184 milliseconds

1234567891011>>