/illumos-gate/usr/src/uts/i86pc/io/acpi/drmach_acpi/ |
H A D | drmach_acpi.c | 391 drmach_array_t *arr; in drmach_array_new() local 396 if (arr->arr_sz > 0) { in drmach_array_new() 400 arr->arr = kmem_zalloc(arr->arr_sz, KM_SLEEP); in drmach_array_new() 401 return (arr); in drmach_array_new() 403 kmem_free(arr, sizeof (*arr)); in drmach_array_new() 411 if (idx < arr->min_index || idx > arr->max_index) in drmach_array_set() 413 arr->arr[idx - arr->min_index] = val; in drmach_array_set() 424 if (idx < arr->min_index || idx > arr->max_index) in drmach_array_get() 426 *val = arr->arr[idx - arr->min_index]; in drmach_array_get() 467 kmem_free(arr->arr, arr->arr_sz); in drmach_array_dispose() [all …]
|
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_util.h | 55 #define A_CNT(arr) (sizeof (arr)/sizeof (arr[0])) argument 56 #define A_END(arr) (&arr[A_CNT(arr)]) argument
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | pg.c | 52 #define A_CNT(arr) (sizeof (arr) / sizeof (arr[0])) argument
|
H A D | typegraph.c | 430 mdb_ctf_arinfo_t arr; in typegraph_size() local 439 if (mdb_ctf_array_info(type, &arr) == -1) in typegraph_size() 450 return (size * arr.mta_nelems); in typegraph_size() 462 mdb_ctf_arinfo_t arr; in typegraph_offiter() local 630 mdb_ctf_arinfo_t arr; in typegraph_hasfam() local 665 if (arr.mta_nelems != 1) in typegraph_hasfam() 684 mdb_ctf_arinfo_t arr; in typegraph_type_offset() local 2899 mdb_ctf_arinfo_t arr; in findlocks_findmutex() local 2920 for (i = 0; i < arr.mta_nelems; i++) { in findlocks_findmutex() 3264 mdb_ctf_arinfo_t arr; in findfalse_findsync() local [all …]
|
/illumos-gate/usr/src/test/smbclient-tests/include/ |
H A D | utils_common.ksh | 107 typeset -a arr 108 set -A arr x$(ls -l $file 2>/dev/null || echo 0 0 0 0 0);
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | types.sh | 86 x=( typeset -a arr=([2]=abc [4]=(x=1 y=def));zz=abc) 90 typeset -A arr=([foo]=one [bar]=2) 103 typeset -m crr=arr 105 typeset -m arr=crr 222 integer -a arr 225 (( _.arr[0] = 0 )) 226 (( _.arr[1] = 1 )) 227 print ${_.arr[*]} 277 typeset arr
|
H A D | arrays.sh | 540 typeset -a arr=( 544 [[ ${arr[0]} == float ]] || err_exit 'typeset -a should not expand alias for float' 545 unset arr 548 typeset -r -a arr=( 552 [[ ${arr[0]} == float ]] || err_exit 'typeset -r -a should not expand alias for float'
|
H A D | nameref.sh | 672 [[ $ref == "${arr[1]}" ]] || err_exit '$ref shuld be ${arr[1]}' 673 [[ ${ref[@]} == "${arr[1][@]}" ]] || err_exit '${ref[@]} should be ${arr[1][@]}' 692 typeset -n ref='arr[2]' 693 [[ $(typeset -p ref) == *'arr[2]'* ]] || err_exit 'typeset -p ref when ref is a reference to an ind…
|
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/ |
H A D | sun_solaris_array_default_datatype.sh | 74 nameref arr=$1 76 arr[34]+=1.1 84 nameref arr=$1 86 arr[34]+=( float val=1.1 )
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | drmach.c | 120 drmachid_t *arr; member 844 drmach_array_t *arr; in drmach_array_new() local 853 arr->arr = kmem_zalloc(arr->arr_sz, KM_SLEEP); in drmach_array_new() 854 return (arr); in drmach_array_new() 856 kmem_free(arr, sizeof (*arr)); in drmach_array_new() 864 if (idx < arr->min_index || idx > arr->max_index) in drmach_array_set() 867 arr->arr[idx - arr->min_index] = val; in drmach_array_set() 876 if (idx < arr->min_index || idx > arr->max_index) in drmach_array_get() 879 *val = arr->arr[idx - arr->min_index]; in drmach_array_get() 922 kmem_free(arr->arr, arr->arr_sz); in drmach_array_dispose() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lparser.c | 343 Labeldesc *gt = &gl->arr[g]; in closegoto() 355 gl->arr[i] = gl->arr[i + 1]; in closegoto() 367 Labeldesc *gt = &dyd->gt.arr[g]; in findlabel() 370 Labeldesc *lb = &dyd->label.arr[i]; in findlabel() 388 l->arr[n].name = name; in newlabelentry() 389 l->arr[n].line = line; in newlabelentry() 390 l->arr[n].nactvar = ls->fs->nactvar; in newlabelentry() 391 l->arr[n].pc = pc; in newlabelentry() 425 Labeldesc *gt = &gl->arr[i]; in movegotosout() 455 findgotos(ls, &ls->dyd->label.arr[l]); in breaklabel() [all …]
|
H A D | lparser.h | 73 Labeldesc *arr; /* array */ member 82 Vardesc *arr; member
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/ |
H A D | panic_diag.c | 263 char *arr[2]; in swde_panic_solve() local 274 arr[i] = NULL; in swde_panic_solve() 279 arr[i] = buf[i]; in swde_panic_solve() 284 (void) nvlist_add_string_array(defect, "dump-files", arr, in swde_panic_solve()
|
/illumos-gate/usr/src/uts/common/io/zyd/ |
H A D | zyd.h | 48 #define ZYD_ARRAY_LENGTH(arr) (sizeof (arr) / sizeof ((arr)[0])) argument
|
/illumos-gate/usr/src/lib/libiscsit/common/ |
H A D | libiscsit.c | 330 char **arr; in it_config_setprop() local 420 &arr, &count); in it_config_setprop() 424 if (strcasecmp(arr[0], "none") != 0) { in it_config_setprop() 425 ret = it_array_to_portallist(arr, count, in it_config_setprop() 1697 char **arr = NULL; in it_validate_configprops() local 1701 &arr, &acount); in it_validate_configprops() 1704 if (strcasecmp(arr[acount - 1], "none") == 0) { in it_validate_configprops() 1707 if ((it_common_convert_sa(arr[acount - 1], in it_validate_configprops() 1709 PROPERR(errs, arr[acount - 1], in it_validate_configprops()
|
/illumos-gate/usr/src/test/util-tests/tests/awk/syn/ |
H A D | aryprm1.awk | 8 f(arr)
|
H A D | aryprm2.awk | 7 f(arr)
|
H A D | aryprm3.awk | 9 f(arr)
|
H A D | aryprm1.ok | 1 $AWK: can't assign to arr; it's an array name.
|
H A D | aryprm2.ok | 1 $AWK: can't read value of arr; it's an array name.
|
H A D | aryprm3.ok | 1 $AWK: can't read value of arr; it's an array name.
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | __func__.c | 4 char arr[2 * (sizeof __func__ == 2) - 1]; in f() local
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ptrlist.c | 154 int linearize_ptr_list(struct ptr_list *head, void **arr, int max) in linearize_ptr_list() argument 164 memcpy(arr, list->list, i*sizeof(void *)); in linearize_ptr_list() 165 arr += i; in linearize_ptr_list()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | consplat.c | 68 #define A_CNT(arr) (sizeof (arr) / sizeof (arr[0])) argument
|
/illumos-gate/usr/src/uts/common/xen/sys/ |
H A D | privcmd.h | 78 unsigned long *arr; /* array of mfns - top nibble set on err */ member
|