| /freebsd/contrib/kyua/store/ |
| H A D | Makefile.am.inc | 35 libstore_a_SOURCES = store/dbtypes.cpp 36 libstore_a_SOURCES += store/dbtypes.hpp 37 libstore_a_SOURCES += store/exceptions.cpp 38 libstore_a_SOURCES += store/exceptions.hpp 39 libstore_a_SOURCES += store/layout.cpp 40 libstore_a_SOURCES += store/layout.hpp 41 libstore_a_SOURCES += store/layout_fwd.hpp 42 libstore_a_SOURCES += store/metadata.cpp 43 libstore_a_SOURCES += store/metadata.hpp 44 libstore_a_SOURCES += store/metadata_fwd.hpp [all …]
|
| H A D | read_transaction_test.cpp | 61 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 65 store::write_backend::open_rw(fs::path("test.db")); // Create database. in ATF_TEST_CASE_BODY() 66 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY() 69 store::read_transaction tx = backend.start_read(); in ATF_TEST_CASE_BODY() 70 ATF_REQUIRE_THROW_RE(store::error, "context: no data", tx.get_context()); in ATF_TEST_CASE_BODY() 78 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 83 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY() 93 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY() 95 store::read_transaction tx = backend.start_read(); in ATF_TEST_CASE_BODY() 96 ATF_REQUIRE_THROW_RE(store::error, "context: .*cwd.*not a string", in ATF_TEST_CASE_BODY() [all …]
|
| H A D | dbtypes_test.cpp | 98 ATF_REQUIRE_THROW_RE(store::integrity_error, error_regexp, in do_invalid_test() 110 do_ok_test(store::bind_bool, true, store::column_bool); in ATF_TEST_CASE_BODY() 111 do_ok_test(store::bind_bool, false, store::column_bool); in ATF_TEST_CASE_BODY() 118 do_invalid_test(123, store::column_bool, "not a string"); in ATF_TEST_CASE_BODY() 125 do_invalid_test("foo", store::column_bool, "Unknown boolean.*foo"); in ATF_TEST_CASE_BODY() 132 do_ok_test(store::bind_delta, datetime::delta(15, 34), store::column_delta); in ATF_TEST_CASE_BODY() 139 do_invalid_test(15.6, store::column_delta, "not an integer"); in ATF_TEST_CASE_BODY() 146 do_ok_test(store::bind_optional_string, "", store::column_optional_string); in ATF_TEST_CASE_BODY() 147 do_ok_test(store::bind_optional_string, "a", store::column_optional_string); in ATF_TEST_CASE_BODY() 154 do_invalid_test(35, store::column_optional_string, "Invalid string"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | write_transaction_test.cpp | 75 store::write_backend backend = store::write_backend::open_rw( in do_put_result_ok_test() 78 store::write_transaction tx = backend.start_write(); in do_put_result_ok_test() 108 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 112 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY() 114 store::write_transaction tx = backend.start_write(); in ATF_TEST_CASE_BODY() 126 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 130 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY() 135 store::write_transaction tx = backend.start_write(); in ATF_TEST_CASE_BODY() 141 ATF_REQUIRE_THROW(store::error, tx.commit()); in ATF_TEST_CASE_BODY() 146 store::write_transaction tx = backend.start_write(); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | write_backend_test.cpp | 53 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 59 const store::metadata md = store::detail::initialize(db); in ATF_TEST_CASE_BODY() 64 ATF_REQUIRE_EQ(store::detail::current_schema_version, md.schema_version()); in ATF_TEST_CASE_BODY() 82 store::detail::current_schema_version = 712; in ATF_TEST_CASE_BODY() 85 ATF_REQUIRE_THROW_RE(store::error, in ATF_TEST_CASE_BODY() 87 store::detail::initialize(db)); in ATF_TEST_CASE_BODY() 95 store::detail::current_schema_version = 712; in ATF_TEST_CASE_BODY() 100 ATF_REQUIRE_THROW_RE(store::error, "Failed to initialize.*:.*foo_bar_baz", in ATF_TEST_CASE_BODY() 101 store::detail::initialize(db)); in ATF_TEST_CASE_BODY() 110 store::detail::schema_file()); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | read_transaction.cpp | 133 throw store::integrity_error(F("Cannot find referenced file %s") % in get_file() 146 throw store::integrity_error(e.what()); in get_file() 198 store::column_test_result_type(stmt, type_column); in parse_result() 202 throw store::integrity_error("Result of type 'passed' has a " in parse_result() 210 throw store::integrity_error(e.what()); in parse_result() 228 store::detail::get_test_program(read_backend& backend_, const int64_t id) in get_test_program() 254 struct store::results_iterator::impl : utils::noncopyable { 256 store::read_backend _backend; 271 impl(store::read_backend& backend_) : in impl() 294 store::results_iterator::results_iterator( in results_iterator() [all …]
|
| H A D | read_backend_test.cpp | 58 sqlite::database db = store::detail::open_and_setup( in ATF_TEST_CASE_BODY() 71 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ", in ATF_TEST_CASE_BODY() 72 store::detail::open_and_setup(fs::path("missing.db"), in ATF_TEST_CASE_BODY() 82 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 89 store::detail::initialize(db); in ATF_TEST_CASE_BODY() 91 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY() 100 ATF_REQUIRE_THROW_RE(store::error, "Cannot open 'missing.db': ", in ATF_TEST_CASE_BODY() 101 store::read_backend::open_ro(fs::path("missing.db"))); in ATF_TEST_CASE_BODY() 110 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 117 store::detail::initialize(db); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | metadata_test.cpp | 60 store::detail::initialize(db); in create_database() 73 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 83 const store::metadata metadata = store::metadata::fetch_latest(db); in ATF_TEST_CASE_BODY() 93 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 98 ATF_REQUIRE_THROW_RE(store::integrity_error, "metadata.*empty", in ATF_TEST_CASE_BODY() 99 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() 110 ATF_REQUIRE_THROW_RE(store::integrity_error, in ATF_TEST_CASE_BODY() 112 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() 123 ATF_REQUIRE_THROW_RE(store::integrity_error, in ATF_TEST_CASE_BODY() 125 store::metadata::fetch_latest(db)); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | write_backend.cpp | 63 int store::detail::current_schema_version = 3; 90 store::detail::schema_file(void) in schema_file() 104 store::metadata 105 store::detail::initialize(sqlite::database& db) in initialize() 122 } catch (const store::integrity_error& e) { in initialize() 134 struct store::write_backend::impl : utils::noncopyable { 150 store::write_backend::write_backend(impl* pimpl_) : in write_backend() 157 store::write_backend::~write_backend(void) in ~write_backend() 170 store::write_backend 171 store::write_backend::open_rw(const fs::path& file) in open_rw() [all …]
|
| H A D | dbtypes.cpp | 49 store::bind_bool(sqlite::statement& stmt, const char* field, const bool value) in bind_bool() 61 store::bind_delta(sqlite::statement& stmt, const char* field, in bind_delta() 77 store::bind_optional_string(sqlite::statement& stmt, const char* field, in bind_optional_string() 93 store::bind_test_result_type(sqlite::statement& stmt, const char* field, in bind_test_result_type() 129 store::bind_timestamp(sqlite::statement& stmt, const char* field, in bind_timestamp() 145 store::column_bool(sqlite::statement& stmt, const char* column) in column_bool() 149 throw store::integrity_error(F("Boolean value in column %s is not a " in column_bool() 157 throw store::integrity_error(F("Unknown boolean value '%s'") % value); in column_bool() 170 store::column_delta(sqlite::statement& stmt, const char* column) in column_delta() 174 throw store::integrity_error(F("Time delta in column %s is not an " in column_delta() [all …]
|
| H A D | transaction_test.cpp | 69 store::write_backend backend = store::write_backend::open_rw(test_db); in check_get_put_context() 70 store::write_transaction tx = backend.start_write(); in check_get_put_context() 75 store::read_backend backend = store::read_backend::open_ro(test_db); in check_get_put_context() 76 store::read_transaction tx = backend.start_read(); in check_get_put_context() 92 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 110 set_md_var("require.files", store::detail::schema_file().c_str()); in ATF_TEST_CASE_HEAD() 143 store::write_backend backend = store::write_backend::open_rw( in ATF_TEST_CASE_BODY() 147 store::write_transaction tx = backend.start_write(); in ATF_TEST_CASE_BODY() 154 store::read_backend backend = store::read_backend::open_ro( in ATF_TEST_CASE_BODY() 158 store::read_transaction tx = backend.start_read(); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | read_backend.cpp | 57 store::detail::open_and_setup(const fs::path& file, const int flags) in open_and_setup() 64 throw store::error(F("Cannot open '%s': %s") % file % e.what()); in open_and_setup() 70 struct store::read_backend::impl : utils::noncopyable { 108 store::read_backend::read_backend(impl* pimpl_) : in read_backend() 115 store::read_backend::~read_backend(void) in ~read_backend() 127 store::read_backend 128 store::read_backend::open_ro(const fs::path& file) in open_ro() 137 store::read_backend::close(void) in close() 147 store::read_backend::database(void) in database() 156 store::read_transaction [all …]
|
| H A D | migrate.cpp | 78 sqlite::database db = store::detail::open_and_setup( in get_schema_version() 80 return store::metadata::fetch_latest(db).schema_version(); in get_schema_version() 111 sqlite::database db = store::detail::open_and_setup( in migrate_schema_step() 114 const fs::path migration = store::detail::migration_file(version_from, in migrate_schema_step() 121 throw store::error(F("Cannot read migration file '%s'") % migration); in migrate_schema_step() 134 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step() 152 sqlite::database old_db = store::detail::open_and_setup( in chunk_database() 180 const datetime::timestamp start_time = store::column_timestamp( in chunk_database() 184 const fs::path new_file = store::layout::new_db_for_migration( in chunk_database() 195 sqlite::database db = store::detail::open_and_setup( in chunk_database() [all …]
|
| /freebsd/crypto/openssl/crypto/property/ |
| H A D | property.c | 109 static void ossl_method_cache_flush_alg(OSSL_METHOD_STORE *store, 111 static void ossl_method_cache_flush(OSSL_METHOD_STORE *store, int nid); 227 OSSL_METHOD_STORE *store = arg; in alg_cleanup() local 235 if (store != NULL) in alg_cleanup() 236 ossl_sa_ALGORITHM_set(store->algs, idx, NULL); in alg_cleanup() 260 void ossl_method_store_free(OSSL_METHOD_STORE *store) in ossl_method_store_free() argument 262 if (store != NULL) { in ossl_method_store_free() 263 if (store->algs != NULL) in ossl_method_store_free() 264 ossl_sa_ALGORITHM_doall_arg(store->algs, &alg_cleanup, store); in ossl_method_store_free() 265 ossl_sa_ALGORITHM_free(store->algs); in ossl_method_store_free() [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | provider_core.c | 160 struct provider_store_st *store; /* The store this instance belongs to */ member 289 struct provider_store_st *store = vstore; in ossl_provider_store_free() local 292 if (store == NULL) in ossl_provider_store_free() 294 store->freeing = 1; in ossl_provider_store_free() 295 OPENSSL_free(store->default_path); in ossl_provider_store_free() 296 sk_OSSL_PROVIDER_pop_free(store->providers, provider_deactivate_free); in ossl_provider_store_free() 298 sk_OSSL_PROVIDER_CHILD_CB_pop_free(store->child_cbs, in ossl_provider_store_free() 301 CRYPTO_THREAD_lock_free(store->default_path_lock); in ossl_provider_store_free() 302 CRYPTO_THREAD_lock_free(store->lock); in ossl_provider_store_free() 303 for (i = 0; i < store->numprovinfo; i++) in ossl_provider_store_free() [all …]
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | by_store.c | 25 static int cache_objects(X509_LOOKUP *lctx, CACHED_STORE *store, in DEFINE_STACK_OF() 32 if ((ctx = OSSL_STORE_open_ex(store->uri, store->libctx, store->propq, in DEFINE_STACK_OF() 78 substore.libctx = store->libctx; in DEFINE_STACK_OF() 79 substore.propq = store->propq; in DEFINE_STACK_OF() 109 static void free_store(CACHED_STORE *store) in free_store() argument 111 if (store != NULL) { in free_store() 112 OPENSSL_free(store->uri); in free_store() 113 OPENSSL_free(store->propq); in free_store() 114 OPENSSL_free(store); in free_store() 132 CACHED_STORE *store = OPENSSL_zalloc(sizeof(*store)); in by_store_ctrl_ex() local [all …]
|
| H A D | x509_lu.c | 323 X509_STORE *store = ctx->store; in ossl_x509_store_ctx_get_by_subject() local 328 if (store == NULL) in ossl_x509_store_ctx_get_by_subject() 334 if (!ossl_x509_store_read_lock(store)) in ossl_x509_store_ctx_get_by_subject() 337 if (!sk_X509_OBJECT_is_sorted(store->objs)) { in ossl_x509_store_ctx_get_by_subject() 338 X509_STORE_unlock(store); in ossl_x509_store_ctx_get_by_subject() 340 if (!X509_STORE_lock(store)) in ossl_x509_store_ctx_get_by_subject() 346 sk_X509_OBJECT_sort(store->objs); in ossl_x509_store_ctx_get_by_subject() 348 tmp = X509_OBJECT_retrieve_by_subject(store->objs, type, name); in ossl_x509_store_ctx_get_by_subject() 349 X509_STORE_unlock(store); in ossl_x509_store_ctx_get_by_subject() 352 for (i = 0; i < sk_X509_LOOKUP_num(store->get_cert_methods); i++) { in ossl_x509_store_ctx_get_by_subject() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | Store.h | 82 virtual SVal getBinding(Store store, Loc loc, QualType T = QualType()) = 0; 94 virtual std::optional<SVal> getDefaultBinding(Store store, 116 virtual BindResult Bind(Store store, Loc loc, SVal val) = 0; 121 virtual BindResult BindDefaultInitial(Store store, const MemRegion *R, 126 virtual BindResult BindDefaultZero(Store store, const MemRegion *R) = 0; 196 virtual StoreRef removeDeadBindings(Store store, const StackFrameContext *LCtx, 199 virtual bool includedInBindings(Store store, 204 virtual void incrementReferenceCount(Store store) {} in incrementReferenceCount() argument 209 virtual void decrementReferenceCount(Store store) {} in decrementReferenceCount() argument 244 Store store, ArrayRef<SVal> Values, ConstCFGElementRef Elem, [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | fixedvector.h | 23 cpp::array<T, CAPACITY> store; variable 31 : store{}, item_count{} { in FixedVector() 39 : store{}, item_count{} { in FixedVector() 46 : store{}, item_count{} { in FixedVector() 55 store[item_count] = obj; in push_back() 62 return store[item_count - 1]; in back() 67 return store[item_count - 1]; in back() 73 inline_memset(&store[item_count - 1], 0, sizeof(T)); in pop_back() 80 return store[idx]; 85 return store[idx]; [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A 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() 104 ossl_method_store_free(store); in test_property_string() 152 OSSL_METHOD_STORE *store; in test_property_parse() local 156 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_parse() 165 ossl_method_store_free(store); in test_property_parse() 171 OSSL_METHOD_STORE *store; in test_property_query_value_create() local 176 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_query_value_create() 187 ossl_method_store_free(store); in test_property_query_value_create() 219 OSSL_METHOD_STORE *store; in test_property_parse_error() local [all …]
|
| H A D | pkcs7_test.c | 135 X509_STORE *store = NULL; in pkcs7_verify_test() local 158 && TEST_ptr(store = X509_STORE_new()) in pkcs7_verify_test() 159 && TEST_true(X509_STORE_add_cert(store, cert)) in pkcs7_verify_test() 162 && TEST_true(PKCS7_verify(p7, NULL, store, msg_bio, NULL, PKCS7_TEXT)) in pkcs7_verify_test() 165 X509_STORE_free(store); in pkcs7_verify_test() 226 X509_STORE *store = NULL; in pkcs7_inner_content_verify_test() local 370 && TEST_ptr(store = X509_STORE_new()) in pkcs7_inner_content_verify_test() 371 && TEST_true(X509_STORE_add_cert(store, cert)) in pkcs7_inner_content_verify_test() 372 && TEST_ptr(param = X509_STORE_get0_param(store)) in pkcs7_inner_content_verify_test() 375 && TEST_true(X509_STORE_set1_param(store, param)) in pkcs7_inner_content_verify_test() [all …]
|
| /freebsd/sys/tools/syscalls/scripts/ |
| H A D | systrace_args.lua | 53 gen:store(string.format([[ 61 gen:store(string.format([[ 72 gen:store(v.prolog, 1); 73 gen:store(v.prolog, 2); 82 gen:store(string.format([[ 87 gen:store(string.format([[ 105 gen:store([[ 117 gen:store( 130 gen:store(string.format([[ 141 gen:store([[ [all …]
|
| /freebsd/crypto/openssl/crypto/store/ |
| H A D | store_meth.c | 101 static void dealloc_tmp_loader_store(void *store) in dealloc_tmp_loader_store() argument 103 if (store != NULL) in dealloc_tmp_loader_store() 104 ossl_method_store_free(store); in dealloc_tmp_loader_store() 113 static int reserve_loader_store(void *store, void *data) in reserve_loader_store() argument 117 if (store == NULL in reserve_loader_store() 118 && (store = get_loader_store(methdata->libctx)) == NULL) in reserve_loader_store() 121 return ossl_method_lock_store(store); in reserve_loader_store() 124 static int unreserve_loader_store(void *store, void *data) in unreserve_loader_store() argument 128 if (store == NULL in unreserve_loader_store() 129 && (store = get_loader_store(methdata->libctx)) == NULL) in unreserve_loader_store() [all …]
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | evp_fetch.c | 60 static void dealloc_tmp_evp_method_store(void *store) in dealloc_tmp_evp_method_store() argument 62 OSSL_TRACE1(QUERY, "Deallocating the tmp_store %p\n", store); in dealloc_tmp_evp_method_store() 63 if (store != NULL) in dealloc_tmp_evp_method_store() 64 ossl_method_store_free(store); in dealloc_tmp_evp_method_store() 72 static int reserve_evp_method_store(void *store, void *data) in reserve_evp_method_store() argument 76 if (store == NULL in reserve_evp_method_store() 77 && (store = get_evp_method_store(methdata->libctx)) == NULL) in reserve_evp_method_store() 80 return ossl_method_lock_store(store); in reserve_evp_method_store() 83 static int unreserve_evp_method_store(void *store, void *data) in unreserve_evp_method_store() argument 87 if (store == NULL in unreserve_evp_method_store() [all …]
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | property.h | 54 void ossl_method_store_free(OSSL_METHOD_STORE *store); 56 int ossl_method_lock_store(OSSL_METHOD_STORE *store); 57 int ossl_method_unlock_store(OSSL_METHOD_STORE *store); 59 int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov, 63 int ossl_method_store_remove(OSSL_METHOD_STORE *store, int nid, 65 void ossl_method_store_do_all(OSSL_METHOD_STORE *store, 68 int ossl_method_store_fetch(OSSL_METHOD_STORE *store, 71 int ossl_method_store_remove_all_provided(OSSL_METHOD_STORE *store, 79 int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov, 81 int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov, [all …]
|