Home
last modified time | relevance | path

Searched refs:dbp (Results 1 – 25 of 101) sorted by relevance

12345

/titanic_41/usr/src/cmd/sendmail/db/db/
H A Ddb.c75 #define DBINFO_FCHK(dbp, fn, meta_flags, m_name, dbp_name) { \ argument
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)) != 0)
[all …]
H A Ddb_iface.c39 __db_cdelchk(dbp, flags, isrdonly, isvalid) in __db_cdelchk() argument
40 const DB *dbp; in __db_cdelchk()
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) in __db_cgetchk() argument
71 const DB *dbp; in __db_cgetchk()
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->dbenv, "DBcursor->c_get", 0));
[all …]
H A Ddb_am.c47 __db_init_wrapper(dbp) in __db_init_wrapper() argument
48 DB *dbp; in __db_init_wrapper()
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->stat = NULL; /* !!! Must be set by access method. */
[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
226 dbp = dbc->dbp;
[all …]
H A Ddb_overflow.c82 __db_goff(dbp, dbt, tlen, pgno, bpp, bpsz) in __db_goff() argument
83 DB *dbp; in __db_goff()
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->pgsize);
211 if ((ret = __db_big_log(dbp->dbenv->lg_info, dbc->txn,
[all …]
/titanic_41/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; in db_getinfo() local
490 if ((dbp = ddi_get_soft_state(db_state, in db_getinfo()
[all …]
/titanic_41/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->cursor = __xa_cursor;
[all …]
/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_open.c72 __bam_open(dbp, dbinfo) in __bam_open() argument
73 DB *dbp; in __bam_open()
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) in __bam_close() argument
157 DB *dbp; in __bam_close()
[all …]
H A Dbt_recno.c59 #define CD_SET(dbp, cp) { \ argument
60 if (F_ISSET(dbp, DB_RE_RENUMBER)) \
63 #define CD_CLR(dbp, cp) { \ argument
64 if (F_ISSET(dbp, DB_RE_RENUMBER)) \
67 #define CD_ISSET(dbp, cp) \ argument
68 (F_ISSET(dbp, DB_RE_RENUMBER) && F_ISSET(cp, C_DELETED))
77 __ram_open(dbp, dbinfo) in __ram_open() argument
78 DB *dbp; in __ram_open()
89 dbp->internal = t;
90 __bam_setovflsize(dbp);
[all …]
H A Dbt_curadj.c34 __bam_cprint(dbp) in __bam_cprint() argument
35 DB *dbp; in __bam_cprint()
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) in __bam_ca_delete() argument
67 DB *dbp; in __bam_ca_delete()
77 if (dbp->type == DB_RECNO)
91 DB_THREAD_LOCK(dbp);
92 for (count = 0, dbc = TAILQ_FIRST(&dbp->active_queue);
[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->pgsize, h->pgno, PGNO_INVALID, PGNO_INVALID, 0, type);
123 (void)memp_fput(dbp->mpf, h, 0);
[all …]
H A Dbt_delete.c70 __bam_delete(dbp, txn, key, flags) in __bam_delete() argument
71 DB *dbp; in __bam_delete()
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
153 dbp = dbc->dbp;
168 return (__db_pgfmt(dbp, h->pgno));
227 return (__db_pgfmt(dbp, h->pgno));
[all …]
H A Dbt_cursor.c50 (void)memp_fput((dbc)->dbp->mpf, (cp)->page, 0); \
125 DB *dbp; local
132 dbp = dbc->dbp;
140 if (dbp->type == DB_RECNO || F_ISSET(dbp, DB_BT_RECNUM)) {
151 if (dbp->type == DB_BTREE) {
180 DB *dbp; local
183 dbp = dbc->dbp;
191 if (dbp->type == DB_BTREE && F_ISSET(cp, C_DELETED))
203 __db_err(dbp->dbenv, "btree cursor close: stack not empty");
236 DB *dbp; local
[all …]
H A Dbt_stat.c32 __bam_stat(dbp, spp, db_malloc, flags) in __bam_stat() argument
33 DB *dbp; in __bam_stat()
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->mpf, &pgno, 0, (PAGE **)&meta)) != 0)
109 sp->bt_pagesize = dbp->pgsize;
[all …]
H A Dbt_split.c82 DB *dbp; local
86 dbp = dbc->dbp;
116 t = dbp->internal;
121 if ((ret = (dbp->type == DB_BTREE ?
179 DB *dbp; local
184 dbp = dbc->dbp;
197 P_INIT(lp, dbp->pgsize, lp->pgno,
200 P_INIT(rp, dbp->pgsize, rp->pgno,
214 __a.size = dbp->pgsize;
216 if ((ret = __bam_split_log(dbp->dbenv->lg_info, dbc->txn,
[all …]
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.c65 ask_db(dbp, file) in ask_db() argument
66 struct db *dbp; in ask_db()
102 for (ep = (struct dbe *)&(dbp->db_hash[index]); (ep && ep->dbe_lop);
105 (struct dbe *)&AP(dbp)[ep->dbe_next]) {
107 tlop = (struct link_object *)&AP(dbp)[ep->dbe_lop];
109 if (strcmp((char *)&AP(dbp)[tlop->lo_name],
120 &AP(dbp)[ep->dbe_name] + tlop->lo_minor) > 0)
122 &AP(dbp)[ep->dbe_name], file + to_min);
123 return (&AP(dbp)[ep->dbe_name]);
133 struct db *dbp; /* database pointer */ in lo_cache() local
[all …]
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Ddbtab.c95 static int store_record(struct db_list *dbp, void *keyaddr, int keysize,
97 static void *fetch_record(struct db_list *dbp, void *keyaddr, int keysize,
99 static int delete_record(struct db_list *dbp, void *keyaddr, int keysize,
101 static int db_update_fhrec(struct db_list *dbp, void *keyaddr, int keysize,
103 static int db_update_linkinfo(struct db_list *dbp, void *keyaddr, int keysize,
105 static fhlist_ent *create_primary_struct(struct db_list *dbp, fhandle_t *dfh,
108 static fhlist_ent *db_add_primary(struct db_list *dbp, fhandle_t *dfh,
111 static linkinfo_ent *get_next_link(struct db_list *dbp, char *linkkey,
115 static void add_mc_path(struct db_list *dbp, fhandle_t *dfh, char *name,
117 static linkinfo_ent *create_link_struct(struct db_list *dbp, fhandle_t *dfh,
[all …]
/titanic_41/usr/src/cmd/sendmail/db/hash/
H A Dhash.c94 __ham_open(dbp, dbinfo) in __ham_open() argument
95 DB *dbp; in __ham_open()
104 dbenv = dbp->dbenv;
108 dbp->h_hash = dbinfo->h_hash;
114 dbp->internal = NULL;
115 dbp->am_close = __ham_close;
116 dbp->del = __ham_delete;
117 dbp->stat = __ham_stat;
120 if ((ret = dbp->cursor(dbp, NULL, &dbc, 0)) != 0)
124 GET_META(dbp, hcp, ret);
[all …]
H A Dhash_page.c94 DB *dbp; local
99 dbp = dbc->dbp;
127 if (hcp->dpagep == NULL && (ret = __ham_get_page(dbp,
138 if ((ret = __ham_put_page(dbp,
157 (ret = __ham_put_page(dbp, hcp->dpagep, 0)) != 0)
180 DB *dbp; local
184 dbp = dbc->dbp;
187 ret = __ham_put_page(dbp, hcp->pagep, 0);
189 ret = __ham_put_page(dbp, hcp->dpagep, 0);
207 (void)lock_put(hcp->dbc->dbp->dbenv->lk_info, hcp->lock);
[all …]
/titanic_41/usr/src/cmd/sendmail/db/log/
H A Dlog_rec.c128 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
232 dbp = NULL;
233 if ((ret = db_open(name, ftype, 0, 0, lp->dbenv, NULL, &dbp)) == 0) {
238 if (memcmp(uid, dbp->fileid, DB_FILE_ID_LEN) != 0) {
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_close.c64 __rec_close(dbp) in __rec_close() argument
65 DB *dbp; in __rec_close()
70 t = dbp->internal;
78 if (__rec_sync(dbp, 0) == RET_ERROR)
97 if (__bt_close(dbp) == RET_ERROR)
113 __rec_sync(dbp, flags) in __rec_sync() argument
114 const DB *dbp; in __rec_sync()
124 t = dbp->internal;
133 return (__bt_sync(dbp, 0));
158 status = (dbp->seq)(dbp, &key, &data, R_FIRST);
[all …]
H A Drec_open.c67 DB *dbp; local
77 dbp = NULL;
89 dbp = __bt_open(openinfo->bfname,
92 dbp = __bt_open(NULL, O_RDWR | O_BINARY, S_IRUSR | S_IWUSR, NULL, dflags);
93 if (dbp == NULL)
102 t = dbp->internal;
191 dbp->close = __rec_close;
192 dbp->del = __rec_delete;
193 dbp->fd = __rec_fd;
194 dbp->get = __rec_get;
[all …]
/titanic_41/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 != NULL) { in __db_hdestroy()
139 (void)dbp->close(dbp, 0); in __db_hdestroy()
140 dbp = NULL; in __db_hdestroy()
/titanic_41/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) { in hdestroy()
106 (void)(dbp->close)(dbp); in hdestroy()
107 dbp = NULL; in hdestroy()
/titanic_41/usr/src/uts/common/ktli/
H A Dt_ksndudat.c70 mblk_t *dbp; in t_ksndudata() local
90 if ((dbp = (mblk_t *)esballoc((uchar_t *)unitdata->udata.buf, in t_ksndudata()
94 dbp->b_datap->db_type = M_DATA; in t_ksndudata()
95 KTLILOG(2, "t_ksndudata: bp %x, ", dbp); in t_ksndudata()
101 while (!(dbp = allocb(msgsz, BPRI_LO))) in t_ksndudata()
105 bcopy(unitdata->udata.buf, dbp->b_wptr, unitdata->udata.len); in t_ksndudata()
106 dbp->b_datap->db_type = M_DATA; in t_ksndudata()
113 dbp = unitdata->udata.udata_mp; in t_ksndudata()
120 dbp = NULL; in t_ksndudata()
123 if (dbp) in t_ksndudata()
[all …]

12345