Lines Matching refs:dba
44 #define DB3_DATA dba_db3_data *dba = info->dbf
121 if (dba->cursor) dba->cursor->c_close(dba->cursor);
122 dba->dbp->close(dba->dbp, 0);
123 pefree(dba, info->flags&DBA_PERSISTENT);
134 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
151 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
165 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
176 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS;
183 if (dba->cursor) {
184 dba->cursor->c_close(dba->cursor);
187 dba->cursor = NULL;
188 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0) != 0) {
205 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
224 return dba->dbp->sync(dba->dbp, 0) ? FAILURE : SUCCESS;