/freebsd-10.1-release/usr.sbin/rpc.ypupdated/ |
H A D | yp_dbdelete.c | 50 yp_del_record(DB *dbp, DBT *key) argument 54 if ((rval = (dbp->del)(dbp,key,0))) { 61 (void)(dbp->close)(dbp);
|
H A D | yp_dbupdate.c | 79 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-10.1-release/libexec/ypxfr/ |
H A D | yp_dbwrite.c | 57 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 D | ypxfr_main.c | 62 DB *dbp; variable 73 if (dbp != NULL) 74 (void)(dbp->close)(dbp); 150 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-10.1-release/lib/libc/db/test/hash.tests/ |
H A D | tseq.c | 60 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 D | tdel.c | 60 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 D | thash4.c | 62 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 D | tcreat3.c | 59 DB *dbp; local 72 if (!(dbp = dbopen( "hashtest", 94 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) { 101 (dbp->close)(dbp);
|
H A D | tread2.c | 63 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 D | tverify.c | 63 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-10.1-release/lib/libc/db/db/ |
H A D | db.c | 82 * dbp: pointer to the DB structure. 85 __dbpanic(DB *dbp) argument 88 dbp->del = (int (*)(const struct __db *, const DBT*, u_int))__dberr; 89 dbp->fd = (int (*)(const struct __db *))__dberr; 90 dbp->get = (int (*)(const struct __db *, const DBT*, DBT *, u_int))__dberr; 91 dbp->put = (int (*)(const struct __db *, DBT *, const DBT *, u_int))__dberr; 92 dbp->seq = (int (*)(const struct __db *, DBT *, DBT *, u_int))__dberr; 93 dbp->sync = (int (*)(const struct __db *, u_int))__dberr;
|
/freebsd-10.1-release/bin/dd/ |
H A D | conv.c | 65 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-10.1-release/lib/libc/db/recno/ |
H A D | rec_close.c | 54 * 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 D | rec_open.c | 61 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 D | extern.h | 44 int __rec_put(const DB *dbp, DBT *, const DBT *, u_int);
|
/freebsd-10.1-release/crypto/heimdal/lib/hdb/ |
H A D | dbinfo.c | 91 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-10.1-release/usr.sbin/ypserv/ |
H A D | yp_dblookup.c | 73 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-10.1-release/usr.sbin/yp_mkdb/ |
H A D | yp_mkdb.c | 81 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 196 if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL) 204 yp_put_record(dbp, &key, &data, 0); 212 yp_put_record(dbp, [all...] |
/freebsd-10.1-release/lib/libc/db/test/ |
H A D | dbtest.c | 92 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-10.1-release/lib/libc/db/btree/ |
H A D | bt_close.c | 58 * 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 D | bt_open.c | 96 DB *dbp; local 168 if ((t->bt_dbp = dbp = (DB *)calloc(1, sizeof(DB))) == NULL) 173 dbp->type = DB_BTREE; 174 dbp->internal = t; 175 dbp->close = __bt_close; 176 dbp->del = __bt_delete; 177 dbp->fd = __bt_fd; 178 dbp->get = __bt_get; 179 dbp->put = __bt_put; 180 dbp 430 __bt_fd(const DB *dbp) argument [all...] |
H A D | bt_get.c | 52 * 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-10.1-release/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_proc.c | 105 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-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa_history.c | 87 dmu_buf_t *dbp; local 100 VERIFY(0 == dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp)); 101 ASSERT(dbp->db_size >= sizeof (spa_history_phys_t)); 103 shpp = dbp->db_data; 104 dmu_buf_will_dirty(dbp, tx); 115 dmu_buf_rele(dbp, FTAG); 202 dmu_buf_t *dbp; local 222 VERIFY0(dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp)); 223 shpp = dbp->db_data; 225 dmu_buf_will_dirty(dbp, t 342 dmu_buf_t *dbp; local [all...] |
/freebsd-10.1-release/sys/dev/pdq/ |
H A D | pdq.c | 461 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...] |