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

123

/freebsd-13-stable/usr.sbin/rpc.ypupdated/
H A Dyp_dbdelete.c52 yp_del_record(DB *dbp, DBT *key) argument
56 if ((rval = (dbp->del)(dbp,key,0))) {
63 (void)(dbp->close)(dbp);
H A Dyp_dbupdate.c81 DB *dbp; local
93 dbp = yp_open_db_rw(domptr, map, O_RDWR);
94 if (dbp == NULL)
104 rval = yp_del_record(dbp, &key);
109 rval = yp_put_record(dbp, &key, &data, 0);
114 rval = yp_put_record(dbp, &key, &data, 1);
123 rval = yp_put_record(dbp, &key, &data, 1);
132 (void)(dbp->close)(dbp);
141 if (yp_put_record(dbp,
[all...]
/freebsd-13-stable/libexec/ypxfr/
H A Dyp_dbwrite.c59 DB *dbp; local
73 dbp = dbopen(buf,flags ? flags : FLAGS,PERM_SECURE,DB_HASH,&openinfo);
75 if (dbp == NULL) {
89 return (dbp);
93 yp_put_record(DB *dbp, DBT *key, DBT *data, int allow_overwrite) argument
97 if ((rval = (dbp->put)(dbp,key,data, allow_overwrite ? 0 :
105 (void)(dbp->close)(dbp);
H A Dypxfr_main.c66 static DB *dbp; variable
77 if (dbp != NULL)
78 (void)(dbp->close)(dbp);
154 if (yp_put_record(dbp, &dbkey, &dbval, 0) != YP_TRUE)
428 if ((dbp = yp_open_db_rw(ypxfr_dest_domain, tempmap, 0)) == NULL) {
442 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
452 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
462 if (yp_put_record(dbp, &key, &data, 0) != YP_TRUE) {
474 if (yp_put_record(dbp,
[all...]
/freebsd-13-stable/lib/libc/db/test/hash.tests/
H A Dtseq.c62 DB *dbp; local
66 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, NULL))) {
75 for ( stat = (dbp->seq) (dbp, &res, &item, 1 );
77 stat = (dbp->seq) (dbp, &res, &item, 0 ) ) {
86 (dbp->close)(dbp);
H A Dtdel.c62 DB *dbp; local
77 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
98 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
112 stat = (dbp->del)(dbp, &key, 0);
120 (dbp->close)(dbp);
H A Dthash4.c64 DB *dbp; local
79 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
101 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
117 stat = (dbp->get)(dbp, &key, &res, 0);
130 dbp->close(dbp);
H A Dtcreat3.c61 DB *dbp; local
74 if (!(dbp = dbopen( "hashtest",
96 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
103 (dbp->close)(dbp);
H A Dtread2.c65 DB *dbp; local
77 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
94 stat = (dbp->get)(dbp, &key, &res,0);
103 (dbp->close)(dbp);
H A Dtverify.c65 DB *dbp; local
78 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
93 stat = (dbp->get)(dbp, &key, &res,0);
105 (dbp->close)(dbp);
/freebsd-13-stable/lib/libc/db/db/
H A Ddb.c88 * dbp: pointer to the DB structure.
91 __dbpanic(DB *dbp) argument
94 dbp->del = (int (*)(const struct __db *, const DBT*, u_int))__dberr;
95 dbp->fd = (int (*)(const struct __db *))__dberr;
96 dbp->get = (int (*)(const struct __db *, const DBT*, DBT *, u_int))__dberr;
97 dbp->put = (int (*)(const struct __db *, DBT *, const DBT *, u_int))__dberr;
98 dbp->seq = (int (*)(const struct __db *, DBT *, DBT *, u_int))__dberr;
99 dbp->sync = (int (*)(const struct __db *, u_int))__dberr;
/freebsd-13-stable/bin/dd/
H A Dconv.c67 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
71 out.dbp = in.dbp;
83 in.dbp = out.dbp;
123 in.dbp = in.db;
129 in.dbp = inp + cnt - 1;
137 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) {
152 (void)memmove(in.db, in.dbp
[all...]
/freebsd-13-stable/lib/libc/db/recno/
H A Drec_close.c56 * dbp: pointer to access method
62 __rec_close(DB *dbp) argument
67 t = dbp->internal;
75 if (__rec_sync(dbp, 0) == RET_ERROR)
93 if (__bt_close(dbp) == RET_ERROR)
103 * dbp: pointer to access method
109 __rec_sync(const DB *dbp, u_int flags) argument
118 t = dbp->internal;
127 return (__bt_sync(dbp, 0));
152 status = (dbp
[all...]
H A Drec_open.c63 DB *dbp; local
73 dbp = NULL;
85 dbp = __bt_open(openinfo->bfname,
88 dbp = __bt_open(NULL, O_RDWR, S_IRUSR | S_IWUSR, NULL, dflags);
89 if (dbp == NULL)
98 t = dbp->internal;
187 dbp->close = __rec_close;
188 dbp->del = __rec_delete;
189 dbp->fd = __rec_fd;
190 dbp
222 __rec_fd(const DB *dbp) argument
[all...]
H A Dextern.h46 int __rec_put(const DB *dbp, DBT *, const DBT *, u_int);
/freebsd-13-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-13-stable/usr.sbin/ypserv/
H A Dyp_dblookup.c75 DB *dbp; member in struct:dbent
138 if (q->dbptr->dbp) {
139 (void)(q->dbptr->dbp->close)(q->dbptr->dbp);
140 q->dbptr->dbp = NULL;
204 yp_setflags(DB *dbp) argument
212 if (!(dbp->get)(dbp, &key, &data, 0))
218 if (!(dbp->get)(dbp,
262 yp_cache_db(DB *dbp, char *name, int size) argument
356 DB *dbp = NULL; local
389 DB *dbp = NULL; local
454 yp_get_record(DB *dbp, const DBT *key, DBT *data, int allow) argument
462 DB *dbp; local
519 yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow) argument
571 yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) argument
[all...]
/freebsd-13-stable/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c81 DB *dbp; local
84 dbp = open_db(map, O_RDONLY);
86 if (dbp == NULL)
90 while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE)
94 (void)(dbp->close)(dbp);
113 DB *dbp; local
195 if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)
203 yp_put_record(dbp, &key, &data, 0);
211 yp_put_record(dbp,
[all...]
/freebsd-13-stable/lib/libc/db/test/
H A Ddbtest.c94 DB *dbp; local
163 if ((dbp = dbopen(fname,
166 XXdbp = dbp;
213 rem(dbp, &key);
223 synk(dbp);
233 seq(dbp, &key);
253 put(dbp, &key, &data);
286 getdata(dbp, &key, &keydata);
290 get(dbp, &key);
299 rem(dbp,
[all...]
/freebsd-13-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-13-stable/lib/libc/db/btree/
H A Dbt_close.c60 * dbp: pointer to access method
66 __bt_close(DB *dbp) argument
71 t = dbp->internal;
80 if (__bt_sync(dbp, 0) == RET_ERROR)
106 free(dbp);
114 * dbp: pointer to access method
120 __bt_sync(const DB *dbp, u_int flags) argument
125 t = dbp->internal;
H A Dbt_open.c99 DB *dbp; local
171 if ((t->bt_dbp = dbp = (DB *)calloc(1, sizeof(DB))) == NULL)
176 dbp->type = DB_BTREE;
177 dbp->internal = t;
178 dbp->close = __bt_close;
179 dbp->del = __bt_delete;
180 dbp->fd = __bt_fd;
181 dbp->get = __bt_get;
182 dbp->put = __bt_put;
183 dbp
433 __bt_fd(const DB *dbp) argument
[all...]
H A Dbt_get.c54 * dbp: pointer to access method
63 __bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags) argument
69 t = dbp->internal;
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_proc.c109 dt_bkpt_t *dbp; local
113 if ((dbp = dt_zalloc(dpr->dpr_hdl, sizeof (dt_bkpt_t))) != NULL) {
114 dbp->dbp_func = func;
115 dbp->dbp_data = data;
116 dbp->dbp_addr = addr;
118 if (Psetbkpt(P, dbp->dbp_addr, &dbp->dbp_instr) == 0)
119 dbp->dbp_active = B_TRUE;
121 dt_list_append(&dpr->dpr_bps, dbp);
124 return (dbp);
131 dt_bkpt_t *dbp, *nbp; local
155 dt_bkpt_t *dbp; local
195 dt_bkpt_t *dbp; local
212 dt_bkpt_t *dbp; local
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Ddmu_os.c104 dmu_buf_t **dbp; local
113 FALSE, FTAG, &numbufs, &dbp);
120 dmu_buf_t *db = dbp[i];
153 dmu_buf_rele_array(dbp, numbufs, FTAG);
164 dmu_buf_t **dbp; local
176 IDX_TO_OFF(count - 1) + last_size, TRUE, FTAG, &numbufs, &dbp);
182 if (dbp[0]->db_offset != 0 || numbufs > 1) {
184 ASSERT(ISP2(dbp[i]->db_size));
185 ASSERT((dbp[i]->db_offset % dbp[
[all...]

Completed in 214 milliseconds

123