Searched refs:dbp (Results 1 - 25 of 102) sorted by relevance

12345

/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_iface.c39 __db_cdelchk(dbp, flags, isrdonly, isvalid)
40 const DB *dbp;
46 return (__db_rdonly(dbp->dbenv, "c_del"));
53 return (__db_ferr(dbp->dbenv, "DBcursor->c_del", 0));
70 __db_cgetchk(dbp, key, data, flags, isvalid)
71 const DB *dbp;
84 if (dbp->type == DB_RECNO)
102 if (!F_ISSET(dbp, DB_BT_RECNUM))
106 if (!F_ISSET(dbp, DB_BT_RECNUM))
111 err: return (__db_ferr(dbp
[all...]
H A Ddb_am.c47 __db_init_wrapper(dbp)
48 DB *dbp;
50 dbp->close = __db_close;
51 dbp->cursor = __db_cursor;
52 dbp->del = NULL; /* !!! Must be set by access method. */
53 dbp->fd = __db_fd;
54 dbp->get = __db_get;
55 dbp->join = __db_join;
56 dbp->put = __db_put;
57 dbp
180 DB *dbp; local
283 DB *dbp; local
[all...]
H A Ddb.c75 #define DBINFO_FCHK(dbp, fn, meta_flags, m_name, dbp_name) { \
77 F_SET(dbp, dbp_name); \
79 if (F_ISSET(dbp, dbp_name)) { \
102 DB *dbp; local
147 if ((ret = __os_calloc(1, sizeof(DB), &dbp)) != 0)
149 dbp->dbenv = dbenv;
152 dbp->saved_open_fd = fd = -1;
157 TAILQ_INIT(&dbp->free_queue);
158 TAILQ_INIT(&dbp->active_queue);
159 if ((ret = __db_init_wrapper(dbp)) !
[all...]
H A Ddb_overflow.c82 __db_goff(dbp, dbt, tlen, pgno, bpp, bpsz)
83 DB *dbp;
118 __os_malloc(needed, dbp->db_malloc, &dbt->data)) != 0)
134 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0) {
135 (void)__db_pgerr(dbp, pgno);
154 memp_fput(dbp->mpf, h, 0);
173 DB *dbp; local
187 dbp = dbc->dbp;
188 pagespace = P_MAXSPACE(dbp
261 DB *dbp; local
294 DB *dbp; local
[all...]
H A Ddb_dup.c57 if (dbt->size > 0.25 * dbc->dbp->pgsize) {
100 (void)memp_fset(dbc->dbp->mpf, pagep, DB_MPOOL_DIRTY);
150 (void)memp_fset(dbc->dbp->mpf, pagep, DB_MPOOL_DIRTY);
167 DB *dbp; local
171 dbp = dbc->dbp;
182 if ((ret = memp_fget(dbp->mpf, &pgno, 0, pp)) != 0) {
183 (void)__db_pgerr(dbp, pgno);
191 if ((ret = memp_fput(dbp->mpf, h, 0)) != 0)
218 DB *dbp; local
398 DB *dbp; local
466 DB *dbp; local
538 DB *dbp; local
649 DB *dbp; local
690 DB *dbp; local
753 DB *dbp; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/hash/
H A Dhash_stat.c31 __ham_stat(dbp, spp, db_malloc, flags)
32 DB *dbp;
41 DB_PANIC_CHECK(dbp);
43 return (__db_eopnotsup(dbp->dbenv));
H A Dhash.c94 __ham_open(dbp, dbinfo)
95 DB *dbp;
104 dbenv = dbp->dbenv;
108 dbp->h_hash = dbinfo->h_hash;
111 * Initialize the remaining fields of the dbp. The only function
114 dbp->internal = NULL;
115 dbp->am_close = __ham_close;
116 dbp->del = __ham_delete;
117 dbp->stat = __ham_stat;
120 if ((ret = dbp
204 DB *dbp; local
352 DB *dbp; local
512 DB *dbp; local
666 DB *dbp; local
795 DB *dbp; local
902 DB *dbp; local
1127 DB *dbp; local
1247 DB *dbp; local
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhsearch.c51 static DB *dbp = NULL; variable
66 dbp = (DB *)__hash_open(NULL, O_CREAT | O_RDWR | O_BINARY, 0600, &info, 0);
67 return (dbp != NULL);
78 if (!dbp)
86 status = (dbp->put)(dbp, &key, &val, R_NOOVERWRITE);
91 status = (dbp->get)(dbp, &key, &val, 0);
105 if (dbp) {
106 (void)(dbp
[all...]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_strsubr.c93 freebs_enqueue(mblk_t *mp, dblk_t *dbp) argument
117 dblk_t *dbp = mp->b_datap; local
118 frtn_t *frp = dbp->db_frtnp;
121 if (dbp->db_fthdr != NULL)
122 str_ftfree(dbp);
124 ASSERT(dbp->db_fthdr == NULL);
126 ASSERT(dbp->db_mblk == mp);
128 if (dbp->db_credp != NULL) {
129 crfree(dbp->db_credp);
130 dbp
[all...]
H A Dfake_stream.c79 #define DBLK_RTFU_WORD(dbp) (*((uint32_t *)&(dbp)->db_ref))
99 static void dblk_lastfree(mblk_t *mp, dblk_t *dbp);
104 static void bcache_dblk_lastfree(mblk_t *mp, dblk_t *dbp);
115 dblk_t *dbp = buf; local
125 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL)
128 dbp->db_base = kmem_alloc(msg_size, kmflags);
129 if (dbp->db_base == NULL) {
130 kmem_cache_free(mblk_cache, dbp->db_mblk);
134 dbp
154 dblk_t *dbp = buf; local
171 dblk_t *dbp = buf; local
200 dblk_t *dbp = buf; local
218 dblk_t *dbp = buf; local
298 dblk_t *dbp; local
361 dblk_t *dbp = mp->b_datap; local
376 dblk_t *dbp = mp->b_datap; local
397 dblk_t *dbp = mp->b_datap; local
432 dblk_t *dbp = mp->b_datap; local
455 dblk_t *dbp = mp->b_datap; local
471 dblk_t *dbp = mp->b_datap; local
535 dblk_lastfree(mblk_t *mp, dblk_t *dbp) argument
559 dblk_decref(mblk_t *mp, dblk_t *dbp) argument
586 dblk_t *dbp = mp->b_datap; local
637 dblk_t *dbp; local
664 bcache_dblk_lastfree(mblk_t *mp, dblk_t *dbp) argument
747 dblk_t *dbp; local
781 dblk_lastfree_oversize(mblk_t *mp, dblk_t *dbp) argument
843 dblk_t *dbp; local
1135 dblk_t *dbp; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/hsearch/
H A Dhsearch.c63 static DB *dbp; variable
78 DB_HASH, DB_CREATE, __db_omode("rw----"), NULL, &dbinfo, &dbp);
89 if (dbp == NULL) {
108 dbp->put(dbp, NULL, &key, &val, DB_NOOVERWRITE)) == 0)
112 if ((errno = dbp->get(dbp, NULL, &key, &val, 0)) == 0)
119 if ((errno = dbp->get(dbp, NULL, &key, &val, 0)) != 0) {
138 if (dbp !
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/xa/
H A Dxa_db.c54 DB *dbp, *real_dbp; local
89 if ((ret = __os_calloc(1, sizeof(DB), &dbp)) != 0) {
93 dbp->type = real_dbp->type;
94 dbp->byteswapped = real_dbp->byteswapped;
95 dbp->dbenv = dbenv;
96 dbp->internal = real_dbp;
97 TAILQ_INIT(&dbp->active_queue);
98 TAILQ_INIT(&dbp->free_queue);
99 dbp->close = __xa_close;
100 dbp
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Ddb21554.c256 static void db_get_perf_parameters(db_ctrl_t *dbp);
257 static void db_set_perf_parameters(db_ctrl_t *dbp);
258 static void db_enable_io(db_ctrl_t *dbp);
259 static void db_orientation(db_ctrl_t *dbp);
260 static void db_set_dvma_range(db_ctrl_t *dbp);
313 static dev_info_t *db_lookup_child_name(db_ctrl_t *dbp, char *name,
421 static int db_save_config_regs(db_ctrl_t *dbp);
422 static int db_restore_config_regs(db_ctrl_t *dbp);
479 db_ctrl_t *dbp; local
490 if ((dbp
516 db_ctrl_t *dbp; local
715 db_ctrl_t *dbp; local
765 db_get_perf_parameters(db_ctrl_t *dbp) argument
788 db_set_perf_parameters(db_ctrl_t *dbp) argument
864 db_orientation(db_ctrl_t *dbp) argument
937 db_enable_io(db_ctrl_t *dbp) argument
1166 db_set_dvma_range(db_ctrl_t *dbp) argument
1382 db_ctrl_t *dbp = (db_ctrl_t *)ddi_get_soft_state(db_state, instance); local
1423 db_ctrl_t *dbp = (db_ctrl_t *)ddi_get_soft_state(db_state, instance); local
1459 db_ctrl_t *dbp = (db_ctrl_t *)ddi_get_soft_state(db_state, instance); local
1585 db_lookup_child_name(db_ctrl_t *dbp, char *name, int instance) argument
1724 db_ctrl_t *dbp; local
2258 db_ctrl_t *dbp; local
2445 db_save_config_regs(db_ctrl_t *dbp) argument
2529 db_restore_config_regs(db_ctrl_t *dbp) argument
2662 db_ctrl_t *dbp; local
2782 db_ctrl_t *dbp; local
3041 db_ctrl_t *dbp = (db_ctrl_t *)ddi_get_soft_state(db_state, instance); local
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_open.c72 __bam_open(dbp, dbinfo)
73 DB *dbp;
82 dbp->internal = t;
130 dbp->am_close = __bam_close;
131 dbp->del = __bam_delete;
132 dbp->stat = __bam_stat;
135 if ((ret = __bam_read_root(dbp)) != 0)
139 __bam_setovflsize(dbp);
156 __bam_close(dbp)
157 DB *dbp;
[all...]
H A Dbt_page.c77 DB *dbp; local
83 dbp = dbc->dbp;
91 if ((ret = memp_fget(dbp->mpf, &pgno, 0, (PAGE **)&meta)) != 0)
95 if ((ret = memp_fget(dbp->mpf, &pgno, DB_MPOOL_NEW, &h)) != 0)
101 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0)
108 if ((ret = __bam_pg_alloc_log(dbp->dbenv->lg_info, dbc->txn,
109 &meta->lsn, 0, dbp->log_fileid, &meta->lsn, &h->lsn,
115 (void)memp_fput(dbp->mpf, (PAGE *)meta, DB_MPOOL_DIRTY);
118 P_INIT(h, dbp
157 DB *dbp; local
242 DB *dbp; local
269 DB *dbp; local
[all...]
H A Dbt_curadj.c34 __bam_cprint(dbp)
35 DB *dbp;
40 DB_THREAD_LOCK(dbp);
41 for (dbc = TAILQ_FIRST(&dbp->active_queue);
52 DB_THREAD_UNLOCK(dbp);
66 __bam_ca_delete(dbp, pgno, indx, delete)
67 DB *dbp;
77 if (dbp->type == DB_RECNO)
91 DB_THREAD_LOCK(dbp);
92 for (count = 0, dbc = TAILQ_FIRST(&dbp
[all...]
H A Dbt_recno.c59 #define CD_SET(dbp, cp) { \
60 if (F_ISSET(dbp, DB_RE_RENUMBER)) \
63 #define CD_CLR(dbp, cp) { \
64 if (F_ISSET(dbp, DB_RE_RENUMBER)) \
67 #define CD_ISSET(dbp, cp) \
68 (F_ISSET(dbp, DB_RE_RENUMBER) && F_ISSET(cp, C_DELETED))
77 __ram_open(dbp, dbinfo)
78 DB *dbp;
89 dbp->internal = t;
90 __bam_setovflsize(dbp);
248 DB *dbp; local
484 DB *dbp; local
535 DB *dbp; local
692 DB *dbp; local
839 DB *dbp; local
871 DB *dbp; local
998 DB *dbp; local
1142 DB *dbp; local
1273 DB *dbp; local
[all...]
H A Dbt_delete.c70 __bam_delete(dbp, txn, key, flags)
71 DB *dbp;
81 DB_PANIC_CHECK(dbp);
85 __db_delchk(dbp, key, flags, F_ISSET(dbp, DB_AM_RDONLY))) != 0)
89 if ((ret = dbp->cursor(dbp, txn, &dbc, DB_WRITELOCK)) != 0)
106 if (dbp->dbenv != NULL && dbp->dbenv->lk_info != NULL) {
149 DB *dbp; local
255 DB *dbp; local
302 DB *dbp; local
410 DB *dbp; local
[all...]
H A Dbt_stat.c32 __bam_stat(dbp, spp, db_malloc, flags)
33 DB *dbp;
47 DB_PANIC_CHECK(dbp);
50 if ((ret = __db_statchk(dbp, flags)) != 0)
53 if ((ret = dbp->cursor(dbp, NULL, &dbc, 0)) != 0)
58 t = dbp->internal;
73 if ((ret = memp_fget(dbp->mpf, &pgno, 0, (PAGE **)&h)) != 0)
78 (void)memp_fput(dbp->mpf, h, 0);
87 if ((ret = memp_fget(dbp
[all...]
H A Dbt_rsearch.c73 DB *dbp; local
82 dbp = dbc->dbp;
107 if ((ret = memp_fget(dbp->mpf, &pg, 0, &h)) != 0) {
123 (void)memp_fput(dbp->mpf, h, 0);
127 if ((ret = memp_fget(dbp->mpf, &pg, 0, &h)) != 0) {
157 (void)memp_fput(dbp->mpf, h, 0);
229 return (__db_pgfmt(dbp, h->pgno));
257 (void)memp_fput(dbp->mpf, h, 0);
265 if ((ret = memp_fget(dbp
287 DB *dbp; local
332 DB *dbp; local
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/
H A Ddb.c88 * dbp: pointer to the DB structure.
91 __dbpanic(dbp)
92 DB *dbp;
95 dbp->del = (int (*)())__dberr;
96 dbp->fd = (int (*)())__dberr;
97 dbp->get = (int (*)())__dberr;
98 dbp->put = (int (*)())__dberr;
99 dbp->seq = (int (*)())__dberr;
100 dbp->sync = (int (*)())__dberr;
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.c65 ask_db(struct db *dbp, const char *file) argument
100 for (ep = (struct dbe *)&(dbp->db_hash[index]); (ep && ep->dbe_lop);
103 (struct dbe *)&AP(dbp)[ep->dbe_next]) {
105 tlop = (struct link_object *)&AP(dbp)[ep->dbe_lop];
107 if (strcmp((char *)&AP(dbp)[tlop->lo_name],
118 &AP(dbp)[ep->dbe_name] + tlop->lo_minor) > 0)
120 &AP(dbp)[ep->dbe_name], file + to_min);
121 return (&AP(dbp)[ep->dbe_name]);
131 struct db *dbp; /* database pointer */ local
141 if (dbp
157 struct db *dbp; /* database */ local
311 get_lo(struct db *dbp, char *cp, int cplen, int m, int n) argument
376 fix_lo(struct db *dbp) argument
413 new_dbd(struct dbd **dbdpp, struct db *dbp) argument
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_close.c58 * dbp: pointer to access method
64 __rec_close(dbp)
65 DB *dbp;
70 t = dbp->internal;
78 if (__rec_sync(dbp, 0) == RET_ERROR)
97 if (__bt_close(dbp) == RET_ERROR)
107 * dbp: pointer to access method
113 __rec_sync(dbp, flags)
114 const DB *dbp;
124 t = dbp
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_rec.c120 * Otherwise, we should usually have a valid dbp we should
128 if (dbe->dbp != NULL && --dbe->refcount == 0) {
129 ret = dbe->dbp->close(dbe->dbp, 0);
141 logp->dbentry[argp->id].dbp == NULL))) {
192 if (dbe != NULL && (dbe->deleted == 1 || dbe->dbp != NULL) &&
202 if (dbe != NULL && dbe->dbp != NULL) {
203 (void)dbe->dbp->close(dbe->dbp, 0);
229 DB *dbp; local
[all...]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_ksndudat.c70 mblk_t *dbp; local
90 if ((dbp = (mblk_t *)esballoc((uchar_t *)unitdata->udata.buf,
94 dbp->b_datap->db_type = M_DATA;
95 KTLILOG(2, "t_ksndudata: bp %x, ", dbp);
101 while (!(dbp = allocb(msgsz, BPRI_LO)))
105 bcopy(unitdata->udata.buf, dbp->b_wptr, unitdata->udata.len);
106 dbp->b_datap->db_type = M_DATA;
113 dbp = unitdata->udata.udata_mp;
120 dbp = NULL;
123 if (dbp)
[all...]

Completed in 108 milliseconds

12345