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

123

/freebsd-current/lib/libc/db/test/hash.tests/
H A Dtseq.c50 DB *dbp; local
54 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, NULL))) {
63 for ( stat = (dbp->seq) (dbp, &res, &item, 1 );
65 stat = (dbp->seq) (dbp, &res, &item, 0 ) ) {
74 (dbp->close)(dbp);
H A Dtdel.c50 DB *dbp; local
65 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
86 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
100 stat = (dbp->del)(dbp, &key, 0);
108 (dbp->close)(dbp);
H A Dthash4.c52 DB *dbp; local
67 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
89 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
105 stat = (dbp->get)(dbp, &key, &res, 0);
118 dbp->close(dbp);
H A Dtverify.c53 DB *dbp; local
66 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
81 stat = (dbp->get)(dbp, &key, &res,0);
93 (dbp->close)(dbp);
H A Dtread2.c53 DB *dbp; local
65 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
82 stat = (dbp->get)(dbp, &key, &res,0);
91 (dbp->close)(dbp);
H A Dtcreat3.c49 DB *dbp; local
62 if (!(dbp = dbopen( "hashtest",
84 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
91 (dbp->close)(dbp);
/freebsd-current/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-current/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-current/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-current/bin/dd/
H A Dconv.c59 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
63 out.dbp = in.dbp;
75 in.dbp = out.dbp;
115 in.dbp = in.db;
121 in.dbp = inp + cnt - 1;
129 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) {
144 (void)memmove(in.db, in.dbp
[all...]
/freebsd-current/lib/libc/db/recno/
H A Drec_close.c50 * dbp: pointer to access method
56 __rec_close(DB *dbp) argument
61 t = dbp->internal;
69 if (__rec_sync(dbp, 0) == RET_ERROR)
87 if (__bt_close(dbp) == RET_ERROR)
97 * dbp: pointer to access method
103 __rec_sync(const DB *dbp, u_int flags) argument
112 t = dbp->internal;
121 return (__bt_sync(dbp, 0));
146 status = (dbp
[all...]
H A Drec_open.c57 DB *dbp; local
67 dbp = NULL;
79 dbp = __bt_open(openinfo->bfname,
82 dbp = __bt_open(NULL, O_RDWR, S_IRUSR | S_IWUSR, NULL, dflags);
83 if (dbp == NULL)
92 t = dbp->internal;
181 dbp->close = __rec_close;
182 dbp->del = __rec_delete;
183 dbp->fd = __rec_fd;
184 dbp
216 __rec_fd(const DB *dbp) argument
[all...]
H A Dextern.h43 int __rec_put(const DB *dbp, DBT *, const DBT *, u_int);
/freebsd-current/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-current/usr.sbin/ypserv/
H A Dyp_dblookup.c73 DB *dbp; member in struct:dbent
135 if (q->dbptr->dbp) {
136 (void)(q->dbptr->dbp->close)(q->dbptr->dbp);
137 q->dbptr->dbp = NULL;
196 yp_setflags(DB *dbp) argument
204 if (!(dbp->get)(dbp, &key, &data, 0))
210 if (!(dbp->get)(dbp,
254 yp_cache_db(DB *dbp, char *name, int size) argument
348 DB *dbp = NULL; local
381 DB *dbp = NULL; local
446 yp_get_record(DB *dbp, const DBT *key, DBT *data, int allow) argument
454 DB *dbp; local
511 yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow) argument
563 yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) argument
[all...]
/freebsd-current/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);
110 DB *dbp; local
192 if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)
200 yp_put_record(dbp, &key, &data, 0);
208 yp_put_record(dbp,
[all...]
/freebsd-current/lib/libc/db/test/
H A Ddbtest.c82 DB *dbp; local
151 if ((dbp = dbopen(fname,
154 XXdbp = dbp;
201 rem(dbp, &key);
211 synk(dbp);
221 seq(dbp, &key);
241 put(dbp, &key, &data);
274 getdata(dbp, &key, &keydata);
278 get(dbp, &key);
287 rem(dbp,
[all...]
/freebsd-current/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-current/lib/libc/db/btree/
H A Dbt_close.c54 * dbp: pointer to access method
60 __bt_close(DB *dbp) argument
65 t = dbp->internal;
74 if (__bt_sync(dbp, 0) == RET_ERROR)
100 free(dbp);
108 * dbp: pointer to access method
114 __bt_sync(const DB *dbp, u_int flags) argument
119 t = dbp->internal;
H A Dbt_get.c48 * dbp: pointer to access method
57 __bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags) argument
63 t = dbp->internal;
H A Dbt_open.c93 DB *dbp; local
165 if ((t->bt_dbp = dbp = (DB *)calloc(1, sizeof(DB))) == NULL)
170 dbp->type = DB_BTREE;
171 dbp->internal = t;
172 dbp->close = __bt_close;
173 dbp->del = __bt_delete;
174 dbp->fd = __bt_fd;
175 dbp->get = __bt_get;
176 dbp->put = __bt_put;
177 dbp
426 __bt_fd(const DB *dbp) argument
[all...]
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_proc.c103 dt_bkpt_t *dbp; local
107 if ((dbp = dt_zalloc(dpr->dpr_hdl, sizeof (dt_bkpt_t))) != NULL) {
108 dbp->dbp_func = func;
109 dbp->dbp_data = data;
110 dbp->dbp_addr = addr;
112 if (Psetbkpt(P, dbp->dbp_addr, &dbp->dbp_instr) == 0)
113 dbp->dbp_active = B_TRUE;
115 dt_list_append(&dpr->dpr_bps, dbp);
118 return (dbp);
125 dt_bkpt_t *dbp, *nbp; local
145 dt_bkpt_t *dbp; local
174 dt_bkpt_t *dbp; local
191 dt_bkpt_t *dbp; local
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Ddmu_os.c82 dmu_buf_t **dbp; local
91 FALSE, FTAG, &numbufs, &dbp);
98 dmu_buf_t *db = dbp[i];
131 dmu_buf_rele_array(dbp, numbufs, FTAG);
142 dmu_buf_t **dbp; local
154 IDX_TO_OFF(count - 1) + last_size, TRUE, FTAG, &numbufs, &dbp);
160 if (dbp[0]->db_offset != 0 || numbufs > 1) {
162 ASSERT(ISP2(dbp[i]->db_size));
163 ASSERT3U((dbp[i]->db_offset % dbp[
[all...]

Completed in 186 milliseconds

123