Searched defs:db (Results 1 - 25 of 253) sorted by relevance

1234567891011

/freebsd-head/crypto/heimdal/kadmin/
H A Ddump.c45 HDB *db = NULL; local
52 db = _kadm5_s_get_db(kadm_handle);
63 ret = db->hdb_open(context, db, O_RDONLY, 0600);
69 hdb_foreach(context, db, opt->decrypt_flag ? HDB_F_DECRYPT : 0,
72 db->hdb_close(context, db);
H A Dinit.c125 HDB *db; local
148 db = _kadm5_s_get_db(kadm_handle);
150 ret = db->hdb_open(context, db, O_RDWR | O_CREAT, 0600);
155 db->hdb_close(context, db);
/freebsd-head/contrib/kyua/store/
H A Dmetadata_test.cpp59 sqlite::database db = sqlite::database::in_memory(); local
60 store::detail::initialize(db);
61 db.exec("DELETE FROM metadata");
62 return db;
77 sqlite::database db = create_database(); local
78 db.exec("INSERT INTO metadata (schema_version, timestamp) "
80 db.exec("INSERT INTO metadata (schema_version, timestamp) "
83 const store::metadata metadata = store::metadata::fetch_latest(db);
97 sqlite::database db = create_database(); local
99 store::metadata::fetch_latest(db));
106 sqlite::database db = sqlite::database::in_memory(); local
119 sqlite::database db = sqlite::database::in_memory(); local
137 sqlite::database db = create_database(); local
[all...]
H A Dmetadata.cpp106 /// \param db The database from which to read the metadata from.
115 store::metadata::fetch_latest(sqlite::database& db) argument
118 sqlite::statement stmt = db.create_statement(
H A Dread_backend_test.cpp51 sqlite::database db = sqlite::database::open( local
52 fs::path("test.db"), sqlite::open_readwrite | sqlite::open_create);
53 db.exec("CREATE TABLE one (foo INTEGER PRIMARY KEY AUTOINCREMENT);");
54 db.exec("CREATE TABLE two (foo INTEGER REFERENCES one);");
55 db.close();
58 sqlite::database db = store::detail::open_and_setup( local
59 fs::path("test.db"), sqlite::open_readwrite);
60 db.exec("INSERT INTO one (foo) VALUES (12);");
62 db.exec("INSERT INTO two (foo) VALUES (12);");
64 db
87 sqlite::database db = sqlite::database::open( local
115 sqlite::database db = sqlite::database::open( local
[all...]
/freebsd-head/contrib/kyua/utils/sqlite/
H A Dc_gate_test.cpp62 sqlite::database db = sqlite::database::in_memory(); local
63 create_test_table(raw(db));
65 sqlite::database_c_gate gate(db);
83 "test.db", &raw_db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL));
H A Dexceptions_test.cpp54 const sqlite::database db = sqlite::database::in_memory(); local
55 const sqlite::error e(db.db_filename(), "Some text");
56 ATF_REQUIRE_EQ("Some text (sqlite db: in-memory or temporary)",
58 ATF_REQUIRE_EQ(db.db_filename(), e.db_filename());
65 const sqlite::database db = sqlite::database::open( local
66 fs::path("test.db"), sqlite::open_readwrite | sqlite::open_create);
67 const sqlite::error e(db.db_filename(), "Some text");
68 ATF_REQUIRE_EQ("Some text (sqlite db: test.db)", std::string(e.what()));
69 ATF_REQUIRE_EQ(db
88 sqlite::database db = sqlite::database::open( local
[all...]
H A Dtest_utils.hpp78 /// \param db The SQLite database.
82 raw(utils::sqlite::database& db) argument
84 return utils::sqlite::database_c_gate(db).c_database();
111 /// \param db The database in which to create the test table.
113 create_test_table(::sqlite3* db) argument
116 ATF_REQUIRE_EQ(SQLITE_OK, ::sqlite3_exec(db, create_test_table_sql,
130 /// \param db The database to validate.
132 verify_test_table(::sqlite3* db) argument
137 ATF_REQUIRE_EQ(SQLITE_OK, ::sqlite3_get_table(db,
H A Dtransaction.cpp45 database& db; member in struct:utils::sqlite::transaction::impl
62 db(db_),
89 db.exec("COMMIT");
101 db.exec("ROLLBACK");
112 /// \param db The database this transaction belongs to.
113 sqlite::transaction::transaction(database& db) : argument
114 _pimpl(new impl(db, impl::open_status))
H A Dtransaction_test.cpp46 /// \param db The SQLite database.
54 check_in_table(sqlite::database& db, const char* table_name, argument
57 sqlite::statement stmt = db.create_statement(
74 sqlite::database db = sqlite::database::in_memory(); local
75 db.exec("CREATE TABLE t (col INTEGER PRIMARY KEY)");
76 db.exec("INSERT INTO t VALUES (3)");
78 sqlite::transaction tx = db.begin_transaction();
79 db.exec("INSERT INTO t VALUES (5)");
81 ATF_REQUIRE( check_in_table(db, "t", "col", 3));
82 ATF_REQUIRE(!check_in_table(db, "
89 sqlite::database db = sqlite::database::in_memory(); local
105 sqlite::database db = sqlite::database::in_memory(); local
121 sqlite::database db = sqlite::database::in_memory(); local
[all...]
/freebsd-head/contrib/apr-util/include/
H A Dapr_sdbm.h70 * @param db The newly opened database
86 APU_DECLARE(apr_status_t) apr_sdbm_open(apr_sdbm_t **db, const char *name,
92 * @param db The database to close
94 APU_DECLARE(apr_status_t) apr_sdbm_close(apr_sdbm_t *db); variable
98 * @param db The database to lock
111 APU_DECLARE(apr_status_t) apr_sdbm_lock(apr_sdbm_t *db, int type);
115 * @param db The database to unlock
117 APU_DECLARE(apr_status_t) apr_sdbm_unlock(apr_sdbm_t *db); variable
121 * @param db The database
125 APU_DECLARE(apr_status_t) apr_sdbm_fetch(apr_sdbm_t *db,
174 APU_DECLARE(int) apr_sdbm_rdonly(apr_sdbm_t *db); variable
[all...]
/freebsd-head/contrib/subversion/subversion/libsvn_wc/
H A Dcontext.c48 svn_error_t *err = svn_wc__db_close(ctx->db);
73 SVN_ERR(svn_wc__db_open(&ctx->db, (svn_config_t *)config,
89 svn_wc__db_t *db,
98 ctx->db = db;
86 svn_wc__context_create_with_db(svn_wc_context_t **wc_ctx, svn_config_t *config, svn_wc__db_t *db, apr_pool_t *result_pool) argument
/freebsd-head/contrib/nvi/ex/
H A Dex_display.c31 static void db(SCR *, CB *, const char *);
100 db(sp, cbp, NULL);
109 db(sp, cbp, NULL);
115 db(sp, cbp, "default buffer");
120 * db --
124 db(SCR *sp, CB *cbp, const char *name) function
/freebsd-head/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_doorbell.c45 struct mlx4_db *db)
75 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK);
76 db->u.user_page = page;
85 void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) argument
89 if (!--db->u.user_page->refcnt) {
90 list_del(&db->u.user_page->list);
91 ib_umem_release(db->u.user_page->umem);
92 kfree(db->u.user_page);
44 mlx4_ib_db_map_user(struct mlx4_ib_ucontext *context, unsigned long virt, struct mlx4_db *db) argument
/freebsd-head/lib/libc/db/test/hash.tests/
H A Ddriver2.c65 DB *db; local
84 if (!(db = dbopen("bigtest", O_RDWR | O_CREAT, 0644, DB_HASH, &info))) {
101 if ((db->put)(db, &key, &content, R_NOOVERWRITE)) {
106 if ((db->close)(db)) {
/freebsd-head/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_doorbell.c42 struct mlx5_db *db)
72 db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK);
73 db->u.user_page = page;
82 void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) argument
86 if (!--db->u.user_page->refcnt) {
87 list_del(&db->u.user_page->list);
88 ib_umem_release(db->u.user_page->umem);
89 kfree(db->u.user_page);
41 mlx5_ib_db_map_user(struct mlx5_ib_ucontext *context, unsigned long virt, struct mlx5_db *db) argument
/freebsd-head/usr.sbin/sa/
H A Ddb.c39 #include <db.h>
205 db_destroy(DB *db, const char *uname) argument
207 if (DB_CLOSE(db) < 0)
/freebsd-head/contrib/kyua/drivers/
H A Dscan_results.cpp76 store::read_backend db = store::read_backend::open_ro(store_path); local
77 store::read_transaction tx = db.start_read();
/freebsd-head/crypto/heimdal/lib/kadm5/
H A Dget_princs_s.c58 foreach(krb5_context context, HDB *db, hdb_entry_ex *ent, void *data) argument
88 ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0);
102 ret = hdb_foreach(context->context, context->db, HDB_F_ADMIN_DATA, foreach, &d);
103 context->db->hdb_close(context->context, context->db);
/freebsd-head/contrib/netbsd-tests/lib/libc/db/
H A Dh_lfsr.c38 #include <db.h>
62 DB *db; local
77 db = dbopen(NULL, O_CREAT|O_TRUNC|O_RDWR, 0, DB_HASH, &hi);
78 if (db == NULL)
87 switch ((*db->put)(db, &key, &val, R_NOOVERWRITE)) {
109 switch ((*db->get)(db, &key, &val, 0)) {
140 switch ((*db->del)(db,
[all...]
/freebsd-head/contrib/ofed/libmlx4/
H A Ddbrec.c90 uint32_t *db = NULL; local
111 db = page->buf.buf + (i * 8 * sizeof (long) + (j - 1)) * db_size[type];
116 return db;
119 void mlx4_free_db(struct mlx4_context *context, enum mlx4_db_type type, uint32_t *db) argument
128 if (((uintptr_t) db & ~(ps - 1)) == (uintptr_t) page->buf.buf)
134 i = ((void *) db - page->buf.buf) / db_size[type];
/freebsd-head/contrib/ofed/libmlx5/
H A Ddbrec.c86 uint32_t *db = NULL; local
108 db = page->buf.buf + (i * 8 * sizeof(long) + j) * context->cache_line_size;
113 return db;
116 void mlx5_free_db(struct mlx5_context *context, uint32_t *db) argument
125 if (((uintptr_t) db & ~(ps - 1)) == (uintptr_t) page->buf.buf)
131 i = ((void *) db - page->buf.buf) / context->cache_line_size;
/freebsd-head/lib/libc/gen/
H A Dgetutxent.c52 setutxdb(int db, const char *file) argument
56 switch (db) {
80 if (db != UTXDB_LOG) {
94 udb = db;
/freebsd-head/usr.sbin/services_mkdb/
H A Duniq.c39 #include <db.h>
62 DB *db; local
69 if ((db = dbopen(NULL, O_RDWR, 0, DB_HASH, &hinfo)) == NULL)
84 switch ((db->put)(db, &key, &data, R_NOOVERWRITE)) {
/freebsd-head/sys/dev/mthca/
H A Dmthca_doorbell.h65 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) argument
67 *(u64 *) db = *(u64 *) val;
102 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) argument
104 db[0] = val[0];
106 db[1] = val[1];

Completed in 119 milliseconds

1234567891011