Lines Matching refs:dbf
30 #define QDBM_DATA dba_qdbm_data *dba = info->dbf
33 DEPOT *dbf; member
38 DEPOT *dbf; in DBA_OPEN_FUNC() local
42 dbf = dpopen(info->path, DP_OREADER, 0); in DBA_OPEN_FUNC()
45 dbf = dpopen(info->path, DP_OWRITER, 0); in DBA_OPEN_FUNC()
48 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT, 0); in DBA_OPEN_FUNC()
51 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT | DP_OTRUNC, 0); in DBA_OPEN_FUNC()
57 if (dbf) { in DBA_OPEN_FUNC()
58 info->dbf = pemalloc(sizeof(dba_qdbm_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC()
59 memset(info->dbf, 0, sizeof(dba_qdbm_data)); in DBA_OPEN_FUNC()
60 ((dba_qdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC()
72 dpclose(dba->dbf); in DBA_CLOSE_FUNC()
82 value = dpget(dba->dbf, key, keylen, 0, -1, &value_size); in DBA_FETCH_FUNC()
96 if (dpput(dba->dbf, key, keylen, val, vallen, mode == 1 ? DP_DKEEP : DP_DOVER)) { in DBA_UPDATE_FUNC()
112 value = dpget(dba->dbf, key, keylen, 0, -1, NULL); in DBA_EXISTS_FUNC()
125 return dpout(dba->dbf, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
134 dpiterinit(dba->dbf); in DBA_FIRSTKEY_FUNC()
136 value = dpiternext(dba->dbf, &value_size); in DBA_FIRSTKEY_FUNC()
152 value = dpiternext(dba->dbf, &value_size); in DBA_NEXTKEY_FUNC()
166 dpoptimize(dba->dbf, 0); in DBA_OPTIMIZE_FUNC()
174 dpsync(dba->dbf); in DBA_SYNC_FUNC()