| /freebsd/contrib/expat/tests/ |
| H A D | structdata.c | 73 StructData_Init(StructData *storage) { in StructData_Init() argument 74 assert(storage != NULL); in StructData_Init() 75 storage->count = 0; in StructData_Init() 76 storage->max_count = 0; in StructData_Init() 77 storage->entries = NULL; in StructData_Init() 81 StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, in StructData_AddItem() argument 85 assert(storage != NULL); in StructData_AddItem() 87 if (storage->count == storage->max_count) { in StructData_AddItem() 90 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem() 91 new_entries = realloc(storage->entries, in StructData_AddItem() [all …]
|
| H A D | chardata.c | 61 CharData_Init(CharData *storage) { in CharData_Init() argument 62 assert(storage != NULL); in CharData_Init() 63 storage->count = -1; in CharData_Init() 67 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) { in CharData_AppendXMLChars() argument 70 assert(storage != NULL); in CharData_AppendXMLChars() 72 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); in CharData_AppendXMLChars() 73 if (storage->count < 0) in CharData_AppendXMLChars() 74 storage->count = 0; in CharData_AppendXMLChars() 77 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars() 78 len = (maxchars - storage->count); in CharData_AppendXMLChars() [all …]
|
| H A D | basic_tests.c | 421 CharData storage; in START_TEST() local 423 CharData_Init(&storage); in START_TEST() 424 XML_SetUserData(g_parser, &storage); in START_TEST() 429 CharData_CheckXMLChars(&storage, expected); in START_TEST() 681 StructData storage; in START_TEST() local 683 StructData_Init(&storage); in START_TEST() 684 XML_SetUserData(g_parser, &storage); in START_TEST() 691 StructData_CheckItems(&storage, expected, expected_count); in START_TEST() 692 StructData_Dispose(&storage); in START_TEST() 822 CharData storage; in START_TEST() local [all …]
|
| H A D | common.c | 237 CharData storage; in _run_character_check() local 239 CharData_Init(&storage); in _run_character_check() 240 XML_SetUserData(g_parser, &storage); in _run_character_check() 245 CharData_CheckXMLChars(&storage, expected); in _run_character_check() 251 CharData storage; in _run_attribute_check() local 253 CharData_Init(&storage); in _run_attribute_check() 254 XML_SetUserData(g_parser, &storage); in _run_attribute_check() 259 CharData_CheckXMLChars(&storage, expected); in _run_attribute_check() 265 CharData *const storage = malloc(sizeof(CharData)); in _run_ext_character_check() local 267 CharData_Init(storage); in _run_ext_character_check() [all …]
|
| H A D | handlers.c | 85 CharData *storage = (CharData *)userData; in end_element_event_handler() local 86 CharData_AppendXMLChars(storage, XCS("/"), 1); in end_element_event_handler() 87 CharData_AppendXMLChars(storage, name, -1); in end_element_event_handler() 93 StructData *storage = (StructData *)userData; in start_element_event_handler2() local 95 StructData_AddItem(storage, name, (int)XML_GetCurrentColumnNumber(g_parser), in start_element_event_handler2() 101 StructData *storage = (StructData *)userData; in end_element_event_handler2() local 102 StructData_AddItem(storage, name, (int)XML_GetCurrentColumnNumber(g_parser), in end_element_event_handler2() 227 CharData *storage = (CharData *)userData; in overwrite_start_checker() local 228 CharData_AppendXMLChars(storage, XCS("start "), 6); in overwrite_start_checker() 229 CharData_AppendXMLChars(storage, name, -1); in overwrite_start_checker() [all …]
|
| H A D | ns_tests.c | 123 CharData storage; in run_ns_tagname_overwrite_test() local 124 CharData_Init(&storage); in run_ns_tagname_overwrite_test() 125 XML_SetUserData(g_parser, &storage); in run_ns_tagname_overwrite_test() 131 CharData_CheckXMLChars(&storage, result); in run_ns_tagname_overwrite_test() 598 CharData storage; in START_TEST() local 600 CharData_Init(&storage); in START_TEST() 602 XML_SetUserData(g_parser, &storage); in START_TEST() 606 CharData_CheckXMLChars(&storage, expected); in START_TEST() 621 CharData storage; in START_TEST() local 623 CharData_Init(&storage); in START_TEST() [all …]
|
| H A D | structdata.h | 55 void StructData_Init(StructData *storage); 57 void StructData_AddItem(StructData *storage, const XML_Char *s, int data0, 60 void StructData_CheckItems(StructData *storage, const StructDataEntry *expected, 63 void StructData_Dispose(StructData *storage);
|
| H A D | chardata.h | 51 void CharData_Init(CharData *storage); 53 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len); 55 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
|
| H A D | misc_tests.c | 278 CharData storage; in START_TEST() local 284 CharData_Init(&storage); in START_TEST() 285 XML_SetUserData(g_parser, &storage); in START_TEST() 290 CharData_CheckXMLChars(&storage, expected); in START_TEST() 505 CharData storage; in START_TEST() local 506 CharData_Init(&storage); in START_TEST() 509 XML_SetUserData(parser, &storage); in START_TEST() 523 CharData_CheckXMLChars(&storage, in START_TEST() 590 CharData_AppendXMLChars(test_data->storage, s, len); in accumulate_characters_ext_handler() 596 CharData storage; in START_TEST() local [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/CPP/ |
| H A D | optional.h | 75 OptionalStorage<T> storage; 81 LIBC_INLINE constexpr optional(const T &t) : storage(in_place, t) { 82 storage.in_use = true; 86 LIBC_INLINE constexpr optional(T &&t) : storage(in_place, move(t)) { 87 storage.in_use = true; 93 : storage(in_place, forward<ArgTypes>(Args)...) { 94 storage.in_use = true; 98 storage = move(t); 104 storage = t; 109 LIBC_INLINE constexpr void reset() { storage.reset(); } [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | ex_data.c | 223 EX_CALLBACK **storage = NULL; in ossl_crypto_new_ex_data_ex() local 240 storage = stack; in ossl_crypto_new_ex_data_ex() 242 storage = OPENSSL_malloc(sizeof(*storage) * mx); in ossl_crypto_new_ex_data_ex() 243 if (storage != NULL) in ossl_crypto_new_ex_data_ex() 245 storage[i] = sk_EX_CALLBACK_value(ip->meth, i); in ossl_crypto_new_ex_data_ex() 249 if (mx > 0 && storage == NULL) in ossl_crypto_new_ex_data_ex() 252 if (storage[i] != NULL && storage[i]->new_func != NULL) { in ossl_crypto_new_ex_data_ex() 254 storage[i]->new_func(obj, ptr, ad, i, in ossl_crypto_new_ex_data_ex() 255 storage[i]->argl, storage[i]->argp); in ossl_crypto_new_ex_data_ex() 258 if (storage != stack) in ossl_crypto_new_ex_data_ex() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | IRSymtab.cpp | 91 std::vector<storage::Comdat> Comdats; 92 std::vector<storage::Module> Mods; 93 std::vector<storage::Symbol> Syms; 94 std::vector<storage::Uncommon> Uncommons; 99 std::vector<storage::Str> DependentLibraries; 101 void setStr(storage::Str &S, StringRef Value) { in setStr() 107 void writeRange(storage::Range<T> &R, const std::vector<T> &Objs) { in writeRange() 148 storage::Module Mod; in addModule() 172 storage::Str Specifier; in addModule() 207 storage::Comdat Comdat; in getComdatIndex() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | IRSymtab.h | 47 namespace storage { 195 using S = storage::Symbol; 242 ArrayRef<storage::Module> Modules; 243 ArrayRef<storage::Comdat> Comdats; 244 ArrayRef<storage::Symbol> Symbols; 245 ArrayRef<storage::Uncommon> Uncommons; 246 ArrayRef<storage::Str> DependentLibraries; 248 StringRef str(storage::Str S) const { return S.get(Strtab); } in str() 250 template <typename T> ArrayRef<T> range(storage::Range<T> R) const { in range() 254 const storage::Header &header() const { in header() [all …]
|
| /freebsd/contrib/llvm-project/libc/shared/ |
| H A D | rpc_util.h | 104 OptionalStorage<T> storage; 110 RPC_ATTRS constexpr optional(const T &t) : storage(in_place, t) { 111 storage.in_use = true; 115 RPC_ATTRS constexpr optional(T &&t) : storage(in_place, move(t)) { 116 storage.in_use = true; 121 storage = move(t); 127 storage = t; 132 RPC_ATTRS constexpr void reset() { storage.reset(); } 134 RPC_ATTRS constexpr const T &value() const & { return storage.stored_value; } 136 RPC_ATTRS constexpr T &value() & { return storage.stored_value; } [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPT.cpp | 182 Storage &storage = GetUpdatedStorage(); in Decode() local 183 if (storage.multicpu_decoder) in Decode() 184 return storage.multicpu_decoder->Decode(thread); in Decode() 186 auto it = storage.thread_decoders.find(thread.GetID()); in Decode() 187 if (it == storage.thread_decoders.end()) in Decode() 193 Storage &storage = GetUpdatedStorage(); in FindBeginningOfTimeNanos() local 194 if (storage.beginning_of_time_nanos_calculated) in FindBeginningOfTimeNanos() 195 return storage.beginning_of_time_nanos; in FindBeginningOfTimeNanos() 196 storage.beginning_of_time_nanos_calculated = true; in FindBeginningOfTimeNanos() 198 if (!storage in FindBeginningOfTimeNanos() 244 Storage &storage = GetUpdatedStorage(); DumpTraceInfo() local 355 Storage &storage = GetUpdatedStorage(); DumpTraceInfoAsJson() local 598 Storage &storage = GetUpdatedStorage(); IsTraced() local [all...] |
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | t_k5buf.c | 60 char storage[1024]; in test_basic() local 62 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_basic() 138 char storage[10]; in test_overflow() local 141 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_overflow() 148 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_overflow() 159 char storage[1]; in test_error() local 162 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_error() 211 char storage[10], data[1024]; in test_fmt() local 219 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_fmt()
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | Trace.cpp | 189 Storage &storage = GetUpdatedStorage(); in GetLiveThreadBinaryDataSize() local 190 return Lookup(storage.live_thread_data, tid, ConstString(kind)); in GetLiveThreadBinaryDataSize() 195 Storage &storage = GetUpdatedStorage(); in GetLiveCpuBinaryDataSize() local 196 return Lookup(storage.live_cpu_data_sizes, cpu_id, ConstString(kind)); in GetLiveCpuBinaryDataSize() 201 Storage &storage = GetUpdatedStorage(); in GetLiveProcessBinaryDataSize() local 202 return Lookup(storage.live_process_data, ConstString(kind)); in GetLiveProcessBinaryDataSize() 376 Storage &storage = GetUpdatedStorage(); in GetPostMortemThreadDataFile() local 378 Lookup(storage.postmortem_thread_data, tid, ConstString(kind))) in GetPostMortemThreadDataFile() 389 Storage &storage = GetUpdatedStorage(); in GetPostMortemCpuDataFile() local 391 Lookup(storage.postmortem_cpu_data, cpu_id, ConstString(kind))) in GetPostMortemCpuDataFile() [all …]
|
| /freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
| H A D | vchiq_util.c | 53 queue->storage = kzalloc(size * sizeof(VCHIQ_HEADER_T *), GFP_KERNEL); in vchiu_queue_init() 54 if (queue->storage == NULL) { in vchiu_queue_init() 63 if (queue->storage != NULL) in vchiu_queue_delete() 64 kfree(queue->storage); in vchiu_queue_delete() 94 queue->storage[queue->write & (queue->size - 1)] = header; in vchiu_queue_push() 123 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek() 142 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_win_immortalize.h | 57 alignas(Ty) static unsigned char storage[sizeof(Ty)]; in immortalize() local 58 InitOnceExecuteOnce(&flag, immortalize_impl<Ty>, &storage, nullptr); in immortalize() 59 return reinterpret_cast<Ty&>(storage); in immortalize() 66 alignas(Ty) static unsigned char storage[sizeof(Ty)]; in immortalize() local 67 InitOnceExecuteOnce(&flag, immortalize_impl<Ty, Arg>, &storage, &arg); in immortalize() 68 return reinterpret_cast<Ty&>(storage); in immortalize()
|
| H A D | sanitizer_ring_buffer.h | 81 // A ring buffer with externally provided storage that encodes its state in 8 82 // bytes. Has significant constraints on size and alignment of storage. 98 void Init(void *storage, uptr size) { in Init() 105 uptr st = (uptr)storage; in Init() 116 CompactRingBuffer(void *storage, uptr size) { in CompactRingBuffer() 117 Init(storage, size); 121 CompactRingBuffer(const CompactRingBuffer &other, void *storage) { in CompactRingBuffer() 123 internal_memcpy(storage, other.StartOfStorage(), size); in CompactRingBuffer() 124 Init(storage, size); in CompactRingBuffer() 126 SetNext((const T *)storage in CompactRingBuffer() 96 Init(void * storage,uptr size) Init() argument 114 CompactRingBuffer(void * storage,uptr size) CompactRingBuffer() argument 119 CompactRingBuffer(const CompactRingBuffer & other,void * storage) CompactRingBuffer() argument [all...] |
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | gic_pwd.c | 60 ret = alloc_data(&gp->storage, strlen(rpass)); in krb5_get_as_key_password() 63 memcpy(gp->storage.data, rpass, strlen(rpass)); in krb5_get_as_key_password() 64 gp->password = &gp->storage; in krb5_get_as_key_password() 92 ret = krb5int_copy_data_contents(context, &pw, &gp->storage); in krb5_get_as_key_password() 96 gp->password = &gp->storage; in krb5_get_as_key_password() 128 zapfree(ctx->gakpw.storage.data, ctx->gakpw.storage.length); in krb5_init_creds_set_password() 129 ctx->gakpw.storage = string2data(s); in krb5_init_creds_set_password() 130 ctx->gakpw.password = &ctx->gakpw.storage; in krb5_init_creds_set_password() 342 zapfree(gakpw.storage.data, gakpw.storage.length); in krb5_get_init_creds_password() 407 zapfree(gakpw.storage.data, gakpw.storage.length); in krb5_get_in_tkt_with_password()
|
| /freebsd/sys/net/route/ |
| H A D | nhgrp_ctl.c | 122 wn[0].storage = wn[0].weight; in sort_weightened_nhops_weights() 126 for (j = i - 1; j >= 0 && wn[j].storage > weight; j--) in sort_weightened_nhops_weights() 127 wn[j + 1].storage = wn[j].storage; in sort_weightened_nhops_weights() 128 wn[j + 1].storage = weight; in sort_weightened_nhops_weights() 159 xmin = wn[x].storage; in calc_min_mpath_slots_fast() 168 total += wn[i].storage; in calc_min_mpath_slots_fast() 169 if ((wn[i].storage != last) && in calc_min_mpath_slots_fast() 170 ((wn[i].storage - last < xmin) || xmin == 0)) { in calc_min_mpath_slots_fast() 171 xmin = wn[i].storage - last; in calc_min_mpath_slots_fast() 173 last = wn[i].storage; in calc_min_mpath_slots_fast() [all …]
|
| /freebsd/contrib/unbound/ |
| H A D | Makefile.in | 131 util/rtt.c util/siphash.c util/edns.c util/storage/dnstree.c util/storage/lookup3.c \ 132 util/storage/lruhash.c util/storage/slabhash.c util/tcp_conn_limit.c \ 483 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 728 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 730 $(srcdir)/util/data/msgreply.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h \ 735 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 738 …$(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/slabhash.… 739 …$(srcdir)/util/storage/lookup3.h $(srcdir)/util/data/dname.h $(srcdir)/util/net_help.h $(srcdir)/u… 743 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 750 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/m… [all …]
|
| /freebsd/crypto/openssl/crypto/bn/ |
| H A D | rsaz_exp_x2.c | 232 BN_ULONG *storage = NULL; 248 storage = (BN_ULONG *)OPENSSL_malloc(storage_len_bytes); 249 if (storage == NULL) 251 storage_aligned = (BN_ULONG *)ALIGN_OF(storage, 64); 315 bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size); 316 bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size); 319 if (storage != NULL) { 320 OPENSSL_cleanse(storage, storage_len_bytes); 321 OPENSSL_free(storage); 370 BN_ULONG *storage = NULL; [all …]
|
| H A D | rsaz_exp.c | 55 unsigned char storage[320 * 3 + 32 * 9 * 16 + 64]; /* 5.5KB */ 56 unsigned char *p_str = storage + (64 - ((size_t)storage % 64)); 236 OPENSSL_cleanse(storage, sizeof(storage)); 259 unsigned char storage[16 * 8 * 8 + 64 * 2 + 64]; /* 1.2KB */ 260 unsigned char *table = storage + (64 - ((size_t)storage % 64)); 312 OPENSSL_cleanse(storage, sizeof(storage));
|