/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/cmd/cmd-inet/usr.bin/pppd/ |
H A D | pppd.h | 903 #define isset(arr, val) (((u_char *)(arr))[(val)/NBBY] & (1<<((val)%NBBY))) argument 907 #define setbit(arr, val) (((u_char *)(arr))[(val)/NBBY] |= (1<<((val)%NBBY))) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 2044 int *oarr, *arr; in diffnvlists() local 2047 (void) nvpair_value_int32_array(nvp, &arr, &size); in diffnvlists() 2051 diff = (arrays_equal(arr, oarr, size) == in diffnvlists() 2879 int arr[], in print_int_array() argument 2922 while ((arr[y] != x) && (y < size)) in print_int_array() 2934 while ((arr[y] == x) && (y < size)) in print_int_array() 3412 int *arr; in printnvlist() local 3414 (void) nvpair_value_int32_array(nvp, &arr, in printnvlist() 3429 print_int_array(fp, arr, size, in printnvlist() 6047 int *arr; in readnvpair() local [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_defn.c | 306 char *arrbase, *arr; in inj_defn_memcmp_intr_array() local 441 boolean_t *arr; in inj_defn_memcmp_bool_array() local 451 arr = inj_zalloc(arrsz); in inj_defn_memcmp_bool_array() 470 inj_free(arr, arrsz); in inj_defn_memcmp_bool_array() 505 const char **arr; in inj_defn_memcmp_strenum_array() local 514 arr = inj_zalloc(arrsz); in inj_defn_memcmp_strenum_array() 534 arr[i] = elem->dfm_str; in inj_defn_memcmp_strenum_array() 541 inj_free(arr, arrsz); in inj_defn_memcmp_strenum_array() 637 nvlist_t **arr; in inj_defn_memcmp_sub_array() local 646 arr = inj_zalloc(arrsz); in inj_defn_memcmp_sub_array() [all …]
|
/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/cmd/fm/schemes/mem/ |
H A D | mem_util.c | 34 mem_strarray_free(char **arr, size_t dim) in mem_strarray_free() argument 39 if (arr[i] != NULL) in mem_strarray_free() 40 fmd_fmri_strfree(arr[i]); in mem_strarray_free() 42 fmd_fmri_free(arr, sizeof (char *) * dim); in mem_strarray_free()
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 2121 char **arr; in itadm_opt_to_arr() local 2139 arr = calloc(count, sizeof (char *)); in itadm_opt_to_arr() 2140 if (!arr) { in itadm_opt_to_arr() 2149 (void) bufsplit(bufp, count, arr); in itadm_opt_to_arr() 2156 return (nvlist_add_string_array(nvl, key, arr, count)); in itadm_opt_to_arr()
|
/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/cmd/ps/ |
H A D | ps.c | 2117 search(pid_t *arr, int number, pid_t arg) in search() argument 2122 if (arg == arr[i]) in search()
|
/illumos-gate/usr/src/cmd/ptools/pargs/ |
H A D | pargs.c | 1142 convert_array(pargs_data_t *datap, char **arr, size_t count, int *unprintable) in convert_array() argument 1147 if (arr == NULL) in convert_array() 1151 if ((tmp = arr[i]) == NULL) in convert_array() 1153 arr[i] = convert_str(datap, arr[i], unprintable); in convert_array()
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | spray.c | 66 sprayarr arr; in main() local 119 arr.sprayarr_len = lnth - SPRAYOVERHEAD; in main() 120 arr.sprayarr_val = (char *)buf; in main() 128 sprayproc_spray_1nd(&arr, clnt); in main()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | _conv.h | 81 #define ARRAY_NELTS(arr) (sizeof (arr) / sizeof (*arr)) argument
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | rc_node.c | 7424 rc_notify_info_add_watch(rc_notify_info_t *rnip, const char **arr, in rc_notify_info_add_watch() argument 7445 if (arr[i] == NULL) in rc_notify_info_add_watch() 7451 if (strcmp(arr[i], f) == 0) { in rc_notify_info_add_watch() 7463 arr[i] = f; in rc_notify_info_add_watch()
|
/illumos-gate/usr/src/common/crypto/arcfour/ |
H A D | arcfour_crypt.c | 79 key->arr[i] = key->arr[j]; in arcfour_key_init() 143 key->arr[i] = key->arr[j]; in arcfour_crypt() 145 tmp = key->arr[i] + key->arr[j]; in arcfour_crypt() 162 arr = key->arr; in arcfour_crypt() 171 ti = arr[i]; in arcfour_crypt() 173 tj = arr[j]; in arcfour_crypt() 174 arr[j] = ti; in arcfour_crypt() 188 ti = arr[i]; in arcfour_crypt() 190 tj = arr[j]; in arcfour_crypt() 191 arr[j] = ti; in arcfour_crypt() [all …]
|
/illumos-gate/usr/src/common/crypto/arcfour/sun4v/ |
H A D | arcfour_crypt.c | 43 key->arr[i] = (uchar_t)i; in arcfour_key_init() 48 tmp = key->arr[i]; in arcfour_key_init() 49 key->arr[i] = key->arr[j]; in arcfour_key_init() 50 key->arr[j] = tmp; in arcfour_key_init() 71 base = key->arr; in arcfour_crypt() 84 j = j + key->arr[i]; in arcfour_crypt() 85 tmp = key->arr[i]; in arcfour_crypt() 86 key->arr[i] = key->arr[j]; in arcfour_crypt() 87 key->arr[j] = tmp; in arcfour_crypt() 88 tmp = key->arr[i] + key->arr[j]; in arcfour_crypt() [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_types.c | 304 int ptr, arr; in ctf_type_qlname() local 326 arr = cd.cd_order[CTF_PREC_ARRAY] > CTF_PREC_ARRAY; in ctf_type_qlname() 328 rp = arr ? CTF_PREC_ARRAY : ptr ? CTF_PREC_POINTER : -1; in ctf_type_qlname() 329 lp = ptr ? CTF_PREC_POINTER : arr ? CTF_PREC_ARRAY : -1; in ctf_type_qlname()
|
/illumos-gate/usr/src/common/exacct/ |
H A D | exacct_core.c | 155 uint8_t arr[2]; in exacct_order16() member 160 s = t.arr[0]; in exacct_order16() 161 t.arr[0] = t.arr[1]; in exacct_order16() 162 t.arr[1] = s; in exacct_order16() 178 uint16_t arr[2]; in exacct_order32() member 185 s = t.arr[0]; in exacct_order32() 186 t.arr[0] = t.arr[1]; in exacct_order32() 187 t.arr[1] = s; in exacct_order32() 210 s = t.arr[0]; in exacct_order64() 211 t.arr[0] = t.arr[1]; in exacct_order64() [all …]
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 1354 it_array_to_portallist(char **arr, uint32_t count, uint32_t default_port, in it_array_to_portallist() argument 1363 if (!arr || !portallist || !list_count) { in it_array_to_portallist() 1371 if (!arr[i]) { in it_array_to_portallist() 1380 if (it_common_convert_sa(arr[i], in it_array_to_portallist()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/ |
H A D | RELEASE | 104 the wrong state after expanding with ${arr[@]} has been fixed. 136 12-04-18 A bug in which "${arr[@]:i:j}" and "${@:i:j}" generated the empty 184 12-03-22 A bug in which ${ref[@}} did not behave like ${arr[i][@]} when 185 ref is a name reference to arr[i] has been fixed. 186 12-03-21 A bug in which assigning a compound variable into arr[i], where 187 arr[i] is an array variable did not work correctly has been fixed. 188 12-03-21 A bug with multi-dimenstional index arrays in which ${arr[i][j]} 277 11-12-26 A bug in array assignments of the form arr=( $arr[i] ...) in which 278 arr was not unset before the assignment has been fixed. 521 10-11-24 A bug in which a name reference is make to arr[0] when arr is not [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | append.sh | 86 unset x z arr 92 typeset -a arr=(a=b b=c) 93 arr+=(c=d d=e) 95 [[ $(typeset -p arr) == "$exp" ]] || err_exit 'append (c=d d=e) to index array not working'
|
H A D | arith.sh | 492 $SHELL -c 'x=();x.arr[0]=(z=3); ((x.arr[0].z=2))' 2> /dev/null || err_exit '(((x.arr[0].z=2)) shoul…
|
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 | arrays2.sh | 212 typeset -a arr=( ( 00 ) ( 01 ) ( 02 ) ( 03 ) ( 04 ) ( 05 ) ( 06 ) ( 07 ) ( 08 ) ( 09 ) ( 10 ) ) 214 { y=$( echo ${arr[i][j]} ) ;} 2> /dev/null
|
H A D | enum.sh | 64 typeset -a[X_t] arr 68 typeset -a [Color_t] arr 69 arr[green]=foo 70 [[ ${arr[1]} == ${arr[green]} ]] || err_exit 'arr[1] != arr[green]' 71 read -A arr <<< 'x y z xx yy' 72 [[ ${arr[1]} == ${arr[green]} ]] || err_exit 'arr[1] != arr[green] after read'
|