| /src/crypto/openssl/crypto/asn1/ |
| H A D | charmap.pl | 14 my ($i, @arr); 35 $arr[$i] = 0; 37 $arr[$i] |= $ESC_CTRL; 44 $arr[$i] |= $PSTRING_CHAR | $HOST_ANY; 52 $arr[ord(" ")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC | $RFC2253_LAST_ESC; 53 $arr[ord("#")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC; 55 $arr[ord(",")] |= $NOESC_QUOTE | $RFC2253_ESC; 56 $arr[ord("+")] |= $NOESC_QUOTE | $RFC2253_ESC; 57 $arr[ord("\"")] |= $RFC2253_ESC; 58 $arr[ord("\\")] |= $RFC2253_ESC; [all …]
|
| /src/contrib/libcbor/test/ |
| H A D | array_test.c | 12 cbor_item_t *arr; variable 18 arr = cbor_load(data1, 2, &res); in test_empty_array() 19 assert_non_null(arr); in test_empty_array() 20 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_empty_array() 21 assert_true(cbor_isa_array(arr)); in test_empty_array() 22 assert_true(cbor_array_size(arr) == 0); in test_empty_array() 24 cbor_decref(&arr); in test_empty_array() 25 assert_null(arr); in test_empty_array() 31 arr = cbor_load(data2, 3, &res); in test_simple_array() 32 assert_non_null(arr); in test_simple_array() [all …]
|
| /src/crypto/krb5/src/util/ |
| H A D | t_array.pm | 53 <NAME>_init(<NAME> *arr) 55 arr->elts = calloc(10, sizeof(<TYPE>)); 56 if (arr->elts == NULL) 58 arr->allocated = 10; 63 <NAME>_size(<NAME> *arr) 65 return arr->allocated; 69 <NAME>_max_size(<NAME> *arr) 73 upper_bound = SIZE_MAX / sizeof(*arr->elts); 80 <NAME>_grow(<NAME> *arr, unsigned long newcount) 82 size_t oldsize = sizeof(*arr->elts) * arr->allocated; [all …]
|
| /src/krb5/lib/gssapi/ |
| H A D | errmap.h | 65 mecherrmap__pairarray_init(mecherrmap__pairarray *arr) in mecherrmap__pairarray_init() argument 67 arr->elts = calloc(10, sizeof(struct mecherrmap__pair)); in mecherrmap__pairarray_init() 68 if (arr->elts == NULL) in mecherrmap__pairarray_init() 70 arr->allocated = 10; in mecherrmap__pairarray_init() 75 mecherrmap__pairarray_size(mecherrmap__pairarray *arr) in mecherrmap__pairarray_size() argument 77 return arr->allocated; in mecherrmap__pairarray_size() 81 mecherrmap__pairarray_max_size(mecherrmap__pairarray *arr) in mecherrmap__pairarray_max_size() argument 85 upper_bound = SIZE_MAX / sizeof(*arr->elts); in mecherrmap__pairarray_max_size() 92 mecherrmap__pairarray_grow(mecherrmap__pairarray *arr, unsigned long newcount) in mecherrmap__pairarray_grow() argument 94 size_t oldsize = sizeof(*arr->elts) * arr->allocated; in mecherrmap__pairarray_grow() [all …]
|
| /src/sys/contrib/dev/iwlwifi/mvm/tests/ |
| H A D | hcmd.c | 17 const struct iwl_hcmd_arr *arr = &iwl_mvm_groups[i]; in test_hcmd_names_sorted() local 19 if (!arr->arr) in test_hcmd_names_sorted() 22 for (int j = 0; j < arr->size - 1; j++) in test_hcmd_names_sorted() 23 KUNIT_EXPECT_LE(test, arr->arr[j].cmd_id, in test_hcmd_names_sorted() 24 arr->arr[j + 1].cmd_id); in test_hcmd_names_sorted()
|
| /src/sys/contrib/dev/iwlwifi/mld/tests/ |
| H A D | hcmd.c | 19 const struct iwl_hcmd_arr *arr = &iwl_mld_groups[i]; in test_hcmd_names_sorted() local 22 if (!arr->arr) in test_hcmd_names_sorted() 24 for (j = 0; j < arr->size - 1; j++) in test_hcmd_names_sorted() 25 KUNIT_EXPECT_LE(test, arr->arr[j].cmd_id, in test_hcmd_names_sorted() 26 arr->arr[j + 1].cmd_id); in test_hcmd_names_sorted()
|
| /src/contrib/llvm-project/lld/include/lld/Common/ |
| H A D | Arrays.h | 18 inline std::vector<llvm::ArrayRef<uint8_t>> split(llvm::ArrayRef<uint8_t> arr, in split() argument 21 while (arr.size() > chunkSize) { in split() 22 ret.push_back(arr.take_front(chunkSize)); in split() 23 arr = arr.drop_front(chunkSize); in split() 25 if (!arr.empty()) in split() 26 ret.push_back(arr); in split()
|
| /src/lib/libc/resolv/ |
| H A D | res_findzonecut.c | 255 rr_a *arr; in add_addrs() local 258 for (arr = HEAD(nsrr->addrs); arr != NULL; arr = NEXT(arr, link)) { in add_addrs() 261 *addrs++ = arr->addr; in add_addrs() 585 rr_a *arr; in save_a() local 602 arr = malloc(sizeof *arr); in save_a() 603 if (arr == NULL) { in save_a() 607 INIT_LINK(arr, link); in save_a() 608 memset(&arr->addr, 0, sizeof(arr->addr)); in save_a() 611 arr->addr.sin.sin_family = AF_INET; in save_a() 613 arr->addr.sin.sin_len = sizeof(arr->addr.sin); in save_a() [all …]
|
| /src/contrib/libexecinfo/ |
| H A D | unwind.c | 39 void **arr; member 54 t->arr[t->n++] = (void *)_Unwind_GetIP(ctx); in tracer() 61 backtrace(void **arr, size_t len) in backtrace() argument 65 ctx.arr = arr; in backtrace() 73 ctx.arr[--ctx.n] = NULL; /* Skip frame below __start */ in backtrace()
|
| /src/crypto/openssl/crypto/bn/ |
| H A D | bn_gf2m.c | 384 int arr[6]; in BN_GF2m_mod() local 387 ret = BN_GF2m_poly2arr(p, arr, OSSL_NELEM(arr)); in BN_GF2m_mod() 388 if (!ret || ret > (int)OSSL_NELEM(arr)) { in BN_GF2m_mod() 392 ret = BN_GF2m_mod_arr(r, a, arr); in BN_GF2m_mod() 461 int *arr; in BN_GF2m_mod_mul() local 467 arr = OPENSSL_malloc(sizeof(*arr) * max); in BN_GF2m_mod_mul() 468 if (arr == NULL) in BN_GF2m_mod_mul() 470 ret = BN_GF2m_poly2arr(p, arr, max); in BN_GF2m_mod_mul() 475 ret = BN_GF2m_mod_mul_arr(r, a, b, arr, ctx); in BN_GF2m_mod_mul() 478 OPENSSL_free(arr); in BN_GF2m_mod_mul() [all …]
|
| /src/contrib/netbsd-tests/lib/libprop/ |
| H A D | t_basic.c | 113 prop_array_t arr; in ATF_TC_BODY() local 117 arr = prop_array_create(); in ATF_TC_BODY() 118 ATF_REQUIRE(arr != NULL); in ATF_TC_BODY() 123 ATF_REQUIRE_EQ(prop_array_add(arr, dict_copy), true); in ATF_TC_BODY() 127 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "three", arr), true); in ATF_TC_BODY() 128 prop_object_release(arr); in ATF_TC_BODY()
|
| /src/sys/dev/qlnx/qlnxe/ |
| H A D | ecore_dcbx.c | 187 ecore_dcbx_app_update[i].name, p_data->arr[id].update, in ecore_dcbx_dp_protocol() 188 p_data->arr[id].enable, p_data->arr[id].priority, in ecore_dcbx_dp_protocol() 189 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc, in ecore_dcbx_dp_protocol() 190 p_data->arr[id].dscp_enable, in ecore_dcbx_dp_protocol() 191 p_data->arr[id].dscp_val); in ecore_dcbx_dp_protocol() 218 p_data->arr[type].enable = enable; in ecore_dcbx_set_params() 219 p_data->arr[type].priority = prio; in ecore_dcbx_set_params() 220 p_data->arr[type].tc = tc; in ecore_dcbx_set_params() 221 p_data->arr[type].dscp_val = ecore_dcbx_get_dscp_value(p_hwfn, prio); in ecore_dcbx_set_params() 222 if (p_data->arr[type].dscp_val == ECORE_DCBX_DSCP_DISABLED) { in ecore_dcbx_set_params() [all …]
|
| /src/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | cache_bin.h | 571 cache_bin_ptr_array_t *arr, cache_bin_sz_t nfill) { in cache_bin_init_ptr_array_for_fill() argument 573 arr->ptr = cache_bin_empty_position_get(bin) - nfill; in cache_bin_init_ptr_array_for_fill() 583 cache_bin_ptr_array_t *arr, cache_bin_sz_t nfilled) { in cache_bin_finish_fill() argument 586 if (nfilled < arr->n) { in cache_bin_finish_fill() 587 memmove(empty_position - nfilled, empty_position - arr->n, in cache_bin_finish_fill() 599 cache_bin_ptr_array_t *arr, cache_bin_sz_t nflush) { in cache_bin_init_ptr_array_for_flush() argument 600 arr->ptr = cache_bin_empty_position_get(bin) - nflush; in cache_bin_init_ptr_array_for_flush() 602 || *arr->ptr != NULL); in cache_bin_init_ptr_array_for_flush() 607 cache_bin_ptr_array_t *arr, cache_bin_sz_t nflushed) { in cache_bin_finish_flush() argument 617 cache_bin_info_t *info, cache_bin_ptr_array_t *arr, in cache_bin_init_ptr_array_for_stashed() argument [all …]
|
| /src/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ |
| H A D | ScriptedThreadPythonInterface.cpp | 102 StructuredData::ArraySP arr = in GetStackFrames() local 105 if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr, in GetStackFrames() 109 return arr; in GetStackFrames() 137 StructuredData::ArraySP arr = in GetExtendedInfo() local 140 if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr, in GetExtendedInfo() 144 return arr; in GetExtendedInfo()
|
| H A D | OperatingSystemPythonInterface.cpp | 56 StructuredData::ArraySP arr = in GetThreadInfo() local 59 if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr, in GetThreadInfo() 63 return arr; in GetThreadInfo()
|
| /src/sys/tests/fib_lookup/ |
| H A D | fib_lookup.c | 440 struct in_addr *arr; member 465 pa->arr[pa->num_items++] = addr; in add_prefix() 468 pa->arr[pa->num_items++].s_addr = htonl(haddr - 1); in add_prefix() 469 pa->arr[pa->num_items++].s_addr = htonl(haddr + 1); in add_prefix() 472 pa->arr[pa->num_items++].s_addr = htonl(haddr + mlen); in add_prefix() 474 pa->arr[pa->num_items++].s_addr = htonl(haddr + mlen + 1); in add_prefix() 490 pa->arr = mallocarray(pa->alloc_items, sizeof(struct in_addr), in prepare_list() 530 if (!cmp_dst(fibnum, pa.arr[i])) { in run_test_inet_scan() 538 if (pa.arr != NULL) in run_test_inet_scan() 539 free(pa.arr, M_TEMP); in run_test_inet_scan() [all …]
|
| /src/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | merge_summary.awk | 55 split($3, arr, ":") 56 total += arr[1] * 60 * 60; 57 total += arr[2] * 60; 58 total += arr[3]
|
| /src/sys/contrib/alpine-hal/ |
| H A D | al_hal_common.h | 67 #define AL_ARR_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|
| /src/sys/netinet/ |
| H A D | in_fib_algo.c | 246 struct bsearch4_record *arr; member 254 ba->arr[ba->num_items++] = *br_new; in add_array_entry() 264 return (&ba->arr[ba->num_items - 1]); in get_last_entry() 393 .arr = mallocarray(32, sizeof(struct bsearch4_record), M_TEMP, M_NOWAIT | M_ZERO), in bsearch4_build_array() 395 if (stack.arr == NULL) in bsearch4_build_array() 399 struct bsearch4_record *rib_entry = &src_array->arr[i]; in bsearch4_build_array() 402 free(stack.arr, M_TEMP); in bsearch4_build_array() 414 free(stack.arr, M_TEMP); in bsearch4_build_array() 427 .arr = bd->rr, in bsearch4_build() 433 if (prefixes_array.arr[i].mask4 == 0) { in bsearch4_build() [all …]
|
| /src/crypto/krb5/src/plugins/audit/ |
| H A D | kdc_j_encode.c | 550 k5_json_array arr = NULL; in princ_to_value() local 561 ret = k5_json_array_create(&arr); in princ_to_value() 569 ret = k5_json_array_add(arr, str); in princ_to_value() 574 ret = k5_json_object_set(tmp, AU_COMPONENTS, arr); in princ_to_value() 591 k5_json_release(arr); in princ_to_value() 604 k5_json_array arr = NULL; in addr_to_obj() local 618 ret = k5_json_array_create(&arr); in addr_to_obj() 625 ret = k5_json_array_add(arr, num); in addr_to_obj() 630 ret = k5_json_object_set(obj, AU_IP, arr); in addr_to_obj() 647 k5_json_release(arr); in addr_to_obj() [all …]
|
| /src/contrib/arm-optimized-routines/math/aarch64/experimental/ |
| H A D | tanf_3u3.c | 65 const uint32_t *arr = &__inv_pio4[(xi >> 26) & 15]; in reduce_large() local 72 res0 = xi * arr[0]; in reduce_large() 73 res1 = (uint64_t) xi * arr[4]; in reduce_large() 74 res2 = (uint64_t) xi * arr[8]; in reduce_large()
|
| /src/usr.sbin/pw/ |
| H A D | psdate.c | 46 aindex(char const * arr[], char const ** str, int len) in aindex() argument 55 for (i = 0; arr[i] && strcmp(mystr, arr[i]) != 0; i++); in aindex() 56 if (arr[i] == NULL) in aindex()
|
| /src/contrib/arm-optimized-routines/math/ |
| H A D | sincosf.h | 132 const uint32_t *arr = &__inv_pio4[(xi >> 26) & 15]; in reduce_large() local 139 res0 = xi * arr[0]; in reduce_large() 140 res1 = (uint64_t)xi * arr[4]; in reduce_large() 141 res2 = (uint64_t)xi * arr[8]; in reduce_large()
|
| /src/sys/powerpc/powernv/ |
| H A D | platform_powernv.c | 230 pcell_t arr[len/sizeof(cell_t)]; in powernv_attach() local 231 res = OF_getencprop(cpu, "ibm,segment-page-sizes", arr, in powernv_attach() 232 sizeof(arr)); in powernv_attach() 237 shift = arr[idx]; in powernv_attach() 238 slb_encoding = arr[idx + 1]; in powernv_attach() 239 nptlp = arr[idx + 2]; in powernv_attach() 243 lp_size = arr[idx]; in powernv_attach() 244 lp_encoding = arr[idx+1]; in powernv_attach()
|
| /src/crypto/krb5/src/plugins/preauth/otp/ |
| H A D | otp_state.c | 371 k5_json_array arr; in indicators_decode() local 380 arr = val; in indicators_decode() 381 len = k5_json_array_length(arr); in indicators_decode() 387 obj = k5_json_array_get(arr, i); in indicators_decode() 518 k5_json_array arr = NULL; in tokens_decode() local 523 retval = decode_config_json(config, &arr); in tokens_decode() 526 len = k5_json_array_length(arr); in tokens_decode() 533 obj = k5_json_array_get(arr, i); in tokens_decode() 547 k5_json_release(arr); in tokens_decode()
|