Lines Matching refs:dbf
32 #define GDBM_DATA dba_gdbm_data *dba = info->dbf
36 GDBM_FILE dbf; member
42 GDBM_FILE dbf; in DBA_OPEN_FUNC() local
58 dbf = gdbm_open(info->path, 0, gmode, filemode, NULL); in DBA_OPEN_FUNC()
60 if(dbf) { in DBA_OPEN_FUNC()
61 info->dbf = pemalloc(sizeof(dba_gdbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
62 memset(info->dbf, 0, sizeof(dba_gdbm_data)); in DBA_OPEN_FUNC()
63 ((dba_gdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC()
75 gdbm_close(dba->dbf); 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()
144 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
163 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
178 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC()
186 gdbm_sync(dba->dbf); in DBA_SYNC_FUNC()