Searched refs:array (Results 1 - 25 of 211) sorted by relevance

123456789

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/sizeof/
H A Dtst.SizeofArray.d31 * type. For a simpler array, the sizeof on the array variable itself gives
32 * the sum total of memory allocated to the array in bytes. With individual
33 * members of the array it gives their respective sizes.
40 int array[5];
44 array[0] = 010;
45 array[1] = 100;
46 array[2] = 210;
48 printf("sizeof (array): %d\n", sizeof (array));
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pointers/
H A Derr.D_DEREF_VOID.VoidPointerDeref.d40 int array[3];
44 array[0] = 234;
45 array[1] = 334;
46 array[2] = 434;
48 p = &array[0];
50 printf("array[0]: %d, p: %d\n", array[0], *p);
H A Dtst.VoidCast.d40 int array[3];
44 array[0] = 234;
45 array[1] = 334;
46 array[2] = 434;
48 p = &array[0];
51 printf("array[0]: %d, newp: %d\n", array[0], *newp);
H A Dtst.PointerAssignment.d41 int array[3];
47 array[0] = 200;
48 array[1] = 400;
49 array[2] = 600;
51 ptr1 = array;
58 printf("array[0]: %d\tptr2[0]: %d\n", array[0], ptr2[0]);
59 printf("array[1]: %d\tptr2[1]: %d\n", array[1], ptr2[1]);
60 printf("array[
[all...]
H A Dtst.ArrayPointer2.d30 * ASSERTION: D permits the use of array [] index notation with both pointer
31 * variables and array variables.
41 int array[5];
44 array[0] = 100;
45 array[1] = 200;
46 array[2] = 300;
47 array[3] = 400;
48 array[4] = 500;
50 p = &array[0];
52 printf("array[
[all...]
H A Dtst.ArrayPointer3.d30 * ASSERTION: In D, the an array variable can be assigned to a pointer.
40 int array[5];
45 array[0] = 100;
46 array[1] = 200;
47 array[2] = 300;
48 array[3] = 400;
49 array[4] = 500;
51 p = array;
53 printf("array[0]: %d\tp[0]: %d\n", array[
[all...]
H A Dtst.PointerArithmetic2.d42 int array[5];
45 array[0] = 100;
46 array[1] = 200;
47 array[2] = 300;
48 array[3] = 400;
49 array[4] = 500;
51 p = &array[0];
53 printf("array[0]: %d\t*p: %d\n", array[0], *p);
54 printf("array[
[all...]
H A Dtst.IntegerArithmetic1.d41 int array[3];
49 array[0] = 20;
50 array[1] = 40;
51 array[2] = 80;
53 uptr = (uintptr_t) &array[0];
59 printf("array[0]: %d\t*p: %d\n", array[0], *p);
60 printf("array[1]: %d\t*q: %d\n", array[1], *q);
61 printf("array[
[all...]
H A Derr.InvalidAddress5.d45 int array[2];
53 array[0] = 0x12345678;
54 array[1] = 0xabcdefff;
56 ptr = (char *) &array[0];
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dutils.c36 GArray *array; local
38 array = g_array_new(TRUE, FALSE, sizeof(char *));
45 g_array_append_vals(array, &t, 1);
49 g_array_append_vals(array, &extra, 1);
50 result = (char **) array->data;
51 g_array_free(array, FALSE);
58 GArray *array; local
65 array = g_array_new(TRUE, FALSE, sizeof(char *));
74 g_array_append_vals(array, &t, 1);
78 result = (char **) array
84 free_string_array(char **array) argument
[all...]
H A Dutils.h33 void free_string_array(char **array);
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_crypto.c39 crypto_free_provider_list(crypto_provider_entry_t *array, uint_t count) argument
41 if (count == 0 || array == NULL)
44 kmem_free(array, count * sizeof (crypto_provider_entry_t));
50 uint_t *count, crypto_mech_name_t **array)
56 array, count, KM_SLEEP));
49 crypto_get_provider_mechanisms(crypto_minor_t *cm, crypto_provider_id_t id, uint_t *count, crypto_mech_name_t **array) argument
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dptrmove.c57 __m_ptr_move(void **array, unsigned int length, argument
64 reverse(array, to, start-1);
65 reverse(array, start, finish);
66 reverse(array, to, finish);
68 reverse(array, start, finish);
69 reverse(array, finish+1, to-1);
70 reverse(array, start, to-1);
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_archive.c50 char **array, **arrayp, *name, *p, *pref, buf[MAXPATHLEN]; local
113 if ((ret = __os_malloc(sizeof(char *) * array_size, NULL, &array)) != 0)
115 array[0] = NULL;
117 /* Build an array of the file names. */
129 if ((ret = __os_realloc(&array,
135 if ((ret = __absname(pref, name, &array[n])) != 0)
139 if ((ret = __os_strdup(p + 1, &array[n])) != 0)
143 array[n] = name;
146 array[++n] = NULL;
157 qsort(array, (size_
191 char **array, **arrayp, *p, *real_name; local
380 char **array, **arrayp, **orig, *strp; local
[all...]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dptrmove.c54 __m_ptr_move(array, length, start, finish, to)
55 void **array;
61 array, length, start, finish, to
68 reverse(array, to, start-1);
69 reverse(array, start, finish);
70 reverse(array, to, finish);
72 reverse(array, start, finish);
73 reverse(array, finish+1, to-1);
74 reverse(array, start, to-1);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetisax.c42 * As a convenience, the routine returns the maximum number of array alements
46 getisax(uint32_t *array, uint_t n) argument
59 array[0] = auxv_hwcap;
61 array[1] = auxv_hwcap_2;
63 array[i] = 0;
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_create.c38 obj->array = (DynPtr) malloc(1);
40 obj->array = (DynPtr) malloc(0);
66 obj1->array = (char *) malloc(obj1->el_size * obj1->size);
67 if (obj1->array == NULL) {
71 memcpy(obj->array, obj1->array,
83 obj->el_size * obj->size, obj->array);
84 memset(obj->array, 0, obj->el_size * obj->size);
86 free(obj->array);
H A Ddyn_delete.c46 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
57 obj->el_size*(obj->num_el - idx), obj->array,
61 memmove(obj->array + idx*obj->el_size,
62 obj->array + (idx+1)*obj->el_size,
65 bcopy(obj->array + (idx+1)*obj->el_size,
66 obj->array + idx*obj->el_size,
73 obj->el_size, obj->array,
75 memset(obj->array + obj->el_size*(obj->num_el - 1), 0,
H A Ddyn_insert.c43 (obj->num_el-idx)*obj->el_size, obj->array,
49 memmove(obj->array + obj->el_size*(idx + num),
50 obj->array + obj->el_size*idx,
53 bcopy(obj->array + obj->el_size*idx,
54 obj->array + obj->el_size*(idx + num),
60 obj->el_size*num, els, obj->array, obj->el_size*idx);
63 memmove(obj->array + obj->el_size*idx, els, obj->el_size*num);
65 bcopy(els, obj->array + obj->el_size*idx, obj->el_size*num);
H A Ddyn_put.c24 fprintf(stderr, "dyn: array: returning array pointer %d.\n",
25 obj->array);
27 return obj->array;
49 obj->array, obj->el_size*num);
51 return (DynPtr) obj->array + obj->el_size*num;
86 obj->el_size, el, obj->array, idx*obj->el_size);
92 memmove(obj->array + idx*obj->el_size, el, obj->el_size);
94 bcopy(el, obj->array + idx*obj->el_size, obj->el_size);
/illumos-gate/usr/src/lib/libgen/common/
H A Dbufsplit.c34 * Fill pointer array with pointers to fields.
35 * Return the number of fields assigned to the array[].
36 * The remainder of the array elements point to the end of the buffer.
39 * The delimiters are changed to null-bytes in the buffer and array of
78 bufsplit(char *buf, size_t dim, char **array) argument
91 if (!dim ^ !array)
93 if (buf && !dim && !array) {
99 array[numsplit] = buf;
110 buf = strrchr(array[numsplit-1], '\0');
112 array[
[all...]
/illumos-gate/usr/src/cmd/lvm/metassist/common/
H A Dvolume_string.c50 static void *append_to_pointer_array(void **array, void *pointer);
355 * Appends a copy of the given string to the given string array,
356 * ensuring that the last element in the array is NULL. This array
359 * Note when an error occurs and NULL is returned, array is not freed.
360 * Subsequently callers should save a pointer to the original array
363 * @param array
364 * the array to append to, or NULL to create a new array
367 * the string to copy and add to the array
376 append_to_string_array( char **array, char *str) argument
397 free_string_array( char **array) argument
440 append_to_pointer_array( void **array, void *pointer) argument
[all...]
H A Dvolume_string.h168 * Appends a copy of the given string to the given string array,
169 * ensuring that the last element in the array is NULL. This array
172 * Note when an error occurs and NULL is returned, array is not freed.
173 * Subsequently callers should save a pointer to the original array
176 * @param array
177 * the array to append to, or NULL to create a new array
180 * the string to copy and add to the array
182 * @return a pointer to the realloc'd (and possibly moved) array
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_009_pos.ksh61 array=( "allow" "-s @basic snapshot"
106 while ((i < ${#array[@]})); do
107 subcmd=${array[$i]}
108 options=${array[((i + 1))]}
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbnxe_context.c17 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID);
39 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID);
108 /* init searcher_key_bits array */
177 cid_resc = &pdev->context_info->array[cid].cid_resc;
199 struct lm_context_cookie* array = NULL ; local
218 array = context->array ;
223 context->array = array ;
238 if CHK_NULL(context->array)
[all...]

Completed in 115 milliseconds

123456789