Lines Matching refs:di_dbm
40 GDBM_FILE di_dbm; member
48 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
76 if ((dp->di_dbm = gdbm_open((char *)file, 0, flags, mode, NULL)) == 0) { in newdbmobject()
92 if (dp->di_dbm) in dbm_dealloc()
93 gdbm_close(dp->di_dbm); in dbm_dealloc()
100 if (dp->di_dbm == NULL) { in dbm_length()
108 if (gdbm_count(dp->di_dbm, &count) == -1) { in dbm_length()
128 for (key = gdbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
129 key = gdbm_nextkey(dp->di_dbm,okey)) { in dbm_length()
172 if (dp->di_dbm == NULL) { in dbm_subscript()
177 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
221 if (dp->di_dbm == NULL) { in dbm_ass_sub()
228 if (gdbm_delete(dp->di_dbm, krec) < 0) { in dbm_ass_sub()
243 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()
298 if (self->di_dbm) in _gdbm_gdbm_close_impl()
299 gdbm_close(self->di_dbm); in _gdbm_gdbm_close_impl()
300 self->di_dbm = NULL; in _gdbm_gdbm_close_impl()
329 key = gdbm_firstkey(self->di_dbm); in _gdbm_gdbm_keys_impl()
344 nextkey = gdbm_nextkey(self->di_dbm, key); in _gdbm_gdbm_keys_impl()
358 if ((dp)->di_dbm == NULL) { in dbm_contains()
379 return gdbm_exists(dp->di_dbm, key); in dbm_contains()
413 key = gdbm_firstkey(self->di_dbm); in _gdbm_gdbm_firstkey_impl()
452 nextkey = gdbm_nextkey(self->di_dbm, dbm_key); in _gdbm_gdbm_nextkey_impl()
481 if (gdbm_reorganize(self->di_dbm) < 0) { in _gdbm_gdbm_reorganize_impl()
505 gdbm_sync(self->di_dbm); in _gdbm_gdbm_sync_impl()