/freebsd/contrib/expat/tests/ |
H A D | structdata.c | 72 StructData_Init(StructData *storage) { in StructData_Init() argument 73 assert(storage != NULL); in StructData_Init() 74 storage->count = 0; in StructData_Init() 75 storage->max_count = 0; in StructData_Init() 76 storage->entries = NULL; in StructData_Init() 80 StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, in StructData_AddItem() argument 84 assert(storage != NULL); in StructData_AddItem() 86 if (storage->count == storage->max_count) { in StructData_AddItem() 89 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem() 91 storage->entries, storage->max_count * sizeof(StructDataEntry)); 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 | 394 CharData storage; in START_TEST() local 396 CharData_Init(&storage); in START_TEST() 397 XML_SetUserData(g_parser, &storage); in START_TEST() 402 CharData_CheckXMLChars(&storage, expected); in START_TEST() 654 StructData storage; in START_TEST() local 656 StructData_Init(&storage); in START_TEST() 657 XML_SetUserData(g_parser, &storage); in START_TEST() 664 StructData_CheckItems(&storage, expected, expected_count); in START_TEST() 665 StructData_Dispose(&storage); in START_TEST() 795 CharData storage; in START_TEST() local 1467 CharData storage; START_TEST() local 1509 CharData storage; START_TEST() local 1536 CharData storage; START_TEST() local 1606 CharData storage; START_TEST() local 1650 CharData storage; START_TEST() local 1893 struct handler_record_list storage; START_TEST() local 1923 struct handler_record_list storage; START_TEST() local 1951 struct handler_record_list storage; START_TEST() local 1987 struct handler_record_list storage; START_TEST() local 2024 struct handler_record_list storage; START_TEST() local 2060 struct handler_record_list storage; START_TEST() local 2433 CharData storage; START_TEST() local 3093 CharData storage; START_TEST() local 3153 CharData storage; START_TEST() local 3180 CharData storage; START_TEST() local 3207 CharData storage; START_TEST() local 3497 CharData storage; START_TEST() local 3735 CharData storage; START_TEST() local 3848 CharData storage; START_TEST() local 4074 CharData storage; START_TEST() local 4090 CharData storage; START_TEST() local 4106 CharData storage; START_TEST() local 4121 CharData storage; START_TEST() local 4136 CharData storage; START_TEST() local 4162 CharData storage; START_TEST() local 4188 CharData storage; START_TEST() local 4208 CharData storage; START_TEST() local 4227 CharData storage; START_TEST() local 4315 CharData storage; START_TEST() local 4337 CharData storage; START_TEST() local 4450 CharData storage; START_TEST() local 4481 CharData storage; START_TEST() local 4516 CharData storage; START_TEST() local 4547 CharData storage; START_TEST() local 4576 CharData storage; START_TEST() local 4605 CharData storage; START_TEST() local 4656 CharData storage; START_TEST() local 4806 CharData storage; START_TEST() local 4827 CharData storage; START_TEST() local 4847 CharData storage; START_TEST() local 4889 CharData storage; START_TEST() local 5033 CharData storage; START_TEST() local 5055 CharData storage; START_TEST() local 5084 CharData storage; START_TEST() local 5116 CharData storage; START_TEST() local 5257 CharData storage; START_TEST() local 5281 CharData storage; START_TEST() local 5405 CharData storage; START_TEST() local 5602 CharData storage; START_TEST() local 5724 CharData storage; START_TEST() local 5858 CharData storage; START_TEST() local [all...] |
H A D | common.c | 228 CharData storage; in accumulate_characters() 230 CharData_Init(&storage); in accumulate_characters() 231 XML_SetUserData(g_parser, &storage); 236 CharData_CheckXMLChars(&storage, expected); in accumulate_attribute() 242 CharData storage; in accumulate_attribute() 244 CharData_Init(&storage); in accumulate_attribute() 245 XML_SetUserData(g_parser, &storage); in accumulate_attribute() 250 CharData_CheckXMLChars(&storage, expected); in _run_character_check() 256 CharData *const storage = (CharData *)malloc(sizeof(CharData)); in _run_character_check() 258 CharData_Init(storage); in _run_character_check() 235 CharData *storage = (CharData *)userData; accumulate_attribute() local 251 CharData storage; _run_character_check() local 265 CharData storage; _run_attribute_check() local 285 CharData *const storage = (CharData *)malloc(sizeof(CharData)); _run_ext_character_check() local [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 | handlers.c | 82 CharData *storage = (CharData *)userData; in end_element_event_handler() local 83 CharData_AppendXMLChars(storage, XCS("/"), 1); in end_element_event_handler() 84 CharData_AppendXMLChars(storage, name, -1); in end_element_event_handler() 90 StructData *storage = (StructData *)userData; in start_element_event_handler2() local 92 StructData_AddItem(storage, name, XML_GetCurrentColumnNumber(g_parser), in start_element_event_handler2() 98 StructData *storage = (StructData *)userData; in end_element_event_handler2() local 99 StructData_AddItem(storage, name, XML_GetCurrentColumnNumber(g_parser), in end_element_event_handler2() 221 CharData *storage = (CharData *)userData; in overwrite_start_checker() 222 CharData_AppendXMLChars(storage, XCS("start "), 6); in overwrite_start_checker() 223 CharData_AppendXMLChars(storage, nam in overwrite_start_checker() 219 CharData *storage = (CharData *)userData; overwrite_start_checker() local 232 CharData *storage = (CharData *)userData; overwrite_end_checker() local 763 CharData storage; external_entity_good_cdata_ascii() local 1711 CharData *storage = (CharData *)userData; record_element_end_handler() local 1718 _handler_record_get(const struct handler_record_list * storage,int index,const char * file,int line) _handler_record_get() argument 1846 CharData *storage = (CharData *)userData; accumulate_pi_characters() local 1856 CharData *storage = (CharData *)userData; accumulate_comment() local 1867 CharData *storage = (CharData *)userData; accumulate_entity_decl() local 1885 CharData *const storage = (CharData *)userData; accumulate_char_data() local 1892 CharData *const storage = (CharData *)userData; accumulate_start_element() local [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 | 272 CharData storage; in START_TEST() local 278 CharData_Init(&storage); in START_TEST() 279 XML_SetUserData(g_parser, &storage); in START_TEST() 284 CharData_CheckXMLChars(&storage, expected); in START_TEST() 442 CharData storage; in START_TEST() 443 CharData_Init(&storage); in START_TEST() 446 XML_SetUserData(parser, &storage); in START_TEST() 460 CharData_CheckXMLChars(&storage, in START_TEST() 441 CharData storage; START_TEST() local
|
/freebsd/crypto/openssl/crypto/ |
H A D | ex_data.c | 218 EX_CALLBACK **storage = NULL; in ossl_crypto_new_ex_data_ex() local 235 storage = stack; in ossl_crypto_new_ex_data_ex() 237 storage = OPENSSL_malloc(sizeof(*storage) * mx); in ossl_crypto_new_ex_data_ex() 238 if (storage != NULL) in ossl_crypto_new_ex_data_ex() 240 storage[i] = sk_EX_CALLBACK_value(ip->meth, i); in ossl_crypto_new_ex_data_ex() 244 if (mx > 0 && storage == NULL) { in ossl_crypto_new_ex_data_ex() 249 if (storage[i] != NULL && storage[i]->new_func != NULL) { in ossl_crypto_new_ex_data_ex() 251 storage[i]->new_func(obj, ptr, ad, i, in ossl_crypto_new_ex_data_ex() 252 storage[i]->argl, storage[i]->argp); in ossl_crypto_new_ex_data_ex() 255 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 | 46 namespace storage { 192 using S = storage::Symbol; 239 ArrayRef<storage::Module> Modules; 240 ArrayRef<storage::Comdat> Comdats; 241 ArrayRef<storage::Symbol> Symbols; 242 ArrayRef<storage::Uncommon> Uncommons; 243 ArrayRef<storage::Str> DependentLibraries; 245 StringRef str(storage::Str S) const { return S.get(Strtab); } in str() 247 template <typename T> ArrayRef<T> range(storage::Range<T> R) const { in range() 251 const storage::Header &header() const { in header() [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/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_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/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 \ 479 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 719 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 721 $(srcdir)/util/data/msgreply.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h \ 726 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 729 $(srcdir)/util/storage/slabhash.h $(srcdir)/util/storage/lookup3.h $(srcdir)/util/data/dname.h \ 734 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 740 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/m… 741 …$(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/storage/lookup3.h $(srcdir)/sldns/… [all …]
|
/freebsd/sys/net/route/ |
H A D | nhgrp_ctl.c | 123 wn[0].storage = wn[0].weight; in sort_weightened_nhops_weights() 127 for (j = i - 1; j >= 0 && wn[j].storage > weight; j--) in sort_weightened_nhops_weights() 128 wn[j + 1].storage = wn[j].storage; in sort_weightened_nhops_weights() 129 wn[j + 1].storage = weight; in sort_weightened_nhops_weights() 157 xmin = wn[0].storage; in calc_min_mpath_slots_fast() 159 total += wn[i].storage; in calc_min_mpath_slots_fast() 160 if ((wn[i].storage != last) && in calc_min_mpath_slots_fast() 161 ((wn[i].storage - last < xmin) || xmin == 0)) { in calc_min_mpath_slots_fast() 162 xmin = wn[i].storage - last; in calc_min_mpath_slots_fast() 164 last = wn[i].storage; in calc_min_mpath_slots_fast() [all …]
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | rsaz_exp.c | 62 unsigned char storage[320 * 3 + 32 * 9 * 16 + 64]; /* 5.5KB */ 63 unsigned char *p_str = storage + (64 - ((size_t)storage % 64)); 243 OPENSSL_cleanse(storage, sizeof(storage)); 266 unsigned char storage[16 * 8 * 8 + 64 * 2 + 64]; /* 1.2KB */ 267 unsigned char *table = storage + (64 - ((size_t)storage % 64)); 319 OPENSSL_cleanse(storage, sizeof(storage));
|
H A D | rsaz_exp_x2.c | 141 BN_ULONG *storage = NULL; 163 storage = (BN_ULONG *)OPENSSL_malloc(storage_len_bytes + 64); 164 if (storage == NULL) 166 storage_aligned = (BN_ULONG *)ALIGN_OF(storage, 64); 226 bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size); 227 bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size); 231 if (storage != NULL) { 232 OPENSSL_cleanse(storage, storage_len_bytes); 233 OPENSSL_free(storage);
|
/freebsd/contrib/wpa/src/utils/ |
H A D | trace.c | 100 long storage, symcount; in read_syms() local 111 storage = bfd_get_symtab_upper_bound(abfd); in read_syms() 112 if (storage == 0) { in read_syms() 113 storage = bfd_get_dynamic_symtab_upper_bound(abfd); in read_syms() 116 if (storage < 0) { in read_syms() 121 syms = malloc(storage); in read_syms() 124 "(%ld bytes)", storage); in read_syms()
|
/freebsd/sys/ddb/ |
H A D | db_break.c | 206 #define BKPT_WRITE(addr, storage) \ 208 *storage = db_get_value(addr, BKPT_SIZE, false); \ in db_list_breakpoints() 209 db_put_value(addr, BKPT_SIZE, BKPT_SET(*storage)); \ in db_list_breakpoints() 214 #define BKPT_CLEAR(addr, storage) \ in db_list_breakpoints() 215 db_put_value(addr, BKPT_SIZE, *storage) in db_list_breakpoints() 160 BKPT_WRITE(addr,storage) global() argument 168 BKPT_CLEAR(addr,storage) global() argument
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | ole2compounddocs | 5 # storage (https://en.wikipedia.org/wiki/Compound_File_Binary_Format) 56 # jump to one block (4096 bytes per block) before root storage block 61 # jump to one block (512 bytes per block) before root storage block 69 # type of the entry; 5~Root storage 73 # the DirIDs of the child nodes. Should both be -1 in the root storage entry 105 #!:mime application/x-ole-storage 161 #!:mime application/x-ole-storage 169 #!:mime application/x-ole-storage 176 #!:mime application/x-ole-storage 184 #!:mime application/x-ole-storage [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_thread_list.h | 78 HwasanThreadList(uptr storage, uptr size) in HwasanThreadList() argument 79 : free_space_(storage), free_space_end_(storage + size) { in HwasanThreadList() 225 void InitThreadList(uptr storage, uptr size);
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PEM_bytes_read_bio.pod | 36 non-NULL. The caller must free the storage pointed to by I<*pnm>. 39 I<*pdata> with length I<*plen>. The caller must free the storage pointed 43 memory from the secure heap for its temporary buffers and the storage 45 OPENSSL_secure_free() to free that storage. 50 storage allocated within the PEM processing stack. The BIO stack from
|