Lines Matching defs:db
27 #include <dns/db.h>
38 #include <db.h>
51 DB *db;
53 REQUIRE(db_create(&db, NULL, 0) == 0);
54 REQUIRE(db->set_flags(db, DB_DUP) == 0);
55 REQUIRE(db->open(db, file, NULL, DB_HASH, DB_CREATE | DB_EXCL, 0) == 0);
57 return db;
61 * Puts resource record data on 'db'.
64 bdb_putrdata(DB *db, dns_name_t *name, dns_ttl_t ttl, dns_rdata_t *rdata)
93 REQUIRE(db->put(db, NULL, &key, &data, 0) == 0);
99 bdb_destroy(DB *db)
102 return (db->close(db, 0) == 0) ? ISC_R_SUCCESS : ISC_R_FAILURE;
109 fprintf(stderr, "Usage: %s <origin> <zonefile> <db>\n", prog);
120 dns_db_t *db = NULL;
143 &db) == ISC_R_SUCCESS);
145 REQUIRE(dns_db_load(db, argv[2]) == ISC_R_SUCCESS);
147 REQUIRE(dns_db_createiterator(db, 0, &dbiter) == ISC_R_SUCCESS);
157 REQUIRE(dns_db_allrdatasets(db, node, NULL, 0, &rdatasetiter)
180 dns_db_detachnode(db, &node);