Lines Matching refs:DB
36 static int __xa_close __P((DB *, u_int32_t));
37 static int __xa_cursor __P((DB *, DB_TXN *, DBC **, u_int32_t));
38 static int __xa_del __P((DB *, DB_TXN *, DBT *, u_int32_t));
39 static int __xa_fd __P((DB *, int *));
40 static int __xa_get __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
41 static int __xa_put __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
42 static int __xa_stat __P((DB *, void *, void *(*)(size_t), u_int32_t));
43 static int __xa_sync __P((DB *, u_int32_t));
52 DB **dbpp;
54 DB *dbp, *real_dbp;
60 * First try to open up the underlying DB.
65 * the "current" DB environment was moved to the start of the list.
69 * this is the next call into DB. In that case, we still have to
85 * Allocate our own DB handle, and copy the exported fields and
87 * the real underlying DB handle.
89 if ((ret = __os_calloc(1, sizeof(DB), &dbp)) != 0) {
115 DB *dbp;
118 DB *real_dbp;
126 /* Close the DB handle. */
127 real_dbp = (DB *)dbp->internal;
130 __os_free(dbp, sizeof(DB));
136 DB *dbp;
141 DB *real_dbp;
145 real_dbp = (DB *)dbp->internal;
174 DB *dbp;
177 DB *real_dbp;
181 real_dbp = (DB *)dbp->internal;
187 DB *dbp;
192 DB *real_dbp;
194 real_dbp = (DB *)dbp->internal;
202 DB *dbp;
208 DB *real_dbp;
210 real_dbp = (DB *)dbp->internal;
218 DB *dbp;
224 DB *real_dbp;
226 real_dbp = (DB *)dbp->internal;
234 DB *dbp;
239 DB *real_dbp;
241 real_dbp = (DB *)dbp->internal;
247 DB *dbp;
250 DB *real_dbp;
252 real_dbp = (DB *)dbp->internal;