/barrelfish-master/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);
|
/barrelfish-master/lib/libc/db/db/ |
H A D | db.c | 86 * 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 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);
|
H A D | rec_seq.c | 51 * 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 D | rec_delete.c | 54 * dbp: pointer to access method 62 __rec_delete(const DB *dbp, const DBT *key, u_int flags) argument 68 t = dbp->internal;
|
H A D | rec_get.c | 52 * 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 D | rec_put.c | 50 * 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 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...] |
/barrelfish-master/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 | 97 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 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;
|
H A D | bt_debug.c | 53 * 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 D | extern.h | 47 int __bt_put(const DB *dbp, DBT *, const DBT *, u_int);
|
H A D | bt_put.c | 55 * 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 D | bt_seq.c | 66 * 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 D | hash.c | 103 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 D | getcap.c | 626 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 D | db.h | 214 void __dbpanic(DB *dbp);
|