Home | History | Annotate | Download | only in src

Lines Matching full:now

246 static int is_expired(time_t now, struct crec *crecp)
251 if (difftime(now, crecp->ttd) < 0)
257 static int cache_scan_free(char *name, struct all_addr *addr, time_t now, unsigned short flags)
277 if (is_expired(now, crecp) || is_outdated_cname_pointer(crecp))
311 if (is_expired(now, crecp))
360 time_t now, unsigned long ttl, unsigned short flags)
372 /* if previous insertion failed give up now. */
379 if (!cache_scan_free(name, addr, now, flags))
385 /* Now get a cache entry from the end of the LRU list */
394 chains for expired entries do that now. If we already tried that
411 free_avail = 1; /* Must be free space now. */
412 cache_scan_free(cache_get_name(new), &new->addr.addr, now, new->flags);
417 cache_scan_free(NULL, NULL, now, 0);
424 If that fails, give up now. */
465 new->ttd = now + (time_t)ttl;
495 struct crec *cache_find_by_name(struct crec *crecp, char *name, time_t now, unsigned short prot)
512 if (!is_expired(now, crecp) && !is_outdated_cname_pointer(crecp))
580 time_t now, unsigned short prot)
604 if (!is_expired(now, crecp))
1125 void dump_cache(time_t now)
1129 my_syslog(LOG_INFO, _("time %lu"), (unsigned long)now);
1202 p += sprintf(p, "%lu", cache->flags & F_IMMORTAL ? 0: (unsigned long)(cache->ttd - now));