Lines Matching refs:dbf
34 #define GDBM_DATA dba_gdbm_data *dba = info->dbf
38 GDBM_FILE dbf; member
44 GDBM_FILE dbf; in DBA_OPEN_FUNC() local
61 dbf = gdbm_open(info->path, 0, gmode, filemode, NULL); in DBA_OPEN_FUNC()
63 if(dbf) { in DBA_OPEN_FUNC()
64 info->dbf = pemalloc(sizeof(dba_gdbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
65 memset(info->dbf, 0, sizeof(dba_gdbm_data)); in DBA_OPEN_FUNC()
66 ((dba_gdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC()
78 gdbm_close(dba->dbf); 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()
147 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
166 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
181 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
189 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()