Lines Matching refs:dba
32 #define GDBM_DATA dba_gdbm_data *dba = info->dbf
74 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
75 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC()
76 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
86 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
104 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
123 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
131 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
140 if(dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
141 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
144 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
148 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
150 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
161 if(!dba->nextkey.dptr) return NULL; in DBA_NEXTKEY_FUNC()
163 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
164 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
168 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
170 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
178 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
186 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()