Lines Matching refs:dba
45 #define DB3_DATA dba_db3_data *dba = info->dbf
118 if (dba->cursor) dba->cursor->c_close(dba->cursor); in DBA_CLOSE_FUNC()
119 dba->dbp->close(dba->dbp, 0); in DBA_CLOSE_FUNC()
120 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
131 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
148 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
162 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
173 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
180 if (dba->cursor) { in DBA_FIRSTKEY_FUNC()
181 dba->cursor->c_close(dba->cursor); in DBA_FIRSTKEY_FUNC()
184 dba->cursor = NULL; in DBA_FIRSTKEY_FUNC()
185 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0) != 0) { in DBA_FIRSTKEY_FUNC()
202 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) { in DBA_NEXTKEY_FUNC()
221 return dba->dbp->sync(dba->dbp, 0) ? FAILURE : SUCCESS; in DBA_SYNC_FUNC()