Lines Matching refs:qptr

165 	register struct circleq_entry *qptr;  in yp_flush()  local
167 qptr = TAILQ_LAST(&qhead, circlehead); in yp_flush()
168 TAILQ_REMOVE(&qhead, qptr, links); in yp_flush()
169 yp_free_qent(qptr); in yp_flush()
179 register struct circleq_entry *qptr; in yp_flush_all() local
182 qptr = TAILQ_FIRST(&qhead); /* save this */ in yp_flush_all()
183 TAILQ_REMOVE(&qhead, qptr, links); in yp_flush_all()
184 yp_free_qent(qptr); in yp_flush_all()
220 register struct circleq_entry *qptr; in yp_testflag() local
229 TAILQ_FOREACH(qptr, &qhead, links) { in yp_testflag()
230 if (!strcmp(qptr->dbptr->name, buf)) { in yp_testflag()
231 if (qptr->dbptr->flags & flag) in yp_testflag()
256 register struct circleq_entry *qptr; in yp_cache_db() local
268 if ((qptr = yp_malloc_qent()) == NULL) { in yp_cache_db()
273 qptr->dbptr->dbp = dbp; in yp_cache_db()
274 qptr->dbptr->name = strdup(name); in yp_cache_db()
275 qptr->dbptr->size = size; in yp_cache_db()
276 qptr->dbptr->key = NULL; in yp_cache_db()
278 qptr->dbptr->flags = yp_setflags(dbp); in yp_cache_db()
280 TAILQ_INSERT_HEAD(&qhead, qptr, links); in yp_cache_db()
315 register struct circleq_entry *qptr; in yp_find_db() local
317 TAILQ_FOREACH(qptr, &qhead, links) { in yp_find_db()
318 if (!strcmp(qptr->dbptr->name, name)) { in yp_find_db()
320 if (size != qptr->dbptr->size || in yp_find_db()
321 strncmp(qptr->dbptr->key, key, size)) in yp_find_db()
324 if (qptr->dbptr->size) in yp_find_db()
327 if (qptr != TAILQ_FIRST(&qhead)) { in yp_find_db()
328 TAILQ_REMOVE(&qhead, qptr, links); in yp_find_db()
329 TAILQ_INSERT_HEAD(&qhead, qptr, links); in yp_find_db()
331 return(qptr->dbptr->dbp); in yp_find_db()