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 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
126 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
134 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
143 if(dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
144 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
147 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
151 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
153 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
164 if(!dba->nextkey.dptr) return NULL; in DBA_NEXTKEY_FUNC()
166 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
167 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
171 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
173 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
181 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
189 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()