Searched refs:now (Results 1 - 25 of 672) sorted by last modified time

1234567891011>>

/freebsd-11-stable/contrib/apr/time/unix/
H A Dtime.c325 struct timeval now; local
329 gettimeofday(&now, NULL);
330 t1 = now.tv_sec;
/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_main.c1503 time_t now = time(NULL); local
1504 if (filet < now - 10 || filet > now + 1) {
1507 pathname, type, filet, now - filet);
3762 time_t now; local
3992 now = time(NULL);
3996 localtime(&now));
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_format_zip_compression_store.c47 static time_t now; variable
90 archive_entry_set_mtime(entry, now, 0);
91 archive_entry_set_atime(entry, now + 3, 0);
104 archive_entry_set_mtime(entry, now, 0);
105 archive_entry_set_ctime(entry, now + 5, 0);
131 struct tm *tm = localtime(&now);
188 assertEqualInt(i4(p + 5), now); /* 'UT' mtime */
189 assertEqualInt(i4(p + 9), now + 3); /* 'UT' atime */
214 assertEqualInt(i4(q + 5), now); /* 'UT' mtime */
215 assertEqualInt(i4(q + 9), now
[all...]
/freebsd-11-stable/contrib/libarchive/cpio/
H A Dcpio.c624 * that can now be flushed.
1152 static time_t now; local
1162 if (!now)
1163 time(&now);
1196 if (mtime - now > 365*86400/2
1197 || mtime - now < -365*86400/2)
1202 if (mtime - now > 365*86400/2
1203 || mtime - now < -365*86400/2)
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c1465 reply(530, "Login not available right now.");
1500 reply(530, "Login not available right now.");
1884 * trying to open a data connection in active mode now.
3369 time_t now;
3372 time(&now);
3378 ctime(&now)+4, ident, remotehost,
3380 (long)(now - start + (now == start)));
/freebsd-11-stable/testcode/
H A Dfake_event.c200 * return: true if pending query matches the now event.
208 if(!runtime->now || runtime->now->evt_type != repevt_back_query
213 if(runtime->now->addrlen != 0 &&
214 sockaddr_cmp(&p->addr, p->addrlen, &runtime->now->addr,
215 runtime->now->addrlen) != 0)
217 if((e=find_match(runtime->now->match, p->pkt, p->pkt_len,
238 int timenow = runtime->now->time_step;
266 * @return: true if pending query matches the now event.
403 /** Check the now momen
687 struct replay_moment* now = runtime->now; local
[all...]
/freebsd-11-stable/contrib/unbound/validator/
H A Dautotrust.c1054 /* now assemble the data into DNSKEY and DS packed rrsets */
1287 if((int32_t)t - (int32_t)*env->now > 0) {
1288 t -= (int32_t)*env->now;
1684 if(*env->now < ta->last_change) {
1688 elapsed = *env->now - ta->last_change;
1698 /** Set last_change to now */
1702 ta->last_change = *env->now;
1897 * now that can be made valid. Do this immediately because there
2012 return (time_t)(*env->now + rest + rnd);
2035 if(next > *env->now)
[all...]
/freebsd-11-stable/contrib/unbound/util/
H A Dnetevent.c120 struct timeval now; member in struct:internal_base
173 b->eb->base = ub_default_event_base(sigs, &b->eb->secs, &b->eb->now);
239 *tv = &b->eb->now;
1082 /* stop accepting incoming queries for now. */
2426 verbose(VERB_ALGO, "http_chunked_segment: got now %d, tcpbytcount %d, http_stored %d, buffer pos %d, buffer limit %d", (int)got_now, (int)c->tcp_byte_count, (int)c->http_stored, (int)sldns_buffer_position(c->buffer), (int)sldns_buffer_limit(c->buffer));
3586 /* now prealloc the handlers */
H A Dmodule.h481 time_t* now; member in struct:module_env
/freebsd-11-stable/contrib/unbound/util/data/
H A Dpacked_rrset.h412 * @param now: time that is subtracted from ttl before printout. Can be 0.
418 time_t now, char* dest, size_t dest_len);
434 * @param now: adjust the TTLs to be relative (subtract from all TTLs).
439 time_t now);
445 * @param now: adjust the TTLs to be absolute (add to all TTLs).
450 time_t now);
H A Dpacked_rrset.c273 time_t now, char* dest, size_t dest_len)
290 adjust = SERVE_ORIGINAL_TTL ? d->ttl_add : now;
331 struct regional* region, time_t now)
358 adjust = SERVE_ORIGINAL_TTL ? data->ttl_add : now;
373 struct alloc_cache* alloc, time_t now)
394 packed_rrset_ttl_add(dd, now);
272 packed_rr_to_string(struct ub_packed_rrset_key* rrset, size_t i, time_t now, char* dest, size_t dest_len) argument
330 packed_rrset_copy_region(struct ub_packed_rrset_key* key, struct regional* region, time_t now) argument
372 packed_rrset_copy_alloc(struct ub_packed_rrset_key* key, struct alloc_cache* alloc, time_t now) argument
/freebsd-11-stable/contrib/unbound/smallapp/
H A Dunbound-control.c257 PR_STATSTIME("time.now", shm_stat->time.now);
H A Dunbound-anchor.c1554 xml_parse_setup(XML_Parser parser, struct xml_data* data, time_t now) argument
1560 data->date = now;
1573 ctime(&now));
1589 * @param now: the current time for checking DS validity periods.
1595 xml_parse(BIO* xml, time_t now) argument
1609 xml_parse_setup(parser, &data, now);
1837 time_t now = time(NULL); local
1850 , ctime(&now)) < 0) {
1912 /* the root zone is unsigned now */
2183 int32_t now local
[all...]
/freebsd-11-stable/contrib/unbound/services/
H A Doutside_network.c547 * outside_network.tcpwaitlist, then the timer is reset now that
711 * lru_next is thus not NULL and thus reuse is now not the last in
1154 free(pend->pkt); /* freeing now makes get_mem correct */
2064 /* select value now in 0 .. num free - 1 */
2132 * that buffer and file descriptor now. */
2171 /* we have a buffer available right now */
2178 /* can we write right now? */
2550 time_t now = *sq->outnet->now_secs; local
2553 sq->zonelen, now, &vs, &edns_lame_known, &rtt))
2764 struct timeval now local
2889 struct timeval now = *sq->outnet->now_tv; local
[all...]
H A Dmesh.c371 time_t timenow = *qstate->env->now;
387 * This is part of tomsg above; no need to check now. */
533 /* set detached (it is now) */
643 /* set detached (it is now) */
693 /* make it ignore the cache from now on */
719 /* set detached (it is now) */
881 * the reply_list is now NULL, so the remove-from-empty-list
1034 /* set detached (it is now) */
1105 administration should not fail now, unless they are out of sync */
1868 /* it was not detached (because it had a reply list), could be now */
[all...]
H A Dauthzone.c670 /* found it, now delete it */
1004 /* now make rrsig set smaller */
1222 * set is now of that type,
1520 /* recurse read that file now */
1977 /* we cannot alter the rbtree right now, but
1985 /* now we are out of the tree loop and we can loop and delete
3867 /** pick up the master that is being scanned right now, task_transfer */
3876 /** pick up the master that is being scanned right now, task_probe */
5031 xfr->lease_time = *env->now;
5559 /* RR parses (haven't checked rdata itself), now loo
[all...]
/freebsd-11-stable/contrib/unbound/services/cache/
H A Drrset.c368 struct ub_packed_rrset_key* rrset, time_t now)
394 updata->ttl+now < cachedata->ttl ||
395 cachedata->ttl < now ||
397 cachedata->ttl = updata->ttl + now;
399 cachedata->rr_ttl[i] = updata->rr_ttl[i]+now;
400 cachedata->ttl_add = now;
408 struct ub_packed_rrset_key* rrset, time_t now)
422 if(now > cachedata->ttl || !rrsetdata_equal(updata, cachedata)) {
430 updata->ttl = cachedata->ttl - now;
432 if(cachedata->rr_ttl[i] < now)
367 rrset_update_sec_status(struct rrset_cache* r, struct ub_packed_rrset_key* rrset, time_t now) argument
407 rrset_check_sec_status(struct rrset_cache* r, struct ub_packed_rrset_key* rrset, time_t now) argument
[all...]
/freebsd-11-stable/contrib/unbound/libunbound/
H A Dlibworker.c265 comm_base_timept(w->base, &w->env->now, &w->env->now_tv);
649 /* delete it now */
773 /* delete it now */
/freebsd-11-stable/contrib/unbound/dnstap/
H A Dunbound-dnstap-socket.c982 /* we want to read the full length now */
1186 struct timeval now; local
1193 memset(&now, 0, sizeof(now));
1194 base = ub_default_event_base(1, &secs, &now);
/freebsd-11-stable/contrib/unbound/daemon/
H A Dworker.c310 if(worker->err_limit_time == *worker->env.now) {
316 worker->err_limit_time = *worker->env.now;
486 time_t timenow = *worker->env.now;
639 time_t timenow = *worker->env.now;
649 /* Check if we need to serve expired now */
768 /* cannot send the reply right now, because blocking network syscall
1198 *worker->env.now, c->buffer)) {
1411 * might need to bail out based on ACLs now. */
1498 if((worker->env.cfg->prefetch && *worker->env.now >=
1501 *worker->env.now >
[all...]
H A Dremote.c865 struct timeval now = *worker->env.now_tv; local
867 timeval_subtract(&up, &now, &worker->daemon->time_boot);
868 timeval_subtract(&dt, &now, &worker->daemon->time_last_stat);
870 worker->daemon->time_last_stat = now;
871 if(!ssl_printf(ssl, "time.now"SQ ARG_LL "d.%6.6d\n",
872 (long long)now.tv_sec, (unsigned)now.tv_usec)) return 0;
1658 inf.expired = *worker->env.now;
1745 inf.expired = *worker->env.now;
1814 inf.expired = *worker->env.now;
2432 time_t now; member in struct:infra_arg
2786 time_t now; member in struct:ratelimit_list_arg
[all...]
/freebsd-11-stable/contrib/unbound/
H A Dconfigure1541 --enable-relro-now Enable full relocation binding at load-time (RELRO
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6120 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6122 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
10894 # AIX 5 now supports IA64 processor
11001 # AIX 5 now supports IA64 processor
13004 # Ok, now we have the path, separated by spaces, we can step through it
16044 /* now we want to get EAGAIN: nonblocking goodness */
18958 # we now know we have ECDSA and the required curves.
/freebsd-11-stable/contrib/unbound/cachedb/
H A Dcachedb.c412 timestamp = (uint64_t)*qstate->env->now;
444 if((time_t)expiry < *qstate->env->now &&
447 *qstate->env->now - (time_t)expiry > SERVE_EXPIRED_TTL)))
536 if(*qstate->env->now <= (time_t)timestamp) {
540 adjust = *qstate->env->now - (time_t)timestamp;
556 * 'now' should be redundant given how these values were calculated,
559 (adjust == -1 || (time_t)expiry < *qstate->env->now)) {
634 *qstate->env->now, 1/*add SOA*/, NULL,
/freebsd-11-stable/lib/libradius/
H A Dradlib.c666 time_t now; local
695 * would have exited this loop by now.
698 now = time(NULL);
703 h->servers[h->srv].next_probe = now +
713 h->servers[h->srv].next_probe <= now) {
974 time_t now; local
1029 now = time(NULL);
1037 h->servers[srv].next_probe <= now) {
/freebsd-11-stable/usr.sbin/newsyslog/
H A Dnewsyslog.c362 * Compress all files that we're expected to compress, now
744 * then it will still rotated at the "real now" time.
1585 * We should now have old an old rotated logfile, so
1619 * We now sort the logs in the order of newest to
1750 time_t now; local
1807 if (time(&now) == (time_t)-1 ||
1808 localtime_r(&now, &tm) == NULL)

Completed in 335 milliseconds

1234567891011>>