Lines Matching refs:dbh
93 DB * dbh;
161 if (pvt->dbh != NULL)
162 (*pvt->dbh->close)(pvt->dbh);
180 if (pvt->dbh != NULL) {
191 if ((*pvt->dbh->get)(pvt->dbh, &key, &data, 0) != 0)
193 } else if ((*pvt->dbh->seq)(pvt->dbh, &key, &data, R_CURSOR)
224 if (pvt->dbh != NULL) {
237 if ((*pvt->dbh->get)(pvt->dbh, &key, &data, 0) != 0)
240 if ((*pvt->dbh->seq)(pvt->dbh, &key, &data, R_CURSOR)
268 if (pvt->dbh != NULL)
270 pvt->dbh = dbopen(_PATH_SERVICES_DB, O_RDONLY,O_RDONLY,DB_BTREE, NULL);
271 if (pvt->dbh != NULL) {
272 if (fcntl((*pvt->dbh->fd)(pvt->dbh), F_SETFD, 1) < 0) {
273 (*pvt->dbh->close)(pvt->dbh);
274 pvt->dbh = NULL;
292 if (pvt->dbh == NULL && pvt->sv.fp == NULL)
299 if (pvt->dbh != NULL) {
302 while ((*pvt->dbh->seq)(pvt->dbh, &key, &data, pvt->dbf) == 0){
321 if (pvt->dbh != NULL) {
322 (*pvt->dbh->close)(pvt->dbh);
323 pvt->dbh = NULL;