Lines Matching refs:dba
34 #define GDBM_DATA dba_gdbm_data *dba = info->dbf
77 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
78 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC()
79 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
89 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
107 if(gdbm_store(dba->dbf, gkey, gval, in DBA_UPDATE_FUNC()
119 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
127 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
136 if(dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
137 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
140 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
144 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
146 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
157 if(!dba->nextkey.dptr) return NULL; in DBA_NEXTKEY_FUNC()
159 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
160 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
164 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
166 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
174 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
182 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()