/illumos-gate/usr/src/lib/krb5/dyn/ |
H A D | dyn_put.c | 23 obj->array); 25 return obj->array; 47 obj->array, obj->el_size*num); 49 return (DynPtr) obj->array + obj->el_size*num; 84 obj->el_size, el, obj->array, idx*obj->el_size); 90 memmove(obj->array + idx*obj->el_size, el, obj->el_size); 92 bcopy(el, obj->array + idx*obj->el_size, obj->el_size);
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_util.c | 35 zjni_free_array(void **array, zjni_free_f freefunc) in zjni_free_array() argument 37 if (array != NULL) { in zjni_free_array() 40 for (i = 0; array[i] != NULL; i++) { in zjni_free_array() 41 freefunc(array[i]); in zjni_free_array() 44 free(array); in zjni_free_array() 102 jobjectArray array = (*env)->NewObjectArray( in zjni_Collection_to_array() local 310 jsize length = (*env)->GetArrayLength(env, array); in zjni_java_string_array_to_c() 319 env, array, i); in zjni_java_string_array_to_c() 355 zjni_count_elements(void **array) in zjni_count_elements() argument 358 if (array != NULL) { in zjni_count_elements() [all …]
|
/illumos-gate/usr/src/lib/udapl/libdat/common/ |
H A D | dat_dr.c | 292 DAT_DR_ENTRY **array; in dat_dr_list() local 297 array = NULL; in dat_dr_list() 317 array = dat_os_alloc(array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list() 318 if (array == NULL) { in dat_dr_list() 327 (DAT_DICTIONARY_DATA *) array, in dat_dr_list() 335 dat_os_free(array, in dat_dr_list() 337 array = NULL; in dat_dr_list() 349 *dat_provider_list[i] = array[i]->info; in dat_dr_list() 355 if (NULL != array) { in dat_dr_list() 356 dat_os_free(array, array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
|
H A D | dat_sr.c | 228 DAT_SR_ENTRY **array; in dat_sr_list() local 233 array = NULL; in dat_sr_list() 253 array = dat_os_alloc(array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list() 254 if (array == NULL) { in dat_sr_list() 263 (DAT_DICTIONARY_DATA *) array, in dat_sr_list() 271 dat_os_free(array, in dat_sr_list() 273 array = NULL; in dat_sr_list() 285 *dat_provider_list[i] = array[i]->info; in dat_sr_list() 291 if (NULL != array) { in dat_sr_list() 292 dat_os_free(array, array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list()
|
/illumos-gate/usr/src/test/util-tests/tests/libnvpair_json/ |
H A D | print_json.c | 181 ch_add_string(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_string() argument 185 if (array) { in ch_add_string() 207 if (array) in ch_add_boolean() 236 if (array) { in ch_add_boolean_value() 272 if (array) { \ 290 ch_add_byte(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_byte() argument 298 ch_add_int8(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_int8() argument 367 if (array) in ch_add_double() 383 ch_end(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_end() argument 429 ch_next(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_next() argument [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | bufsplit.c | 76 bufsplit(char *buf, size_t dim, char **array) in bufsplit() argument 89 if (!dim ^ !array) in bufsplit() 91 if (buf && !dim && !array) { in bufsplit() 97 array[numsplit] = buf; in bufsplit() 108 buf = strrchr(array[numsplit-1], '\0'); in bufsplit() 110 array[i] = buf; in bufsplit()
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_crypto.c | 37 crypto_free_provider_list(crypto_provider_entry_t *array, uint_t count) in crypto_free_provider_list() argument 39 if (count == 0 || array == NULL) in crypto_free_provider_list() 42 kmem_free(array, count * sizeof (crypto_provider_entry_t)); in crypto_free_provider_list() 48 uint_t *count, crypto_mech_name_t **array) in crypto_get_provider_mechanisms() argument 54 array, count, KM_SLEEP)); in crypto_get_provider_mechanisms()
|
H A D | kcf_cryptoadm.c | 316 *array = NULL; in crypto_get_dev_list() 346 *array = p; in crypto_get_dev_list() 410 *array = names; in crypto_get_soft_list() 505 *array = mech_names; in crypto_get_dev_info() 583 if (array[i][0] == '\0') in kcf_change_mechs() 586 mech = &array[i][0]; in kcf_change_mechs() 858 *array = NULL; in dup_mech_names() 872 *array = mech_names; in dup_mech_names() 1001 *array = NULL; in crypto_build_permitted_mech_names() 1020 *array = mech_names; in crypto_build_permitted_mech_names() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getisax.c | 47 getisax(uint32_t *array, uint_t n) in getisax() argument 62 array[0] = auxv_hwcap; in getisax() 64 array[1] = auxv_hwcap_2; in getisax() 66 array[2] = auxv_hwcap_3; in getisax() 68 array[i] = 0; in getisax()
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | sm_buf_size6.c | 8 int array[1000]; in function() local 14 __smatch_buf_size(array); in function() 15 __smatch_buf_size(&array); in function() 16 __smatch_buf_size(&array[0]); in function()
|
H A D | sizeof-incomplete-type.c | 9 static int array[] = { variable 11 [sizeof(array)] = 1, 13 [sizeof(array)] = 2,
|
H A D | sm_mtag5.c | 13 int array[10]; variable 20 __smatch_implied(array); in main() 21 __smatch_implied(&array[1]); in main()
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | function-ptr.c | 3 extern int array[3]; 30 fip(array); in arg() 37 fvp(array); in arg() 78 fip(array); in glb() 85 fvp(array); in glb() 131 ops->fip(array); in ops() 138 ops->fvp(array); in ops()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | nameref.sh | 158 typeset -n array=$i 159 print ${!array[*]} 316 [[ $zip == bar ]] || err_exit 'nameref to another nameref to array element fails' 360 [[ ${!y.@} == 'x[a].b' ]] || err_exit 'reference to array element not expanded with ${!y.@}' 420 [[ -v x[h] ]] && err_exit 'creating reference to non-existant associative array element causes elem… 494 [[ $a == 3 ]] || err_exit 'name reference to ls[0] when ls is not an array fails' 496 $SHELL 2> /dev/null <<-\EOF || err_exit 'nameref to array element fails' 557 [[ $(print -v l) == "$exp" ]] || err_exit 'nameref l4=l[4] not working with indexed array read' 564 [[ $(print -v l) == "$exp" ]] || err_exit 'nameref l4=l[4] not working with associative array read' 606 [[ $(print -v ar) == "$exp" ]] || err_exit 'read into nameref of global array instance from within … [all …]
|
H A D | arith.sh | 615 …)) || err_exit '$nz and nz differs in arithmetic expression when nz is reference to array instance' 662 (( z==2 )) || err_exit 'unset compound array variable error with for loop optimization' 671 (( x[2] == 4 )) || err_exit '(( x[2] /= x[0])) fails for index array' 675 (( x[2] == 4 )) || err_exit '(( x[2] /= x[0])) fails for associative array' 696 …'${A[a].AA[aa]} should be 2 after ++ operation for associative array of associative array arithmet… 705 …exit '${A[a].AA[aa]} should be 2 after ++ operation for ssociative array of index array arithmetic' 714 …_exit '${A[a].AA[aa]} should be 2 after ++ operation for index array of associative array arithmet… 722 … err_exit '${A[a].AA[aa]} should be 2 after ++ operation for index array of index array arithmetic'
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pointers/ |
H A D | err.InvalidAddress5.d | 45 int array[2]; variable 53 array[0] = 0x12345678; 54 array[1] = 0xabcdefff; 56 ptr = (char *) &array[0];
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | damap.c | 111 if (ss->n_items && ss->array) { in damap_free() 113 da = ss->array[i]; in damap_free() 185 if (mdb_vread(kssarray, array_sz, (uintptr_t)kss.array) == -1) { in damap_get() 187 (uintptr_t)kss.array); in damap_get() 232 ss->array = mdb_zalloc(array_sz, UM_SLEEP); in damap_get() 237 da = ss->array[i] = mdb_zalloc(sizeof (*da), UM_SLEEP); in damap_get() 240 (uintptr_t)kss.array); in damap_get() 277 if ((ss->n_items == 0) || (ss->array == NULL)) in damap_print() 283 da = ss->array[i]; in damap_print()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_index_overflow.c | 28 static int definitely_just_used_as_limiter(struct expression *array, struct expression *offset) in definitely_just_used_as_limiter() argument 35 if (get_array_size(array) != sval.value) in definitely_just_used_as_limiter() 38 tmp = array; in definitely_just_used_as_limiter() 105 static int common_false_positives(struct expression *array, sval_t max) in common_false_positives() argument 110 name = expr_to_str(array); in common_false_positives() 125 if (array) { in common_false_positives() 129 if (array->type == EXPR_STRING && in common_false_positives() 130 max.value == array->string->length) { in common_false_positives() 135 macro = get_macro_name(array->pos); in common_false_positives()
|
H A D | smatch_function_ptrs.c | 95 struct expression *array; in get_array_ptr() local 100 array = xxx_get_array_base(expr); in get_array_ptr() 102 if (array) { in get_array_ptr() 103 name = get_member_name(array); in get_array_ptr() 110 if (!array && type && type->type == SYM_ARRAY) in get_array_ptr() 111 array = expr; in get_array_ptr() 112 if (array) { in get_array_ptr() 113 name = expr_to_var(array); in get_array_ptr() 121 array = xxx_get_array_base(expr); in get_array_ptr() 122 if (!array) in get_array_ptr() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4x_dispatch.c | 36 resp->array = kmem_zalloc(sz, KM_SLEEP); in rfs4_err_resp() 38 resp->array[0].resop = args->array[0].argop; in rfs4_err_resp() 39 resp->status = resp->array[0].nfs_resop4_u.opillegal.status = err; in rfs4_err_resp() 72 if (!valid_first_compound_op(args->array[0].argop)) in verify_compound_args() 75 if (args->array_len > 1 && args->array[0].argop != OP_SEQUENCE) { in verify_compound_args()
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/hsi/mcp/ |
H A D | nvm_meta.txt | 46 foreach var [info vars nvmcfgT::*] {array unset $var} 53 array set Hot_Key {0 {Ctrl S} 1 {Ctrl B} } 55 array set ext_phy {0 {None} 1 {BCM8485x} } 56 array set SMBus_timing {0 {100Khz} 1 {400Khz} } 59 array set fan_failure {0 {Disabled} 1 {Enabled} } 62 array set en_dis {0 {Disabled} 1 {Enabled} } 93 array set aux_mode {0 {Default} 1 {SMBUS only} } 105 array set pkg_method {0 {nvram} 1 {IO_pins} } 106 array set pf_mapping {0 {Continuous} 1 {Fixed} } 108 array set regulator_type {0 {Disabled} 1 {TI} } [all …]
|
/illumos-gate/usr/src/common/ficl/test/ |
H A D | sarray.fr | 2 \ string array... 3 : $array ( caddr u ... caddr u n -- ) 16 s $array s
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | ltable.c | 172 if (!ttisnil(&t->array[i])) { /* a non-nil value? */ in luaH_next() 174 setobj2s(L, key+1, &t->array[i]); in luaH_next() 244 if (!ttisnil(&t->array[i-1])) in numusearray() 274 setnilvalue(&t->array[i]); in setarrayvector() 317 if (!ttisnil(&t->array[i])) in luaH_resize() 318 luaH_setint(L, t, i + 1, &t->array[i]); in luaH_resize() 372 t->array = NULL; in luaH_new() 382 luaM_freearray(L, t->array, t->sizearray); in luaH_free() 449 return &t->array[key-1]; in luaH_getint() 563 if (j > 0 && ttisnil(&t->array[j - 1])) { in luaH_getn() [all …]
|
/illumos-gate/usr/src/cmd/ctstat/ |
H A D | ctstat.c | 738 int *array; in parse() local 744 if ((array = calloc(nids + count, sizeof (int))) == NULL) in parse() 748 (void) memcpy(array, *idsp, nids * sizeof (int)); in parse() 752 (void) walk_args(str, fp, array + nids); in parse() 754 *idsp = array; in parse() 789 compact(int *array, int *size) in compact() argument 793 qsort(array, *size, sizeof (int), int_compar); in compact() 795 if (array[i] != last) { in compact() 796 last = array[i]; in compact() 797 array[j++] = array[i]; in compact()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_009_pos.ksh | 61 array=( "allow" "-s @basic snapshot" 107 subcmd=${array[$i]} 108 options=${array[((i + 1))]}
|