Home | History | Annotate | Download | only in src

Lines Matching defs:new

105   struct crec **new, **old, *p, *tmp;
113 new = safe_malloc(new_size * sizeof(struct crec *));
114 else if (new_size <= hash_size || !(new = whine_malloc(new_size * sizeof(struct crec *))))
118 new[i] = NULL;
122 hash_table = new;
199 /* insert a new cache entry at the head of the list (youngest entry) */
362 struct crec *new;
387 if (!(new = cache_tail)) /* no entries left - cache is too small, bail */
397 if (new->flags & (F_FORWARD | F_REVERSE))
412 cache_scan_free(cache_get_name(new), &new->addr.addr, now, new->flags);
444 cache_unlink(new);
448 new->flags = flags;
451 new->name.bname = big_name;
452 new->flags |= F_BIGNAME;
456 strcpy(cache_get_name(new), name);
458 *cache_get_name(new) = 0;
461 new->addr.addr = *addr;
463 new->addr.cname.cache = NULL;
465 new->ttd = now + (time_t)ttl;
466 new->next = new_chain;
467 new_chain = new;
469 return new;
472 /* after end of insertion, commit the new entries */
968 /* make new record */
1084 else /* need new one */
1104 else /* need new one */