Home
last modified time | relevance | path

Searched refs:store (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/freebsd/contrib/kyua/store/
H A DMakefile.am.inc35 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 Dread_transaction_test.cpp61 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 Ddbtypes_test.cpp98 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 Dwrite_transaction_test.cpp75 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 Dwrite_backend_test.cpp53 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 Dread_transaction.cpp133 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 Dread_backend_test.cpp58 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 Dmetadata_test.cpp60 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 Dwrite_backend.cpp63 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 Ddbtypes.cpp49 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 Dtransaction_test.cpp69 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 Dread_backend.cpp57 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 Dmigrate.cpp78 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 Dproperty.c107 static void ossl_method_cache_flush_alg(OSSL_METHOD_STORE *store,
109 static void ossl_method_cache_flush(OSSL_METHOD_STORE *store, int nid);
234 OSSL_METHOD_STORE *store = arg; in alg_cleanup() local
242 if (store != NULL) in alg_cleanup()
243 ossl_sa_ALGORITHM_set(store->algs, idx, NULL); in alg_cleanup()
267 void ossl_method_store_free(OSSL_METHOD_STORE *store) in ossl_method_store_free() argument
269 if (store != NULL) { in ossl_method_store_free()
270 if (store->algs != NULL) in ossl_method_store_free()
271 ossl_sa_ALGORITHM_doall_arg(store->algs, &alg_cleanup, store); in ossl_method_store_free()
272 ossl_sa_ALGORITHM_free(store->algs); in ossl_method_store_free()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dprovider_core.c21 #include "crypto/store.h" /* ossl_store_loader_store_cache_flush */
52 * provider store. Each provider that exists in the parent provider store, has
53 * an associated child provider in the child library context's provider store.
84 * The store default_path_lock: Used to control access to the provider store's
87 * The store lock: Used to control the stack of provider's held within the
88 * provider store, as well as the stack of registered child provider callbacks.
102 * provider store lock, the provider flag_lock and the provider refcnt_lock.
105 * 1) provider store loc
160 struct provider_store_st *store; /* The store this instance belongs to */ global() member
288 struct provider_store_st *store = vstore; provider_store_free() local
310 struct provider_store_st *store = OPENSSL_zalloc(sizeof(*store)); provider_store_new() local
337 struct provider_store_st *store = NULL; get_provider_store() local
348 struct provider_store_st *store; ossl_provider_disable_fallback_loading() local
365 struct provider_store_st *store = get_provider_store(libctx); ossl_provider_info_add_to_store() local
413 struct provider_store_st *store = NULL; ossl_provider_find() local
534 struct provider_store_st *store = NULL; ossl_provider_new() local
592 struct provider_store_st *store = prov->store; create_provider_children() local
613 struct provider_store_st *store; ossl_provider_add_to_store() local
804 struct provider_store_st *store; OSSL_PROVIDER_set_default_search_path() local
1046 struct provider_store_st *store; provider_deactivate() local
1120 struct provider_store_st *store; provider_activate() local
1175 struct provider_store_st *store; provider_flush_store_cache() local
1207 struct provider_store_st *store; provider_remove_store_methods() local
1285 provider_activate_fallbacks(struct provider_store_st * store) provider_activate_fallbacks() argument
1358 struct provider_store_st *store = get_provider_store(ctx); ossl_provider_doall_activated() local
1475 struct provider_store_st *store = get_provider_store(libctx); OSSL_PROVIDER_available() local
1689 struct provider_store_st *store = NULL; ossl_provider_default_props_update() local
1729 struct provider_store_st *store = NULL; ossl_provider_register_child_cb() local
1804 struct provider_store_st *store = NULL; ossl_provider_deregister_child_cb() local
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h74 virtual SVal getBinding(Store store, Loc loc, QualType T = QualType()) = 0;
86 virtual std::optional<SVal> getDefaultBinding(Store store,
108 virtual StoreRef Bind(Store store, Loc loc, SVal val) = 0;
113 virtual StoreRef BindDefaultInitial(Store store, const MemRegion *R,
118 virtual StoreRef BindDefaultZero(Store store, const MemRegion *R) = 0;
188 virtual StoreRef removeDeadBindings(Store store, const StackFrameContext *LCtx,
191 virtual bool includedInBindings(Store store,
196 virtual void incrementReferenceCount(Store store) {} in incrementReferenceCount() argument
201 virtual void decrementReferenceCount(Store store) {} in decrementReferenceCount() argument
229 Store store, ArrayRef<SVal> Values, const Expr *Ex, unsigned Count,
[all …]
/freebsd/crypto/openssl/test/
H A Dproperty_test.c53 OSSL_METHOD_STORE *store; in test_property_string() local
57 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_string()
76 ossl_method_store_free(store); in test_property_string()
123 OSSL_METHOD_STORE *store; in test_property_parse() local
127 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_parse()
136 ossl_method_store_free(store); in test_property_parse()
142 OSSL_METHOD_STORE *store; in test_property_query_value_create() local
147 if (TEST_ptr(store = ossl_method_store_new(NULL)) in test_property_query_value_create()
158 ossl_method_store_free(store); in test_property_query_value_create()
190 OSSL_METHOD_STORE *store; in test_property_parse_error() local
[all …]
/freebsd/crypto/openssl/crypto/store/
H A Dstore_meth.c117 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 …]
/freebsd/crypto/openssl/crypto/evp/
H A Devp_fetch.c74 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 …]
/freebsd/sys/tools/syscalls/scripts/
H A Dsystrace_args.lua53 gen:store(string.format([[
61 gen:store(string.format([[
78 gen:store(string.format([[
83 gen:store(string.format([[
101 gen:store([[
113 gen:store(
126 gen:store(string.format([[
137 gen:store([[
188 gen:store([[
196 gen:store("#undef _P_\n\n", 1)
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_lu.c313 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 …]
/freebsd/crypto/openssl/include/internal/
H A Dproperty.h54 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 …]
/freebsd/usr.bin/printf/
H A Dprintf.c462 char *save, *store, c; in escape() local
465 for (save = store = fmt; ((c = *fmt) != 0); ++fmt, ++store) { in escape()
467 *store = c; in escape()
472 *store = '\\'; in escape()
473 *++store = '\0'; in escape()
474 *len = store - save; in escape()
478 *store = *fmt; in escape()
481 *store = '\a'; in escape()
484 *store = '\b'; in escape()
488 *store = '\0'; in escape()
[all …]
/freebsd/crypto/openssl/doc/internal/man3/
H A DOSSL_METHOD_STORE.pod11 - implementation method store and query
20 void ossl_method_store_free(OSSL_METHOD_STORE *store);
23 int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov,
27 int ossl_method_store_remove(OSSL_METHOD_STORE *store,
29 int ossl_method_store_fetch(OSSL_METHOD_STORE *store,
32 int ossl_method_store_remove_all_provided(OSSL_METHOD_STORE *store,
35 int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
37 int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
41 void ossl_method_store_cache_flush_all(OSSL_METHOD_STORE *store);
60 ossl_method_store_init() initialises the method store subsystem in the scope of
[all …]
/freebsd/bin/uuidgen/
H A Duuidgen.c72 uuidgen_v4(struct uuid *store, int count) in uuidgen_v4() argument
82 arc4random_buf(store, size); in uuidgen_v4()
83 item = store; in uuidgen_v4()
107 uuid_t *store, *uuid; in main() local
159 store = (uuid_t *)malloc(sizeof(uuid_t) * count); in main()
160 if (store == NULL) in main()
166 if (uuidgen(store, count) != 0) in main()
169 if (uuidgen_v4(store, count) != 0) in main()
175 uuid = store; in main()
189 uuid = store; in main()
[all …]

12345678910>>...36