Lines Matching refs:dba
63 dba_gdbm_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
65 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
66 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC()
67 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
72 dba_gdbm_data *dba = info->dbf; in DBA_FETCH_FUNC() local
80 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
90 dba_gdbm_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
99 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
117 dba_gdbm_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
123 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
128 dba_gdbm_data *dba = info->dbf; in DBA_DELETE_FUNC() local
134 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
139 dba_gdbm_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
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()
150 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
152 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
159 dba_gdbm_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
163 if(!dba->nextkey.dptr) { return NULL; } in DBA_NEXTKEY_FUNC()
165 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
166 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
169 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()
171 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()
178 dba_gdbm_data *dba = info->dbf; in DBA_OPTIMIZE_FUNC() local
180 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
186 dba_gdbm_data *dba = info->dbf; in DBA_SYNC_FUNC() local
188 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()