Home
last modified time | relevance | path

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

12345678910>>...13

/titanic_51/usr/src/cmd/dtrace/test/tst/common/pointers/
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]; 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[
[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[
[all...]
H A Dtst.ArrayPointer3.d30 * ASSERTION: In D, the an array variable can be assigned to a pointer.
40 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[
[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[
[all...]
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[
[all...]
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_51/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; global() local
380 char **array, **arrayp, **orig, *strp; global() local
[all...]
/titanic_51/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]; variable
44 array[0] = 010;
45 array[1] = 100;
46 array[2] = 210;
48 printf("sizeof (array): %d\n", sizeof (array));
[all...]
/titanic_51/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
[all...]
/titanic_51/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 in get_string_array_from_fd()
84 free_string_array(char ** array) free_string_array() argument
[all...]
/titanic_51/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()
108 /* init searcher_key_bits array */ in lm_setup_searcher_hash_info()
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()
[all...]
/titanic_51/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_51/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_51/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);
/titanic_51/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.c72 * Count and return the number of mechanisms in an array of crypto_mech_name_t
124 * appropriate array below and comment above. in kcf_soft_config_init()
126 * 2. To add a new provider, create a new *_mechs array listing the in kcf_soft_config_init()
128 * Add the new *_mechs array to initial_soft_config_entry[]. in kcf_soft_config_init()
287 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()
408 * Check if a mechanism name is already in a mechanism name array
412 duplicate(char * name,crypto_mech_name_t * array,int count) duplicate() argument
431 crypto_get_dev_info(char * name,uint_t instance,uint_t * count,crypto_mech_name_t ** array) crypto_get_dev_info() argument
507 crypto_get_soft_info(caddr_t name,uint_t * count,crypto_mech_name_t ** array) crypto_get_soft_info() argument
554 kcf_change_mechs(kcf_provider_desc_t * provider,uint_t count,crypto_mech_name_t * array,crypto_event_change_t direction) kcf_change_mechs() argument
615 kcf_compare_mechs(uint_t count,crypto_mech_name_t * array,uint_t prev_count,crypto_mech_name_t * prev_array) kcf_compare_mechs() argument
781 crypto_load_soft_config(caddr_t name,uint_t count,crypto_mech_name_t * array) crypto_load_soft_config() argument
827 crypto_free_dev_list(crypto_dev_list_entry_t * array,uint_t count) crypto_free_dev_list() argument
840 dup_mech_names(kcf_provider_desc_t * provider,crypto_mech_name_t ** array,uint_t * count,int kmflag) dup_mech_names() argument
971 crypto_build_permitted_mech_names(kcf_provider_desc_t * provider,crypto_mech_name_t ** array,uint_t * count,int kmflag) crypto_build_permitted_mech_names() argument
1048 add_soft_config(char * name,uint_t count,crypto_mech_name_t * array) add_soft_config() argument
[all...]
/titanic_51/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_siz in dat_dr_list()
[all...]
H A Ddat_sr.c230 DAT_SR_ENTRY **array; in dat_sr_list() local
235 array = NULL; in dat_sr_list()
255 array = dat_os_alloc(array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list()
256 if (array == NULL) { in dat_sr_list()
265 (DAT_DICTIONARY_DATA *) array, in dat_sr_list()
273 dat_os_free(array, in dat_sr_list()
275 array = NULL; in dat_sr_list()
287 *dat_provider_list[i] = array[i]->info; in dat_sr_list()
293 if (NULL != array) { in dat_sr_list()
294 dat_os_free(array, array_siz in dat_sr_list()
[all...]
/titanic_51/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) 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[ in bufsplit()
[all...]
/titanic_51/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()
94 /* Convert a zjni_Collection to a (Java) array */
103 /* Create array to hold elements of list */ in zjni_Collection_to_array()
104 jobjectArray array = (*env)->NewObjectArray( in zjni_Collection_to_array() local
107 /* Copy list elements to array */ in zjni_Collection_to_array()
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) zjni_c_string_array_to_java() argument
309 zjni_java_string_array_to_c(JNIEnv * env,jobjectArray array) zjni_java_string_array_to_c() argument
357 zjni_count_elements(void ** array) zjni_count_elements() argument
[all...]
/titanic_51/usr/src/test/util-tests/tests/libnvpair_json/
H A Dprint_json.c40 * (or nvlists, for an array) that we are currently building.
42 * When creating an array, the "next" directive advances lw_pos and allocates a
43 * new nvlist. The "end" directive commits either the nvlist, or array of
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()
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()
260 * (or array o
290 ch_add_byte(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_byte() argument
298 ch_add_int8(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_int8() argument
306 ch_add_uint8(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_uint8() argument
314 ch_add_int16(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_int16() argument
322 ch_add_uint16(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_uint16() argument
330 ch_add_int32(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_int32() argument
338 ch_add_uint32(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_uint32() argument
346 ch_add_int64(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_int64() argument
354 ch_add_uint64(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_uint64() argument
362 ch_add_double(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_double() argument
383 ch_end(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_end() argument
429 ch_next(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_next() argument
452 ch_add_object(list_wrap_t ** lw,boolean_t array,int argc,char ** argv) ch_add_object() argument
[all...]

12345678910>>...13