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

12

/barrelfish-master/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);
/barrelfish-master/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;
/barrelfish-master/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);
H A Drec_seq.c51 * dbp: pointer to access method
60 __rec_seq(const DB *dbp, DBT *key, DBT *data, u_int flags) argument
67 t = dbp->internal;
H A Drec_delete.c54 * dbp: pointer to access method
62 __rec_delete(const DB *dbp, const DBT *key, u_int flags) argument
68 t = dbp->internal;
H A Drec_get.c52 * dbp: pointer to access method
61 __rec_get(const DB *dbp, const DBT *key, DBT *data, u_int flags) argument
68 t = dbp->internal;
H A Drec_put.c50 * dbp: pointer to access method
60 __rec_put(const DB *dbp, DBT *key, const DBT *data, u_int flags) argument
67 t = dbp->internal;
/barrelfish-master/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...]
/barrelfish-master/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;
H A Dbt_debug.c53 * dbp: pointer to the DB
56 __bt_dump(DB *dbp) argument
63 t = dbp->internal;
131 __bt_dnpage(DB *dbp, pgno_t pgno) argument
136 t = dbp->internal;
241 * dbp: pointer to the DB
244 __bt_stat(DB *dbp) argument
254 t = dbp->internal;
H A Dextern.h47 int __bt_put(const DB *dbp, DBT *, const DBT *, u_int);
H A Dbt_put.c55 * dbp: pointer to access method
65 __bt_put(const DB *dbp, DBT *key, const DBT *data, u_int flags) argument
77 t = dbp->internal;
H A Dbt_seq.c66 * dbp: pointer to access method
75 __bt_seq(const DB *dbp, DBT *key, DBT *data, u_int flags) argument
81 t = dbp->internal;
/barrelfish-master/lib/libc/db/hash/
H A Dhash.c103 DB *dbp; local
188 if (!(dbp = (DB *)malloc(sizeof(DB)))) {
194 dbp->internal = hashp;
195 dbp->close = hash_close;
196 dbp->del = hash_delete;
197 dbp->fd = hash_fd;
198 dbp->get = hash_get;
199 dbp->put = hash_put;
200 dbp->seq = hash_seq;
201 dbp
239 hash_close(DB *dbp) argument
254 hash_fd(const DB *dbp) argument
446 hash_sync(const DB *dbp, u_int32_t flags) argument
521 hash_get(const DB *dbp, const DBT *key, DBT *data, u_int32_t flag) argument
534 hash_put(const DB *dbp, DBT *key, const DBT *data, u_int32_t flag) argument
552 hash_delete(const DB *dbp, const DBT *key, u_int32_t flag) argument
699 hash_seq(const DB *dbp, DBT *key, DBT *data, u_int32_t flag) argument
[all...]
/barrelfish-master/lib/libc/gen/
H A Dgetcap.c626 static char **dbp; variable
635 dbp = NULL;
654 if (dbp == NULL)
655 dbp = db_array;
657 if (pfp == NULL && (pfp = fopen(*dbp, "re")) == NULL) {
678 if (*++dbp == NULL) {
682 fopen(*dbp, "re")) == NULL) {
/barrelfish-master/include/
H A Ddb.h214 void __dbpanic(DB *dbp);

Completed in 55 milliseconds

12