Lines Matching defs:ypdb
108 ypmatch_cache_delete(struct dom_binding *ypdb, struct ypmatch_ent *prev,
112 ypdb->cache = cur->ypc_next;
121 ypdb->ypmatch_cachecnt--;
127 ypmatch_cache_flush(struct dom_binding *ypdb)
129 struct ypmatch_ent *n, *c = ypdb->cache;
133 ypmatch_cache_delete(ypdb, NULL, c);
141 ypmatch_cache_expire(struct dom_binding *ypdb)
143 struct ypmatch_ent *c = ypdb->cache;
152 ypmatch_cache_delete(ypdb, p, c);
164 ypmatch_cache_insert(struct dom_binding *ypdb, char *map, keydat *key,
170 if (ypdb->ypmatch_cachecnt)
171 ypmatch_cache_expire(ypdb);
177 if (ypdb->ypmatch_cachecnt >= YPLIB_MAXCACHE) {
178 struct ypmatch_ent *o = NULL, *c = ypdb->cache;
194 ypmatch_cache_expire(ypdb);
226 new->ypc_next = ypdb->cache;
227 ypdb->cache = new;
229 ypdb->ypmatch_cachecnt++;
235 ypmatch_cache_lookup(struct dom_binding *ypdb, char *map, keydat *key,
240 ypmatch_cache_expire(ypdb);
242 for (c = ypdb->cache; c != NULL; c = c->ypc_next) {
281 _yp_dobind(char *dom, struct dom_binding **ypdb)
315 if (ypdb != NULL)
316 *ypdb = NULL;
562 if (ypdb != NULL)
563 *ypdb = ysd;