Lines Matching refs:qptr
168 register struct circleq_entry *qptr; in yp_flush() local
170 qptr = TAILQ_LAST(&qhead, circlehead); in yp_flush()
171 TAILQ_REMOVE(&qhead, qptr, links); in yp_flush()
172 yp_free_qent(qptr); in yp_flush()
184 register struct circleq_entry *qptr; in yp_flush_all() local
187 qptr = TAILQ_FIRST(&qhead); /* save this */ in yp_flush_all()
188 TAILQ_REMOVE(&qhead, qptr, links); in yp_flush_all()
189 yp_free_qent(qptr); in yp_flush_all()
226 register struct circleq_entry *qptr; in yp_testflag() local
235 TAILQ_FOREACH(qptr, &qhead, links) { in yp_testflag()
236 if (!strcmp(qptr->dbptr->name, buf)) { in yp_testflag()
237 if (qptr->dbptr->flags & flag) in yp_testflag()
262 register struct circleq_entry *qptr; in yp_cache_db() local
274 if ((qptr = yp_malloc_qent()) == NULL) { in yp_cache_db()
279 qptr->dbptr->dbp = dbp; in yp_cache_db()
280 qptr->dbptr->name = strdup(name); in yp_cache_db()
281 qptr->dbptr->size = size; in yp_cache_db()
282 qptr->dbptr->key = NULL; in yp_cache_db()
284 qptr->dbptr->flags = yp_setflags(dbp); in yp_cache_db()
286 TAILQ_INSERT_HEAD(&qhead, qptr, links); in yp_cache_db()
321 register struct circleq_entry *qptr; in yp_find_db() local
323 TAILQ_FOREACH(qptr, &qhead, links) { in yp_find_db()
324 if (!strcmp(qptr->dbptr->name, name)) { in yp_find_db()
326 if (size != qptr->dbptr->size || in yp_find_db()
327 strncmp(qptr->dbptr->key, key, size)) in yp_find_db()
330 if (qptr->dbptr->size) in yp_find_db()
333 if (qptr != TAILQ_FIRST(&qhead)) { in yp_find_db()
334 TAILQ_REMOVE(&qhead, qptr, links); in yp_find_db()
335 TAILQ_INSERT_HEAD(&qhead, qptr, links); in yp_find_db()
337 return(qptr->dbptr->dbp); in yp_find_db()