/freebsd-10.0-release/contrib/libarchive/libarchive/test/ |
H A D | test_archive_getdate.c | 39 time_t now = time(NULL); local 41 assertEqualInt(get_date(now, "Jan 1, 1970 UTC"), 0); 42 assertEqualInt(get_date(now, "7:12:18-0530 4 May 1983"), 420900138); 43 assertEqualInt(get_date(now, "2004/01/29 513 mest"), 1075345980); 44 assertEqualInt(get_date(now, "99/02/17 7pm utc"), 919278000); 45 assertEqualInt(get_date(now, "02/17/99 7:11am est"), 919253460); 46 assertEqualInt(get_date(now, "now - 2 hours"), 47 get_date(now, "2 hours ago")); 49 assertEqualInt(get_date(now, "Su [all...] |
/freebsd-10.0-release/sys/boot/arm/at91/libat91/ |
H A D | delay.c | 37 unsigned later, now; local 39 now = AT91C_BASE_ST->ST_CRTR; 40 later = (now + us / 25 + 1) & AT91C_ST_CRTV;
|
/freebsd-10.0-release/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-10.0-release/libexec/bootpd/ |
H A D | tzone.c | 38 time_t now; 40 (void)time(&now); 41 if ((tm = localtime(&now)) == NULL) {
|
/freebsd-10.0-release/sys/boot/pc98/libpc98/ |
H A D | time.c | 70 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.0-release/sys/boot/i386/libi386/ |
H A D | time.c | 73 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 D | spinconsole.c | 83 time_t now; local 85 now = time(NULL); 86 if (now < (lasttime + 1)) 88 lasttime = now;
|
/freebsd-10.0-release/contrib/ntp/ntpd/ |
H A D | ntp_util.c | 41 * This contains odds and ends. Right now the only thing you'll find 366 l_fp now; local 368 get_systime(&now); 374 filegen_setup(&peerstats, now.l_ui); 380 filegen_setup(&loopstats, now.l_ui); 386 filegen_setup(&clockstats, now.l_ui); 392 filegen_setup(&rawstats, now.l_ui); 398 filegen_setup(&sysstats, now.l_ui); 405 filegen_setup(&cryptostats, now.l_ui); 449 l_fp now; local 487 l_fp now; local 520 l_fp now; local 557 l_fp now; local 596 l_fp now; local 636 l_fp now; local 673 l_fp now; local [all...] |
/freebsd-10.0-release/include/rpc/ |
H A D | rpc_com.h | 56 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 57 (u_int32_t)(now)->tv_usec)
|
/freebsd-10.0-release/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-10.0-release/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-10.0-release/contrib/llvm/lib/Support/ |
H A D | Process.cpp | 60 static TimeValue &StartTime = *new TimeValue(TimeValue::now()); 61 return TimeValue::now() - StartTime;
|
/freebsd-10.0-release/sys/rpc/ |
H A D | rpc_com.h | 61 #define __RPC_GETXID(now) ((uint32_t)curproc->p_pid ^ (uint32_t)(now)->tv_sec ^ \ 62 (uint32_t)(now)->tv_usec) 66 #define __RPC_GETXID(now) ((uint32_t)getpid() ^ (uint32_t)(now)->tv_sec ^ \ 67 (uint32_t)(now)->tv_usec)
|
/freebsd-10.0-release/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 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.0-release/contrib/amd/amd/ |
H A D | clock.c | 61 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-10.0-release/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-10.0-release/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-10.0-release/lib/libc/rpc/ |
H A D | rpc_com.h | 59 #define __RPC_GETXID(now) ((u_int32_t)getpid() ^ (u_int32_t)(now)->tv_sec ^ \ 60 (u_int32_t)(now)->tv_usec)
|
/freebsd-10.0-release/sys/kern/ |
H A D | kern_clocksource.c | 67 static void loadtimer(sbintime_t now, int first); 74 static int handleevents(sbintime_t now, int fake); 123 sbintime_t now; /* Last tick time. */ member in struct:pcpu_state 147 sbintime_t now; local 154 now = state->now; 155 CTR3(KTR_SPARE2, "ipi at %d: now %d.%08x", 156 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff)); 157 done = handleevents(now, 165 handleevents(sbintime_t now, int fake) argument 319 sbintime_t now; local 387 loadtimer(sbintime_t now, int start) argument 454 sbintime_t now; local 490 sbintime_t now, next; local 684 sbintime_t now; local 748 sbintime_t now, t; local 781 sbintime_t now; local 806 sbintime_t now, t; local [all...] |
/freebsd-10.0-release/contrib/ntp/arlib/ |
H A D | sample.c | 24 long now; local 40 now = time(NULL); 41 if (expire >= now) 44 tv2.tv_sec = expire - now; 110 long now; local 115 now = time(NULL); 116 if (expire >= now) 117 delay.tv_sec = expire - now;
|
/freebsd-10.0-release/contrib/wpa/src/ap/ |
H A D | tkip_countermeasures.c | 71 struct os_time now; local 92 os_get_time(&now); 93 if (now.sec > hapd->michael_mic_failure + 60) { 102 hapd->michael_mic_failure = now.sec;
|
/freebsd-10.0-release/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-10.0-release/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);
|
/freebsd-10.0-release/contrib/unbound/services/cache/ |
H A D | dns.c | 57 * @param now: current time. 69 store_rrsets(struct module_env* env, struct reply_info* rep, uint32_t now, argument 80 env->alloc, now + ((ntohs(rep->ref[i].key->rk.type)== 92 rep->ref[i].key, region, now); 123 reply_info_set_ttls(rep, *env->now); 124 store_rrsets(env, rep, *env->now, leeway, pside, qrep, region); 145 uint16_t qclass, uint32_t now, uint16_t searchtype, int stripfront) 160 qnamelen, searchtype, qclass, 0, now, 0))) 174 struct dns_msg* msg, uint32_t now) 177 packed_rrset_copy_region(rrset, region, now))) { 144 find_closest_of_type(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qclass, uint32_t now, uint16_t searchtype, int stripfront) argument 173 addr_to_additional(struct ub_packed_rrset_key* rrset, struct regional* region, struct dns_msg* msg, uint32_t now) argument 185 msg_cache_lookup(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint32_t now, int wr) argument 209 find_add_addrs(struct module_env* env, uint16_t qclass, struct regional* region, struct delegpt* dp, uint32_t now, struct dns_msg** msg) argument 265 uint32_t now = *env->now; local 309 find_add_ds(struct module_env* env, struct regional* region, struct dns_msg* msg, struct delegpt* dp, uint32_t now) argument 371 dns_msg_authadd(struct dns_msg* msg, struct regional* region, struct ub_packed_rrset_key* rrset, uint32_t now) argument 382 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, uint32_t now) argument 457 tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, struct regional* region, uint32_t now, struct regional* scratch) argument 508 rrset_msg(struct ub_packed_rrset_key* rrset, struct regional* region, uint32_t now, struct query_info* q) argument 537 synth_dname_msg(struct ub_packed_rrset_key* rrset, struct regional* region, uint32_t now, struct query_info* q) argument 633 uint32_t now = *env->now; local [all...] |
/freebsd-10.0-release/contrib/ntp/libntp/ |
H A D | systime.c | 56 l_fp *now /* system time */ 74 now->l_i = ts.tv_sec + JAN_1970; 85 now->l_i = tv.tv_sec + JAN_1970; 105 now->l_i++; 108 now->l_i--; 111 now->l_uf = (u_int32)dtemp; 121 double now /* adjustment (s) */ 136 dtemp = now + sys_residual; 174 double now 184 dtemp = sys_residual + now; [all...] |