Lines Matching refs:dbf
34 #define QDBM_DATA dba_qdbm_data *dba = info->dbf
37 DEPOT *dbf; member
42 DEPOT *dbf; in DBA_OPEN_FUNC() local
46 dbf = dpopen(info->path, DP_OREADER, 0); in DBA_OPEN_FUNC()
49 dbf = dpopen(info->path, DP_OWRITER, 0); in DBA_OPEN_FUNC()
52 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT, 0); in DBA_OPEN_FUNC()
55 dbf = dpopen(info->path, DP_OWRITER | DP_OCREAT | DP_OTRUNC, 0); in DBA_OPEN_FUNC()
61 if (dbf) { in DBA_OPEN_FUNC()
62 info->dbf = pemalloc(sizeof(dba_qdbm_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC()
63 memset(info->dbf, 0, sizeof(dba_qdbm_data)); in DBA_OPEN_FUNC()
64 ((dba_qdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC()
76 dpclose(dba->dbf); in DBA_CLOSE_FUNC()
86 value = dpget(dba->dbf, key, keylen, 0, -1, &value_size); in DBA_FETCH_FUNC()
100 if (dpput(dba->dbf, key, keylen, val, vallen, mode == 1 ? DP_DKEEP : DP_DOVER)) { in DBA_UPDATE_FUNC()
116 value = dpget(dba->dbf, key, keylen, 0, -1, NULL); in DBA_EXISTS_FUNC()
129 return dpout(dba->dbf, key, keylen) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
138 dpiterinit(dba->dbf); in DBA_FIRSTKEY_FUNC()
140 value = dpiternext(dba->dbf, &value_size); in DBA_FIRSTKEY_FUNC()
156 value = dpiternext(dba->dbf, &value_size); in DBA_NEXTKEY_FUNC()
170 dpoptimize(dba->dbf, 0); in DBA_OPTIMIZE_FUNC()
178 dpsync(dba->dbf); in DBA_SYNC_FUNC()