| /freebsd-14-stable/contrib/mandoc/ |
| HD | dba_array.c | 46 struct dba_array *array; in dba_array_new() local 49 array = mandoc_malloc(sizeof(*array)); in dba_array_new() 50 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep)); in dba_array_new() 51 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em)); in dba_array_new() 52 array->ea = ea; in dba_array_new() 53 array->eu = 0; in dba_array_new() 54 array->ed = 0; in dba_array_new() 55 array->ec = 0; in dba_array_new() 56 array->flags = flags; in dba_array_new() 57 array->pos = 0; in dba_array_new() [all …]
|
| /freebsd-14-stable/sys/contrib/ck/src/ |
| HD | ck_array.c | 50 ck_array_init(struct ck_array *array, unsigned int mode, struct ck_malloc *allocator, unsigned int … in ck_array_init() argument 66 array->n_entries = 0; in ck_array_init() 67 array->allocator = allocator; in ck_array_init() 68 array->active = active; in ck_array_init() 69 array->transaction = NULL; in ck_array_init() 74 ck_array_put(struct ck_array *array, void *value) in ck_array_put() argument 83 if (array->transaction == NULL) { in ck_array_put() 84 target = array->active; in ck_array_put() 86 if (array->n_entries == target->length) { in ck_array_put() 89 target = array->allocator->realloc(target, in ck_array_put() [all …]
|
| /freebsd-14-stable/crypto/heimdal/base/ |
| HD | array.c | 50 heim_array_t array = ptr; in array_dealloc() local 52 for (n = 0; n < array->len; n++) in array_dealloc() 53 heim_release(array->val[n]); in array_dealloc() 54 free(array->val); in array_dealloc() 76 heim_array_t array; in heim_array_create() local 78 array = _heim_alloc_object(&array_object, sizeof(*array)); in heim_array_create() 79 if (array == NULL) in heim_array_create() 82 array->val = NULL; in heim_array_create() 83 array->len = 0; in heim_array_create() 85 return array; in heim_array_create() [all …]
|
| /freebsd-14-stable/contrib/ldns/ |
| HD | radix.c | 56 static int ldns_radix_str_create(ldns_radix_array_t* array, uint8_t* key, 61 static int ldns_radix_array_split(ldns_radix_array_t* array, uint8_t* key, 104 node->array = NULL; in ldns_radix_new_node() 205 LDNS_FREE(prefix->array); in ldns_radix_insert() 212 prefix->array[0].edge = add; in ldns_radix_insert() 216 len, &prefix->array[0].str, in ldns_radix_insert() 217 &prefix->array[0].len)) { in ldns_radix_insert() 219 LDNS_FREE(prefix->array); in ldns_radix_insert() 259 &prefix->array[byte], key, pos+1, in ldns_radix_insert() 268 prefix->array[byte].edge = add; in ldns_radix_insert() [all …]
|
| /freebsd-14-stable/usr.bin/dc/ |
| HD | stack.c | 28 static struct array *array_new(void); 29 static __inline void array_free(struct array *); 30 static struct array *array_dup(const struct array *); 31 static __inline void array_grow(struct array *, size_t); 32 static __inline void array_assign(struct array *, size_t, const struct value *); 33 static __inline struct value *array_retrieve(const struct array *, size_t); 69 array_free(v->array); in stack_free_value() 70 v->array = NULL; in stack_free_value() 93 copy->array = a->array == NULL ? NULL : array_dup(a->array); in stack_dup_value() 153 stack->stack[stack->sp].array = NULL; in stack_pushnumber() [all …]
|
| /freebsd-14-stable/sbin/ipf/libipf/ |
| HD | printipfexpr.c | 11 printipfexpr(int *array) in printipfexpr() argument 16 nelems = array[0]; in printipfexpr() 19 ipfe = (ipfexp_t *)(array + i); in printipfexpr() 29 printhosts(array + i); in printipfexpr() 34 printsingle(array + i); in printipfexpr() 39 printhosts(array + i); in printipfexpr() 44 printhosts(array + i); in printipfexpr() 49 printport(array + i); in printipfexpr() 54 printport(array + i); in printipfexpr() 59 printport(array + i); in printipfexpr() [all …]
|
| /freebsd-14-stable/sys/dev/hptmv/ |
| HD | gui_lib.c | 92 if ((pVDevice->u.array.dArStamp != 0) && (pVDevice == p)) in check_VDevice_valid() 128 if(pVDevice->u.array.rf_need_rebuild && !pVDevice->u.array.rf_duplicate_and_create) in get_array_flag() 132 if(pVDevice->u.array.rf_rebuilding) in get_array_flag() 136 if(pVDevice->u.array.rf_verifying) in get_array_flag() 140 if(pVDevice->u.array.rf_initializing) in get_array_flag() 144 if(pVDevice->u.array.rf_broken) in get_array_flag() 152 if(pVDevice->u.array.rf_newly_created) in get_array_flag() 160 if(pVDevice->u.array.rf_auto_rebuild) in get_array_flag() 163 for(i = 0; i < pVDevice->u.array.bArnMember; i++) in get_array_flag() 165 PVDevice pMember = pVDevice->u.array.pMember[i]; in get_array_flag() [all …]
|
| HD | ioctl.c | 123 memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME); in ioctl_ReportEvent() 170 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array() 171 pArray->u.array.rf_initializing) in hpt_delete_array() 174 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array() 175 pa = pArray->u.array.pMember[i]; in hpt_delete_array() 177 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array() 178 pa->u.array.rf_initializing) in hpt_delete_array() 386 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 407 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 421 if(pArray->u.array.rf_rebuilding == 0) in Kernel_DeviceIoControl() [all …]
|
| HD | hptproc.c | 75 if ((pArray=ArrayTables(i))->u.array.dArStamp==0) in hpt_set_asc_info() 78 if (pArray->u.array.rf_need_rebuild && !pArray->u.array.rf_rebuilding) in hpt_set_asc_info() 80 …(UCHAR)((pArray->u.array.CriticalMembers || pArray->VDeviceType == VD_RAID_1)? DUPLICATE : REBUILD… in hpt_set_asc_info() 88 if ((pArray=ArrayTables(i))->u.array.dArStamp==0) in hpt_set_asc_info() 91 if (pArray->u.array.rf_rebuilding) in hpt_set_asc_info() 92 pArray->u.array.rf_abort_rebuild = 1; in hpt_set_asc_info() 149 pSubArray->u.array.rf_auto_rebuild = 0; in hpt_set_asc_info() 150 pSubArray->u.array.rf_abort_rebuild = 0; in hpt_set_asc_info() 155 for (i = 0; (UCHAR)i < pArray->u.array.bArnMember; i++) in hpt_set_asc_info() 156 if(pArray->u.array.pMember[i] && mIsArray(pArray->u.array.pMember[i]) && in hpt_set_asc_info() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/builtins/ |
| HD | emutls.c | 46 static void emutls_shutdown(emutls_address_array *array); 101 emutls_address_array *array = (emutls_address_array *)ptr; in emutls_key_destructor() local 102 if (array->skip_destructor_rounds > 0) { in emutls_key_destructor() 109 array->skip_destructor_rounds--; in emutls_key_destructor() 110 emutls_setspecific(array); in emutls_key_destructor() 112 emutls_shutdown(array); in emutls_key_destructor() 260 static void emutls_shutdown(emutls_address_array *array) { in emutls_shutdown() argument 261 if (array) { in emutls_shutdown() 263 for (i = 0; i < array->size; ++i) { in emutls_shutdown() 264 if (array->data[i]) in emutls_shutdown() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/libcxx/include/ |
| HD | array | 14 array synopsis 19 struct array 36 void swap(array& a) noexcept(is_nothrow_swappable_v<T>); // constexpr in C++20 75 array(T, U...) -> array<T, 1 + sizeof...(U)>; // C++17 78 bool operator==(const array<T,N>& x, const array<T,N>& y); // constexpr in C++20 80 bool operator!=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 82 bool operator<(const array<T,N>& x, const array<T,N>& y); // removed in C++20 84 bool operator>(const array<T,N>& x, const array<T,N>& y); // removed in C++20 86 bool operator<=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 88 bool operator>=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 [all …]
|
| /freebsd-14-stable/contrib/unbound/util/storage/ |
| HD | slabhash.c | 59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*)); in slabhash_create() 60 if(!sl->array) { in slabhash_create() 77 sl->array[i] = lruhash_create(start_size, maxmem / sl->size, in slabhash_create() 79 if(!sl->array[i]) { in slabhash_create() 91 if(sl->array) { in slabhash_delete() 94 lruhash_delete(sl->array[i]); in slabhash_delete() 95 free(sl->array); in slabhash_delete() 106 lruhash_clear(sl->array[i]); in slabhash_clear() 119 lruhash_insert(sl->array[slab_idx(sl, hash)], hash, entry, data, arg); in slabhash_insert() 125 return lruhash_lookup(sl->array[slab_idx(sl, hash)], hash, key, wr); in slabhash_lookup() [all …]
|
| HD | lruhash.c | 48 bin_init(struct lruhash_bin* array, size_t size) in bin_init() argument 52 (void)array; in bin_init() 55 lock_quick_init(&array[i].lock); in bin_init() 56 lock_protect(&array[i].lock, &array[i], in bin_init() 85 table->array = calloc(table->size, sizeof(struct lruhash_bin)); in lruhash_create() 86 if(!table->array) { in lruhash_create() 91 bin_init(table->array, table->size); in lruhash_create() 93 lock_protect(&table->lock, table->array, in lruhash_create() 134 lock_quick_lock(&table->array[i].lock); in bin_split() 135 p = table->array[i].overflow_list; in bin_split() [all …]
|
| /freebsd-14-stable/contrib/ntp/sntp/unity/auto/ |
| HD | parseOutput.rb | 59 def testPassed(array) argument 60 lastItem = array.length - 1 61 testName = array[lastItem - 1] 62 testSuiteVerify(array[@className]) 70 def testIgnored(array) argument 71 lastItem = array.length - 1 72 testName = array[lastItem - 2] 73 reason = array[lastItem].chomp 74 testSuiteVerify(array[@className]) 84 def testFailed(array) argument [all …]
|
| /freebsd-14-stable/contrib/libcbor/test/ |
| HD | array_test.c | 117 cbor_item_t *array = cbor_new_definite_array(2); in test_array_replace() local 118 assert_size_equal(cbor_array_size(array), 0); in test_array_replace() 125 assert_false(cbor_array_replace(array, 0, three)); in test_array_replace() 129 assert_true(cbor_array_push(array, one)); in test_array_replace() 130 assert_true(cbor_array_push(array, cbor_move(cbor_build_uint8(2)))); in test_array_replace() 132 assert_size_equal(cbor_array_size(array), 2); in test_array_replace() 135 assert_false(cbor_array_replace(array, 2, three)); in test_array_replace() 139 assert_true(cbor_array_replace(array, 0, three)); in test_array_replace() 142 assert_uint8(cbor_move(cbor_array_get(array, 0)), 3); in test_array_replace() 143 assert_uint8(cbor_move(cbor_array_get(array, 1)), 2); in test_array_replace() [all …]
|
| /freebsd-14-stable/sys/dev/mthca/ |
| HD | mthca_allocator.c | 118 void *mthca_array_get(struct mthca_array *array, int index) in mthca_array_get() argument 122 if (array->page_list[p].page) in mthca_array_get() 123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK]; in mthca_array_get() 128 int mthca_array_set(struct mthca_array *array, int index, void *value) in mthca_array_set() argument 133 if (!array->page_list[p].page) in mthca_array_set() 134 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC); in mthca_array_set() 136 if (!array->page_list[p].page) in mthca_array_set() 139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value; in mthca_array_set() 140 ++array->page_list[p].used; in mthca_array_set() 145 void mthca_array_clear(struct mthca_array *array, int index) in mthca_array_clear() argument [all …]
|
| /freebsd-14-stable/tools/tools/sortbench/ |
| HD | sort_bench.c | 101 int *array = malloc(size); in rand_bench() local 102 arc4random_buf(array, size); in rand_bench() 103 sort(array, elts, s); in rand_bench() 104 free(array); in rand_bench() 114 int *array = malloc(size); in sort_bench() local 116 array[i] = i; in sort_bench() 118 sort(array, elts, s); in sort_bench() 119 free(array); in sort_bench() 129 int *array = malloc(size); in partial_bench() local 132 array[i] = i; in partial_bench() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/API/ |
| HD | SBData.cpp | 405 uint64_t *array, in CreateDataFromUInt64Array() argument 407 LLDB_INSTRUMENT_VA(endian, addr_byte_size, array, array_len); in CreateDataFromUInt64Array() 409 if (!array || array_len == 0) in CreateDataFromUInt64Array() 414 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt64Array() 425 uint32_t *array, in CreateDataFromUInt32Array() argument 427 LLDB_INSTRUMENT_VA(endian, addr_byte_size, array, array_len); in CreateDataFromUInt32Array() 429 if (!array || array_len == 0) in CreateDataFromUInt32Array() 434 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt32Array() 445 int64_t *array, in CreateDataFromSInt64Array() argument 447 LLDB_INSTRUMENT_VA(endian, addr_byte_size, array, array_len); in CreateDataFromSInt64Array() [all …]
|
| /freebsd-14-stable/sys/dev/isci/scil/ |
| HD | scic_sds_unsolicited_frame_control.c | 135 uf = &uf_control->buffers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 138 uf_control->address_table.array[index], 0, 0 in scic_sds_unsolicited_frame_control_construct_frames() 141 uf->header = &uf_control->headers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 151 uf = &uf_control->buffers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 153 uf_control->address_table.array[index] = uf_buffer_phys_address; in scic_sds_unsolicited_frame_control_construct_frames() 156 uf->header = &uf_control->headers.array[index]; in scic_sds_unsolicited_frame_control_construct_frames() 227 uf_control->headers.array = (SCU_UNSOLICITED_FRAME_HEADER_T*) in scic_sds_unsolicited_frame_control_construct() 241 uf_control->address_table.array = (SCI_PHYSICAL_ADDRESS*) in scic_sds_unsolicited_frame_control_construct() 284 *frame_header = &uf_control->buffers.array[frame_index].header->data; in scic_sds_unsolicited_frame_control_get_header() 310 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in scic_sds_unsolicited_frame_control_get_buffer() [all …]
|
| /freebsd-14-stable/contrib/libcbor/examples/ |
| HD | sort.c | 30 cbor_item_t *array = cbor_new_definite_array(4); in main() local 31 bool success = cbor_array_push(array, cbor_move(cbor_build_uint8(4))); in main() 32 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(3))); in main() 33 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(1))); in main() 34 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(2))); in main() 37 qsort(cbor_array_handle(array), cbor_array_size(array), sizeof(cbor_item_t *), in main() 40 cbor_describe(array, stdout); in main()
|
| /freebsd-14-stable/tests/sys/opencrypto/ |
| HD | cryptodev.py | 34 import array 145 s = array.array('B', fop.pack_hdr()) 187 k = array.array('B', key) 194 mk = array.array('B', mackey) 205 s = array.array('B', ses.pack_hdr()) 229 s = array.array('B', src) 236 m = array.array('B', [0] * self._maclen) 238 m = array.array('B', mac) 240 ivbuf = array.array('B', str_to_ascii(iv)) 264 s = array.array('B', src) [all …]
|
| /freebsd-14-stable/contrib/ofed/librdmacm/ |
| HD | indexer.c | 63 idx->array[idx->size] = calloc(IDX_ENTRY_SIZE, sizeof(union idx_entry)); in idx_grow() 64 if (!idx->array[idx->size]) in idx_grow() 67 entry = idx->array[idx->size]; in idx_grow() 96 entry = idx->array[idx_array_index(index)]; in idx_insert() 107 entry = idx->array[idx_array_index(index)]; in idx_remove() 118 entry = idx->array[idx_array_index(index)]; in idx_replace() 125 idm->array[idx_array_index(index)] = calloc(IDX_ENTRY_SIZE, sizeof(void *)); in idm_grow() 126 if (!idm->array[idx_array_index(index)]) in idm_grow() 145 if (!idm->array[idx_array_index(index)]) { in idm_set() 150 entry = idm->array[idx_array_index(index)]; in idm_set() [all …]
|
| /freebsd-14-stable/sys/dev/ocs_fc/ |
| HD | ocs_utils.c | 88 ocs_array_t *array = NULL; in ocs_array_alloc() local 99 array = ocs_malloc(os, sizeof(*array), OCS_M_ZERO | OCS_M_NOWAIT); in ocs_array_alloc() 100 if (array == NULL) { in ocs_array_alloc() 104 array->os = os; in ocs_array_alloc() 105 array->size = size; in ocs_array_alloc() 106 array->count = count; in ocs_array_alloc() 107 array->elems_per_row = slab_len / size; in ocs_array_alloc() 108 array->n_rows = (count + array->elems_per_row - 1) / array->elems_per_row; in ocs_array_alloc() 109 array->bytes_per_row = array->elems_per_row * array->size; in ocs_array_alloc() 111 array->array_rows_len = array->n_rows * sizeof(*array->array_rows); in ocs_array_alloc() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/libcxx/modules/std/ |
| HD | array.inc | 12 // [array], class template array 13 using std::array; 18 // [array.special], specialized algorithms 21 // [array.creation], array creation functions 24 // [array.tuple], tuple interface
|
| /freebsd-14-stable/contrib/flex/src/ |
| HD | misc.c | 465 int myctoi (const char *array) in myctoi() argument 469 (void) sscanf (array, "%d", &val); in myctoi() 477 unsigned char myesc (unsigned char array[]) in myesc() argument 481 switch (array[1]) { in myesc() 508 array[sptr] >= '0' && array[sptr] <= '7') { in myesc() 512 c = array[sptr]; in myesc() 513 array[sptr] = '\0'; in myesc() 515 esc_char = (unsigned char) strtoul (array + 1, NULL, 8); in myesc() 517 array[sptr] = c; in myesc() 526 while (sptr <= 3 && isxdigit (array[sptr])) { in myesc() [all …]
|