| /netbsd/src/external/bsd/kyua-cli/dist/store/ |
| D | transaction_test.cpp | 77 store::backend backend = store::backend::open_rw(fs::path("test.db")); in do_put_result_ok_test() 79 store::transaction tx = backend.start(); in do_put_result_ok_test() 109 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 113 store::backend backend = store::backend::open_rw(fs::path("test.db")); in ATF_TEST_CASE_BODY() 114 store::transaction tx = backend.start(); in ATF_TEST_CASE_BODY() 126 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 130 store::backend backend = store::backend::open_rw(fs::path("test.db")); in ATF_TEST_CASE_BODY() 134 store::transaction tx = backend.start(); in ATF_TEST_CASE_BODY() 140 ATF_REQUIRE_THROW(store::error, tx.commit()); in ATF_TEST_CASE_BODY() 145 store::transaction tx = backend.start(); in ATF_TEST_CASE_BODY() [all …]
|
| D | backend_test.cpp | 57 store::detail::backup_database(fs::path("test.db"), 13); in ATF_TEST_CASE_BODY() 69 store::detail::backup_database(fs::path("test.db"), 1); in ATF_TEST_CASE_BODY() 80 ATF_REQUIRE_THROW_RE(store::error, "Cannot open.*foo.db", in ATF_TEST_CASE_BODY() 81 store::detail::backup_database(fs::path("foo.db"), 5)); in ATF_TEST_CASE_BODY() 96 store::error, "Cannot create.*dir/test.db.v13.backup", in ATF_TEST_CASE_BODY() 97 store::detail::backup_database(fs::path("dir/test.db"), 13)); in ATF_TEST_CASE_BODY() 105 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 111 const store::metadata md = store::detail::initialize(db); in ATF_TEST_CASE_BODY() 116 ATF_REQUIRE_EQ(store::detail::current_schema_version, md.schema_version()); in ATF_TEST_CASE_BODY() 134 store::detail::current_schema_version = 712; in ATF_TEST_CASE_BODY() [all …]
|
| D | dbtypes_test.cpp | 97 ATF_REQUIRE_THROW_RE(store::integrity_error, error_regexp, in do_invalid_test() 109 do_ok_test(store::bind_bool, true, store::column_bool); in ATF_TEST_CASE_BODY() 110 do_ok_test(store::bind_bool, false, store::column_bool); in ATF_TEST_CASE_BODY() 117 do_invalid_test(123, store::column_bool, "not a string"); in ATF_TEST_CASE_BODY() 124 do_invalid_test("foo", store::column_bool, "Unknown boolean.*foo"); in ATF_TEST_CASE_BODY() 131 do_ok_test(store::bind_delta, datetime::delta(15, 34), store::column_delta); in ATF_TEST_CASE_BODY() 138 do_invalid_test(15.6, store::column_delta, "not an integer"); in ATF_TEST_CASE_BODY() 145 do_ok_test(store::bind_optional_string, "", store::column_optional_string); in ATF_TEST_CASE_BODY() 146 do_ok_test(store::bind_optional_string, "a", store::column_optional_string); in ATF_TEST_CASE_BODY() 153 do_invalid_test(35, store::column_optional_string, "Invalid string"); in ATF_TEST_CASE_BODY() [all …]
|
| D | backend.cpp | 60 int store::detail::current_schema_version = 2; 85 throw store::error(F("Cannot open '%s': %s") % file % e.what()); in do_open() 116 const fs::path migration = store::detail::migration_file(version_from, in migrate_schema_step() 121 throw store::error(F("Cannot open migration file '%s'") % migration); in migrate_schema_step() 127 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step() 142 store::detail::migration_file(const int version_from, const int version_to) in migration_file() 154 store::detail::schema_file(void) in schema_file() 168 store::metadata 169 store::detail::initialize(sqlite::database& db) in initialize() 191 } catch (const store::integrity_error& e) { in initialize() [all …]
|
| D | metadata_test.cpp | 59 store::detail::initialize(db); in create_database() 72 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 82 const store::metadata metadata = store::metadata::fetch_latest(db); in ATF_TEST_CASE_BODY() 92 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 97 ATF_REQUIRE_THROW_RE(store::integrity_error, "metadata.*empty", in ATF_TEST_CASE_BODY() 98 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() 109 ATF_REQUIRE_THROW_RE(store::integrity_error, in ATF_TEST_CASE_BODY() 111 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() 122 ATF_REQUIRE_THROW_RE(store::integrity_error, in ATF_TEST_CASE_BODY() 124 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() [all …]
|
| D | transaction.cpp | 138 throw store::integrity_error(F("Cannot find referenced file %s") % in get_file() 151 throw store::integrity_error(e.what()); in get_file() 217 throw store::integrity_error("Result of type 'passed' has a " in parse_result() 233 throw store::integrity_error(F("Unknown test result type %s") % in parse_result() 237 throw store::integrity_error(e.what()); in parse_result() 331 throw store::error(F("Cannot open file %s") % path); in put_file() 371 store::detail::get_test_program(backend& backend_, const int64_t id) in get_test_program() 399 struct store::results_iterator::impl { 401 store::backend _backend; 414 impl(store::backend& backend_, const int64_t action_id_) : in impl() [all …]
|
| D | dbtypes.cpp | 47 store::bind_bool(sqlite::statement& stmt, const char* field, const bool value) in bind_bool() 59 store::bind_delta(sqlite::statement& stmt, const char* field, in bind_delta() 76 store::bind_optional_string(sqlite::statement& stmt, const char* field, in bind_optional_string() 92 store::bind_timestamp(sqlite::statement& stmt, const char* field, in bind_timestamp() 108 store::column_bool(sqlite::statement& stmt, const char* column) in column_bool() 112 throw store::integrity_error(F("Boolean value in column %s is not a " in column_bool() 120 throw store::integrity_error(F("Unknown boolean value '%s'") % value); in column_bool() 133 store::column_delta(sqlite::statement& stmt, const char* column) in column_delta() 137 throw store::integrity_error(F("Time delta in column %s is not an " in column_delta() 152 store::column_optional_string(sqlite::statement& stmt, const char* column) in column_optional_string() [all …]
|
| D | metadata.cpp | 64 throw store::integrity_error(F("The '%s' column in 'metadata' table " in int64_column() 77 store::metadata::metadata(const int schema_version_, const int64_t timestamp_) : in metadata() 88 store::metadata::timestamp(void) const in timestamp() 98 store::metadata::schema_version(void) const in schema_version() 114 store::metadata 115 store::metadata::fetch_latest(sqlite::database& db) in fetch_latest() 122 throw store::integrity_error("The 'metadata' table is empty"); in fetch_latest() 134 throw store::integrity_error(F("Invalid metadata schema: %s") % in fetch_latest()
|
| D | exceptions.cpp | 37 store::error::error(const std::string& message) : in error() 44 store::error::~error(void) throw() in ~error() 52 store::integrity_error::integrity_error(const std::string& message) : in integrity_error() 59 store::integrity_error::~integrity_error(void) throw() in ~integrity_error() 67 store::old_schema_error::old_schema_error(const int version) : in old_schema_error() 76 store::old_schema_error::~old_schema_error(void) throw() in ~old_schema_error() 85 store::old_schema_error::old_version(void) const in old_version()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ |
| D | provider_core.c | 160 struct provider_store_st *store; /* The store this instance belongs to */ member 288 struct provider_store_st *store = vstore; in provider_store_free() local 291 if (store == NULL) in provider_store_free() 293 store->freeing = 1; in provider_store_free() 294 OPENSSL_free(store->default_path); in provider_store_free() 295 sk_OSSL_PROVIDER_pop_free(store->providers, provider_deactivate_free); in provider_store_free() 297 sk_OSSL_PROVIDER_CHILD_CB_pop_free(store->child_cbs, in provider_store_free() 300 CRYPTO_THREAD_lock_free(store->default_path_lock); in provider_store_free() 301 CRYPTO_THREAD_lock_free(store->lock); in provider_store_free() 302 for (i = 0; i < store->numprovinfo; i++) in provider_store_free() [all …]
|
| D | core_fetch.c | 20 OSSL_METHOD_STORE *store; member 38 if (is_temporary_method_store(no_store, data) && data->store == NULL) { in ossl_method_construct_reserve_store() 45 if ((data->store = data->mcm->get_tmp_store(data->mcm_data)) == NULL) in ossl_method_construct_reserve_store() 49 return data->mcm->lock_store(data->store, data->mcm_data); in ossl_method_construct_reserve_store() 56 return data->mcm->unlock_store(data->store, data->mcm_data); in ossl_method_construct_unreserve_store() 123 data->mcm->put(no_store ? data->store : NULL, in ossl_method_construct_this() 150 cbdata.store = NULL; in ossl_method_construct() 163 if (cbdata.store != NULL) in ossl_method_construct() 164 method = mcm->get(cbdata.store, (const OSSL_PROVIDER **)provider_rw, in ossl_method_construct()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/test/ |
| D | property_test.c | 54 OSSL_METHOD_STORE *store = NULL; in test_property_string() local 63 && TEST_ptr(store = ossl_method_store_new(ctx)) in test_property_string() 82 ossl_method_store_free(store); in test_property_string() 130 OSSL_METHOD_STORE *store; in test_property_parse() local 134 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_parse() 143 ossl_method_store_free(store); in test_property_parse() 149 OSSL_METHOD_STORE *store; in test_property_query_value_create() local 154 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_query_value_create() 165 ossl_method_store_free(store); in test_property_query_value_create() 197 OSSL_METHOD_STORE *store; in test_property_parse_error() local [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/store/ |
| D | store_meth.c | 117 static void dealloc_tmp_loader_store(void *store) in dealloc_tmp_loader_store() argument 119 if (store != NULL) in dealloc_tmp_loader_store() 120 ossl_method_store_free(store); in dealloc_tmp_loader_store() 130 static int reserve_loader_store(void *store, void *data) in reserve_loader_store() argument 134 if (store == NULL in reserve_loader_store() 135 && (store = get_loader_store(methdata->libctx)) == NULL) in reserve_loader_store() 138 return ossl_method_lock_store(store); in reserve_loader_store() 141 static int unreserve_loader_store(void *store, void *data) in unreserve_loader_store() argument 145 if (store == NULL in unreserve_loader_store() 146 && (store = get_loader_store(methdata->libctx)) == NULL) in unreserve_loader_store() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| D | evp_fetch.c | 74 static void dealloc_tmp_evp_method_store(void *store) in dealloc_tmp_evp_method_store() argument 76 if (store != NULL) in dealloc_tmp_evp_method_store() 77 ossl_method_store_free(store); in dealloc_tmp_evp_method_store() 86 static int reserve_evp_method_store(void *store, void *data) in reserve_evp_method_store() argument 90 if (store == NULL in reserve_evp_method_store() 91 && (store = get_evp_method_store(methdata->libctx)) == NULL) in reserve_evp_method_store() 94 return ossl_method_lock_store(store); in reserve_evp_method_store() 97 static int unreserve_evp_method_store(void *store, void *data) in unreserve_evp_method_store() argument 101 if (store == NULL in unreserve_evp_method_store() 102 && (store = get_evp_method_store(methdata->libctx)) == NULL) in unreserve_evp_method_store() [all …]
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/x509/ |
| D | x509_lu.c | 313 X509_STORE *store = vs->store; in X509_STORE_CTX_get_by_subject() local 318 if (store == NULL) in X509_STORE_CTX_get_by_subject() 324 if (!X509_STORE_lock(store)) in X509_STORE_CTX_get_by_subject() 327 tmp = X509_OBJECT_retrieve_by_subject(store->objs, type, name); in X509_STORE_CTX_get_by_subject() 328 X509_STORE_unlock(store); in X509_STORE_CTX_get_by_subject() 331 for (i = 0; i < sk_X509_LOOKUP_num(store->get_cert_methods); i++) { in X509_STORE_CTX_get_by_subject() 332 lu = sk_X509_LOOKUP_value(store->get_cert_methods, i); in X509_STORE_CTX_get_by_subject() 353 static int x509_store_add(X509_STORE *store, void *x, int crl) { in x509_store_add() argument 376 if (!X509_STORE_lock(store)) { in x509_store_add() 382 if (X509_OBJECT_retrieve_match(store->objs, obj)) { in x509_store_add() [all …]
|
| /netbsd/src/common/lib/libutil/ |
| D | snprintb.c | 72 store(state *s, char c) in store() function 96 store(s, '#'); in store_eol() 98 store(s, '\0'); in store_eol() 109 store(s, ','); in store_delimiter() 111 store(s, '<'); in store_delimiter() 123 store(s, '>'); in maybe_wrap_line() 143 store(s, *s->bitfmt); in old_style() 176 store(s, s->bitfmt[-1]); in new_style() 200 store(s, s->bitfmt[-1]); in new_style() 201 store(s, '='); in new_style() [all …]
|
| /netbsd/src/sys/dev/ |
| D | midictl.c | 193 mc->store = s; in midictl_open() 203 s = mc->store; in midictl_close() 220 KASSERT(!mc->store->destroy); in midictl_change() 308 present = store_locate(mc->store, c, chan, key); in midictl_change() 312 val = store_extract(mc->store, c, chan, key); in midictl_change() 316 store_update(mc->store, c, chan, key, in midictl_change() 321 present = store_locate(mc->store, c, chan, key); in midictl_change() 325 val = store_extract(mc->store, c, chan, key); in midictl_change() 329 store_update(mc->store, c, chan, key, in midictl_change() 348 KASSERT(!mc->store->destroy); in midictl_read() [all …]
|
| /netbsd/src/external/gpl3/gcc/dist/gcc/config/rs6000/ |
| D | power6.md | 85 ; Load/store 98 ; a store. 102 "power6-store,\ 103 power6-store-update,\ 104 power6-store-update-indexed,\ 118 ; a store. 122 "power6-store,\ 123 power6-store-update,\ 124 power6-store-update-indexed,\ 173 (define_insn_reservation "power6-store" 14 [all …]
|
| /netbsd/src/external/bsd/kyua-cli/dist/integration/ |
| D | cmd_db_migrate_test.sh | 32 data=$(atf_get_srcdir)/../store 38 data=$(atf_get_srcdir)/../store 42 | sqlite3 .kyua/store.db 58 data=$(atf_get_srcdir)/../store 64 data=$(atf_get_srcdir)/../store 67 sqlite3 .kyua/store.db <"${data}/schema_v1.sql" 77 kyua db-migrate --store ./test.db 84 kyua db-migrate --store ./test.db
|
| /netbsd/src/crypto/external/bsd/openssh/dist/ |
| D | gss-serv-krb5.c | 167 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); in ssh_gssapi_krb5_storecreds() 168 client->store.envvar = __UNCONST("KRB5CCNAME"); in ssh_gssapi_krb5_storecreds() 169 len = strlen(client->store.filename) + 6; in ssh_gssapi_krb5_storecreds() 170 client->store.envval = xmalloc(len); in ssh_gssapi_krb5_storecreds() 171 snprintf(client->store.envval, len, "FILE:%s", client->store.filename); in ssh_gssapi_krb5_storecreds() 175 do_pam_putenv(client->store.envvar, client->store.envval); in ssh_gssapi_krb5_storecreds()
|
| /netbsd/src/sys/arch/sun2/sun2/ |
| D | promlib.c | 273 uint16_t old_g0_g4_vectors[4], *vec, *store; in prom_abort() local 284 store = old_g0_g4_vectors; in prom_abort() 285 *(store++) = *vec; in prom_abort() 287 *(store++) = *vec; in prom_abort() 290 *(store++) = *vec; in prom_abort() 292 *(store++) = *vec; in prom_abort() 310 store = old_g0_g4_vectors; in prom_abort() 311 *(vec++) = *(store++); in prom_abort() 312 *(vec++) = *(store++); in prom_abort() 313 *(vec++) = *(store++); in prom_abort() [all …]
|
| /netbsd/src/usr.bin/find/ |
| D | misc.c | 65 brace_subst(char *orig, char **store, char *path, size_t *len) in brace_subst() argument 71 for (p = *store; (ch = *orig) != '\0'; ++orig) in brace_subst() 77 while ((p - *store) + plen + rest + 1 > nlen) in brace_subst() 81 ptrdiff_t off = p - *store; in brace_subst() 83 ostore = *store; in brace_subst() 84 if ((*store = realloc(ostore, nlen)) == NULL) in brace_subst() 87 p = *store + off; /* Relocate. */ in brace_subst()
|
| /netbsd/src/usr.bin/uuidgen/ |
| D | uuidgen.c | 80 uuid_t *store, *uuid; in main() local 124 store = (uuid_t*)malloc(sizeof(uuid_t) * count); in main() 125 if (store == NULL) in main() 130 if (uuidgen(store, count) != 0) in main() 133 uuid = store; in main() 140 uuid = store; in main() 181 free(store); in main()
|
| /netbsd/src/external/bsd/kyua-cli/dist/engine/drivers/ |
| D | scan_action.cpp | 59 get_action(store::transaction& tx, optional< int64_t >& action_id) in get_action() 70 } catch (const store::error& e) { in get_action() 98 store::backend db = store::backend::open_ro(store_path); in drive() 99 store::transaction tx = db.start(); in drive() 104 store::results_iterator iter = tx.get_action_results(action_id.get()); in drive()
|
| /netbsd/src/tests/rump/kernspace/ |
| D | alloc.c | 48 static void *store[32]; variable 72 for (i = 0; i < __arraycount(store); i++) { in hthr() 73 pool_put(&pp1, store[i]); in hthr() 95 for (i = 0; i < __arraycount(store); i++) { in rumptest_alloc() 96 store[i] = pool_get(&pp1, PR_NOWAIT); in rumptest_alloc() 97 if (store[i] == NULL) { in rumptest_alloc()
|