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

123

/freebsd-11-stable/usr.sbin/rpc.ypupdated/
H A Dyp_dbdelete.c50 yp_del_record(DB *dbp, DBT *key) argument
54 if ((rval = (dbp->del)(dbp,key,0))) {
61 (void)(dbp->close)(dbp);
H A Dyp_dbupdate.c79 DB *dbp; local
91 dbp = yp_open_db_rw(domptr, map, O_RDWR);
92 if (dbp == NULL)
102 rval = yp_del_record(dbp, &key);
107 rval = yp_put_record(dbp, &key, &data, 0);
112 rval = yp_put_record(dbp, &key, &data, 1);
121 rval = yp_put_record(dbp, &key, &data, 1);
130 (void)(dbp->close)(dbp);
139 if (yp_put_record(dbp,
[all...]
/freebsd-11-stable/libexec/ypxfr/
H A Dyp_dbwrite.c57 DB *dbp; local
71 dbp = dbopen(buf,flags ? flags : FLAGS,PERM_SECURE,DB_HASH,&openinfo);
73 if (dbp == NULL) {
87 return (dbp);
91 yp_put_record(DB *dbp, DBT *key, DBT *data, int allow_overwrite) argument
95 if ((rval = (dbp->put)(dbp,key,data, allow_overwrite ? 0 :
103 (void)(dbp->close)(dbp);
H A Dypxfr_main.c64 static DB *dbp; variable
75 if (dbp != NULL)
76 (void)(dbp->close)(dbp);
152 if (yp_put_record(dbp, &dbkey, &dbval, 0) != YP_TRUE)
426 if ((dbp = yp_open_db_rw(ypxfr_dest_domain, tempmap, 0)) == NULL) {
440 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
450 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
460 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
472 if (yp_put_record(dbp,
[all...]
/freebsd-11-stable/lib/libc/db/test/hash.tests/
H A Dtseq.c60 DB *dbp; local
64 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, NULL))) {
73 for ( stat = (dbp->seq) (dbp, &res, &item, 1 );
75 stat = (dbp->seq) (dbp, &res, &item, 0 ) ) {
84 (dbp->close)(dbp);
H A Dtdel.c60 DB *dbp; local
75 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
96 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
110 stat = (dbp->del)(dbp, &key, 0);
118 (dbp->close)(dbp);
H A Dthash4.c62 DB *dbp; local
77 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
99 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
115 stat = (dbp->get)(dbp, &key, &res, 0);
128 dbp->close(dbp);
H A Dtcreat3.c59 DB *dbp; local
72 if (!(dbp = dbopen( "hashtest",
94 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
101 (dbp->close)(dbp);
H A Dtread2.c63 DB *dbp; local
75 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
92 stat = (dbp->get)(dbp, &key, &res,0);
101 (dbp->close)(dbp);
H A Dtverify.c63 DB *dbp; local
76 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
91 stat = (dbp->get)(dbp, &key, &res,0);
103 (dbp->close)(dbp);
/freebsd-11-stable/lib/libc/db/db/
H A Ddb.c86 * dbp: pointer to the DB structure.
89 __dbpanic(DB *dbp) argument
92 dbp->del = (int (*)(const struct __db *, const DBT*, u_int))__dberr;
93 dbp->fd = (int (*)(const struct __db *))__dberr;
94 dbp->get = (int (*)(const struct __db *, const DBT*, DBT *, u_int))__dberr;
95 dbp->put = (int (*)(const struct __db *, DBT *, const DBT *, u_int))__dberr;
96 dbp->seq = (int (*)(const struct __db *, DBT *, DBT *, u_int))__dberr;
97 dbp->sync = (int (*)(const struct __db *, u_int))__dberr;
/freebsd-11-stable/bin/dd/
H A Dconv.c65 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
69 out.dbp = in.dbp;
81 in.dbp = out.dbp;
121 in.dbp = in.db;
127 in.dbp = inp + cnt - 1;
135 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) {
150 (void)memmove(in.db, in.dbp
[all...]
/freebsd-11-stable/lib/libc/db/recno/
H A Drec_close.c54 * dbp: pointer to access method
60 __rec_close(DB *dbp) argument
65 t = dbp->internal;
73 if (__rec_sync(dbp, 0) == RET_ERROR)
91 if (__bt_close(dbp) == RET_ERROR)
101 * dbp: pointer to access method
107 __rec_sync(const DB *dbp, u_int flags) argument
116 t = dbp->internal;
125 return (__bt_sync(dbp, 0));
150 status = (dbp
[all...]
H A Drec_open.c61 DB *dbp; local
71 dbp = NULL;
83 dbp = __bt_open(openinfo->bfname,
86 dbp = __bt_open(NULL, O_RDWR, S_IRUSR | S_IWUSR, NULL, dflags);
87 if (dbp == NULL)
96 t = dbp->internal;
185 dbp->close = __rec_close;
186 dbp->del = __rec_delete;
187 dbp->fd = __rec_fd;
188 dbp
220 __rec_fd(const DB *dbp) argument
[all...]
H A Dextern.h44 int __rec_put(const DB *dbp, DBT *, const DBT *, u_int);
/freebsd-11-stable/crypto/heimdal/lib/hdb/
H A Ddbinfo.c91 hdb_get_dbinfo(krb5_context context, struct hdb_dbinfo **dbp) argument
101 *dbp = NULL;
166 *dbp = databases;
172 hdb_dbinfo_get_next(struct hdb_dbinfo *dbp, struct hdb_dbinfo *dbprevp) argument
175 return dbp;
181 hdb_dbinfo_get_label(krb5_context context, struct hdb_dbinfo *dbp) argument
183 return dbp->label;
187 hdb_dbinfo_get_realm(krb5_context context, struct hdb_dbinfo *dbp) argument
189 return dbp->realm;
193 hdb_dbinfo_get_dbname(krb5_context context, struct hdb_dbinfo *dbp) argument
199 hdb_dbinfo_get_mkey_file(krb5_context context, struct hdb_dbinfo *dbp) argument
205 hdb_dbinfo_get_acl_file(krb5_context context, struct hdb_dbinfo *dbp) argument
211 hdb_dbinfo_get_log_file(krb5_context context, struct hdb_dbinfo *dbp) argument
217 hdb_dbinfo_get_binding(krb5_context context, struct hdb_dbinfo *dbp) argument
223 hdb_free_dbinfo(krb5_context context, struct hdb_dbinfo **dbp) argument
[all...]
/freebsd-11-stable/usr.sbin/ypserv/
H A Dyp_dblookup.c73 DB *dbp; member in struct:dbent
136 if (q->dbptr->dbp) {
137 (void)(q->dbptr->dbp->close)(q->dbptr->dbp);
138 q->dbptr->dbp = NULL;
202 yp_setflags(DB *dbp) argument
210 if (!(dbp->get)(dbp, &key, &data, 0))
216 if (!(dbp->get)(dbp,
260 yp_cache_db(DB *dbp, char *name, int size) argument
354 DB *dbp = NULL; local
387 DB *dbp = NULL; local
452 yp_get_record(DB *dbp, const DBT *key, DBT *data, int allow) argument
460 DB *dbp; local
517 yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow) argument
569 yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) argument
[all...]
/freebsd-11-stable/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c79 DB *dbp; local
82 dbp = open_db(map, O_RDONLY);
84 if (dbp == NULL)
88 while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE)
92 (void)(dbp->close)(dbp);
111 DB *dbp; local
193 if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)
201 yp_put_record(dbp, &key, &data, 0);
209 yp_put_record(dbp,
[all...]
/freebsd-11-stable/lib/libc/db/test/
H A Ddbtest.c92 DB *dbp; local
161 if ((dbp = dbopen(fname,
164 XXdbp = dbp;
211 rem(dbp, &key);
221 synk(dbp);
231 seq(dbp, &key);
251 put(dbp, &key, &data);
284 getdata(dbp, &key, &keydata);
288 get(dbp, &key);
297 rem(dbp,
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/db/
H A Dh_db.c108 DB *dbp; local
180 if ((dbp = dbopen(fname,
183 XXdbp = dbp;
228 rem(dbp, &key);
237 synk(dbp);
246 seq(dbp, &key);
264 put(dbp, &key, &data);
295 getdata(dbp, &key, &keydata);
299 get(dbp, &key);
308 rem(dbp,
376 get(DB *dbp, DBT *kp) argument
404 getdata(DB *dbp, DBT *kp, DBT *dp) argument
419 put(DB *dbp, DBT *kp, DBT *dp) argument
434 rem(DB *dbp, DBT *kp) argument
459 synk(DB *dbp) argument
471 seq(DB *dbp, DBT *kp) argument
501 dump(DB *dbp, int rev, int recurse) argument
539 unlinkpg(DB *dbp) argument
[all...]
/freebsd-11-stable/lib/libc/db/btree/
H A Dbt_close.c58 * dbp: pointer to access method
64 __bt_close(DB *dbp) argument
69 t = dbp->internal;
78 if (__bt_sync(dbp, 0) == RET_ERROR)
104 free(dbp);
112 * dbp: pointer to access method
118 __bt_sync(const DB *dbp, u_int flags) argument
123 t = dbp->internal;
H A Dbt_open.c97 DB *dbp; local
169 if ((t->bt_dbp = dbp = (DB *)calloc(1, sizeof(DB))) == NULL)
174 dbp->type = DB_BTREE;
175 dbp->internal = t;
176 dbp->close = __bt_close;
177 dbp->del = __bt_delete;
178 dbp->fd = __bt_fd;
179 dbp->get = __bt_get;
180 dbp->put = __bt_put;
181 dbp
431 __bt_fd(const DB *dbp) argument
[all...]
H A Dbt_get.c52 * dbp: pointer to access method
61 __bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags) argument
67 t = dbp->internal;
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_proc.c105 dt_bkpt_t *dbp; local
109 if ((dbp = dt_zalloc(dpr->dpr_hdl, sizeof (dt_bkpt_t))) != NULL) {
110 dbp->dbp_func = func;
111 dbp->dbp_data = data;
112 dbp->dbp_addr = addr;
114 if (Psetbkpt(P, dbp->dbp_addr, &dbp->dbp_instr) == 0)
115 dbp->dbp_active = B_TRUE;
117 dt_list_append(&dpr->dpr_bps, dbp);
120 return (dbp);
127 dt_bkpt_t *dbp, *nbp; local
151 dt_bkpt_t *dbp; local
191 dt_bkpt_t *dbp; local
208 dt_bkpt_t *dbp; local
[all...]
/freebsd-11-stable/sys/dev/pdq/
H A Dpdq.c461 pdq_descriptor_block_t * const dbp = pdq->pdq_dbp;
462 pdq_txdesc_t * const txd = &dbp->pdqdb_command_requests[ci->ci_request_producer];
569 PDQ_ADVANCE(ci->ci_request_producer, 1, PDQ_RING_MASK(dbp->pdqdb_command_requests));
576 PDQ_ADVANCE(ci->ci_response_producer, 1, PDQ_RING_MASK(dbp->pdqdb_command_responses));
597 pdq_descriptor_block_t * const dbp = pdq->pdq_dbp;
628 PDQ_ADVANCE(ci->ci_request_completion, 1, PDQ_RING_MASK(dbp->pdqdb_command_requests));
629 PDQ_ADVANCE(ci->ci_response_completion, 1, PDQ_RING_MASK(dbp->pdqdb_command_responses));
656 pdq_descriptor_block_t *dbp = pdq->pdq_dbp;
705 PDQ_ADVANCE(ui->ui_completion, 1, PDQ_RING_MASK(dbp->pdqdb_unsolicited_events));
712 PDQ_ADVANCE(ui->ui_producer, ui->ui_free, PDQ_RING_MASK(dbp
456 pdq_descriptor_block_t * const dbp = pdq->pdq_dbp; local
591 pdq_descriptor_block_t * const dbp = pdq->pdq_dbp; local
649 pdq_descriptor_block_t *dbp = pdq->pdq_dbp; local
905 pdq_descriptor_block_t * const dbp = pdq->pdq_dbp; local
1029 pdq_descriptor_block_t *dbp = pdq->pdq_dbp; local
1523 pdq_descriptor_block_t *dbp; local
[all...]

Completed in 276 milliseconds

123