Lines Matching refs:dba
30 #define GDBM_DATA dba_gdbm_data *dba = info->dbf
72 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
73 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC()
74 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
84 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
102 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
121 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
129 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
138 if(dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
139 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
142 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
146 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
148 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
159 if(!dba->nextkey.dptr) return NULL; in DBA_NEXTKEY_FUNC()
161 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
162 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
166 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
168 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
176 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
184 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()