Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/titanic_41/usr/src/cmd/dtrace/test/tst/common/pointers/
H A Dtst.ArrayPointer2.d41 int array[5]; variable
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[0]: %d\tp[0]: %d\n", array[0], p[0]);
53 printf("array[1]: %d\tp[1]: %d\n", array[1], p[1]);
54 printf("array[2]: %d\tp[2]: %d\n", array[2], p[2]);
[all …]
H A Dtst.PointerArithmetic2.d42 int array[5]; variable
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[1]: %d\t*(p+1): %d\n", array[1], *(p+1));
55 printf("array[2]: %d\t*(p+2): %d\n", array[2], *(p+2));
[all …]
H A Dtst.ArrayPointer3.d40 int array[5]; variable
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[0], p[0]);
54 printf("array[1]: %d\tp[1]: %d\n", array[1], p[1]);
55 printf("array[2]: %d\tp[2]: %d\n", array[2], p[2]);
[all …]
H A Dtst.PointerAssignment.d41 int array[3]; variable
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[2]: %d\tptr2[2]: %d\n", array[2], ptr2[2]);
67 /(array[0] != 400) || (array[1] != 800) || (array[2] != 1200)/
H A Dtst.IntegerArithmetic1.d41 int array[3]; variable
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[2]: %d\t*r: %d\n", array[2], *r);
H A Derr.D_DEREF_VOID.VoidPointerDeref.d40 int array[3]; variable
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]; variable
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);
/titanic_41/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;
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_t)n, sizeof(char *), __cmpfunc);
160 if ((ret = __usermem(&array, db_malloc)) != 0)
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/sizeof/
H A Dtst.SizeofArray.d40 int array[5]; variable
44 array[0] = 010;
45 array[1] = 100;
46 array[2] = 210;
48 printf("sizeof (array): %d\n", sizeof (array));
49 printf("sizeof (array[0]): %d\n", sizeof (array[0]));
50 printf("sizeof (array[1]): %d\n", sizeof (array[1]));
51 printf("sizeof (array[2]): %d\n", sizeof (array[2]));
57 /(20 != sizeof (array)) || (4 != sizeof (array[0])) || (4 != sizeof (array[1]))
58 || (4 != sizeof (array[2]))/
/titanic_41/usr/src/cmd/dtrace/test/tst/common/json/
H A Dtst.general.d.out2 tst |empty array|
7 tst |one-element array: integer|
18 tst |one-element array: hex integer (not in spec, not supported)|
23 tst |one-element array: float|
28 tst |one-element array: float + exponent|
33 tst |one-element array: integer + whitespace|
38 tst |one-element array: integer + exponent + whitespace|
43 tst |one-element array: string|
59 tst |one-element array: object|
68 tst |many-element array: integers|
[all …]
/titanic_41/usr/src/cmd/hal/hald-runner/
H A Dutils.c36 GArray *array; in get_string_array() local
38 array = g_array_new(TRUE, FALSE, sizeof(char *)); in get_string_array()
45 g_array_append_vals(array, &t, 1); in get_string_array()
49 g_array_append_vals(array, &extra, 1); in get_string_array()
50 result = (char **) array->data; in get_string_array()
51 g_array_free(array, FALSE); in get_string_array()
58 GArray *array; in get_string_array_from_fd() local
65 array = g_array_new(TRUE, FALSE, sizeof(char *)); in get_string_array_from_fd()
74 g_array_append_vals(array, &t, 1); in get_string_array_from_fd()
78 result = (char **) array->data; in get_string_array_from_fd()
[all …]
/titanic_41/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); in lm_get_context()
39 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID); in lm_get_context_phys()
177 cid_resc = &pdev->context_info->array[cid].cid_resc; in lm_init_cid_resc()
199 struct lm_context_cookie* array = NULL ; in lm_setup_context_pool() local
218 array = context->array ; in lm_setup_context_pool()
223 context->array = array ; in lm_setup_context_pool()
238 if CHK_NULL(context->array) in lm_setup_context_pool()
240 DbgBreakIf(!( context->array)); in lm_setup_context_pool()
244 mm_mem_zero(context->array, sizeof(struct lm_context_cookie)*num_con); in lm_setup_context_pool()
253 context->array[j].next = j+1; in lm_setup_context_pool()
[all …]
/titanic_41/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dptrmove.c54 __m_ptr_move(array, length, start, finish, to) in __m_ptr_move() argument
55 void **array; in __m_ptr_move()
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);
/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_string.c50 static void *append_to_pointer_array(void **array, void *pointer);
377 char **array, in append_to_string_array() argument
386 return ((char **)append_to_pointer_array((void **)array, copy)); in append_to_string_array()
398 char **array) in free_string_array() argument
403 for (i = 0; array[i] != NULL; i++) { in free_string_array()
404 free(array[i]); in free_string_array()
408 free((void *)array); in free_string_array()
441 void **array, in append_to_pointer_array() argument
447 if (array != NULL) { in append_to_pointer_array()
449 for (i = 0; array[i] != NULL; ++i); in append_to_pointer_array()
[all …]
/titanic_41/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dptrmove.c57 __m_ptr_move(void **array, unsigned int length, in __m_ptr_move() argument
64 reverse(array, to, start-1); in __m_ptr_move()
65 reverse(array, start, finish); in __m_ptr_move()
66 reverse(array, to, finish); in __m_ptr_move()
68 reverse(array, start, finish); in __m_ptr_move()
69 reverse(array, finish+1, to-1); in __m_ptr_move()
70 reverse(array, start, to-1); in __m_ptr_move()
/titanic_41/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.c25 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);
/titanic_41/usr/src/lib/udapl/libdat/common/
H A Ddat_dr.c294 DAT_DR_ENTRY **array; in dat_dr_list() local
299 array = NULL; in dat_dr_list()
319 array = dat_os_alloc(array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
320 if (array == NULL) { in dat_dr_list()
329 (DAT_DICTIONARY_DATA *) array, in dat_dr_list()
337 dat_os_free(array, in dat_dr_list()
339 array = NULL; in dat_dr_list()
351 *dat_provider_list[i] = array[i]->info; in dat_dr_list()
357 if (NULL != array) { in dat_dr_list()
358 dat_os_free(array, array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
/titanic_41/usr/src/uts/common/crypto/core/
H A Dkcf_crypto.c39 crypto_free_provider_list(crypto_provider_entry_t *array, uint_t count) in crypto_free_provider_list() argument
41 if (count == 0 || array == NULL) in crypto_free_provider_list()
44 kmem_free(array, count * sizeof (crypto_provider_entry_t)); in crypto_free_provider_list()
50 uint_t *count, crypto_mech_name_t **array) in crypto_get_provider_mechanisms() argument
56 array, count, KM_SLEEP)); in crypto_get_provider_mechanisms()
H A Dkcf_cryptoadm.c287 crypto_get_dev_list(uint_t *count, crypto_dev_list_entry_t **array) in crypto_get_dev_list() argument
307 *array = NULL; in crypto_get_dev_list()
337 *array = p; in crypto_get_dev_list()
348 crypto_get_soft_list(uint_t *count, char **array, size_t *len) in crypto_get_soft_list() argument
401 *array = names; in crypto_get_soft_list()
412 duplicate(char *name, crypto_mech_name_t *array, int count) in duplicate() argument
417 if (strncmp(name, &array[i][0], in duplicate()
431 crypto_mech_name_t **array) in crypto_get_dev_info() argument
496 *array = mech_names; in crypto_get_dev_info()
507 crypto_get_soft_info(caddr_t name, uint_t *count, crypto_mech_name_t **array) in crypto_get_soft_info() argument
[all …]
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_util.c37 zjni_free_array(void **array, zjni_free_f freefunc) in zjni_free_array() argument
39 if (array != NULL) { in zjni_free_array()
42 for (i = 0; array[i] != NULL; i++) { in zjni_free_array()
43 freefunc(array[i]); in zjni_free_array()
46 free(array); in zjni_free_array()
104 jobjectArray array = (*env)->NewObjectArray( in zjni_Collection_to_array() local
109 ((zjni_Collection_t *)list)->method_toArray, array); in zjni_Collection_to_array()
286 zjni_c_string_array_to_java(JNIEnv *env, char **array, int n) in zjni_c_string_array_to_java() argument
294 jstring elementUTF = (*env)->NewStringUTF(env, array[i]); in zjni_c_string_array_to_java()
309 zjni_java_string_array_to_c(JNIEnv *env, jobjectArray array) in zjni_java_string_array_to_c() argument
[all …]
/titanic_41/usr/src/lib/libgen/common/
H A Dbufsplit.c78 bufsplit(char *buf, size_t dim, char **array) in bufsplit() argument
91 if (!dim ^ !array) in bufsplit()
93 if (buf && !dim && !array) { in bufsplit()
99 array[numsplit] = buf; in bufsplit()
110 buf = strrchr(array[numsplit-1], '\0'); in bufsplit()
112 array[i] = buf; in bufsplit()
/titanic_41/usr/src/test/util-tests/tests/libnvpair_json/
H A Dprint_json.c181 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()
203 ch_add_boolean(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_boolean() argument
207 if (array) in ch_add_boolean()
218 ch_add_boolean_value(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_boolean_value() argument
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
306 ch_add_uint8(list_wrap_t **lw, boolean_t array, int argc, char **argv) in ch_add_uint8() argument
[all …]

12345678910>>...12