Home
last modified time | relevance | path

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

12345678910>>...15

/illumos-gate/usr/src/cmd/mandoc/
H A Ddba_array.c49 array = mandoc_malloc(sizeof(*array)); in dba_array_new()
93 if (array->eu == array->ea) { in dba_array_add()
115 array->ec = array->eu; in dba_array_start()
121 if (array->ec < array->eu) in dba_array_next()
125 while (array->ec < array->eu && array->em[array->ec] == -1) in dba_array_next()
127 return array->ec < array->eu ? array->ep[array->ec] : NULL; in dba_array_next()
133 if (array->ec < array->eu && array->em[array->ec] != -1) { in dba_array_del()
134 array->em[array->ec] = -1; in dba_array_del()
142 memset(array->em, 0, sizeof(*array->em) * array->eu); in dba_array_undel()
161 qsort(array->ep, array->eu, sizeof(*array->ep), func); in dba_array_sort()
[all …]
/illumos-gate/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]);
63 /(array[0] != p[0]) || (array[1] != p[1]) || (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));
64 /(array[0] != *p) || (array[1] != *(p+1)) || (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]);
64 /(array[0] != p[0]) || (array[1] != p[1]) || (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);
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_archive.c115 array[0] = NULL;
143 array[n] = name;
146 array[++n] = NULL;
163 *listp = array;
197 array[0] = NULL;
238 array[++n] = NULL;
268 array[last] = array[nxt];
272 strcmp(array[last], array[nxt]) == 0; ++nxt) {
315 *listp = array;
323 if (array != NULL)
[all …]
/illumos-gate/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]))/
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_softc.c55 ret = ss->array[item]; in ddi_get_soft_state()
100 void **array; in ddi_soft_state_zalloc() local
114 array = ss->array; /* NULL if ss->n_items == 0 */ in ddi_soft_state_zalloc()
173 ss->array = (array = new_array); in ddi_soft_state_zalloc()
177 ASSERT(array != NULL && item < ss->n_items && array[item] == NULL); in ddi_soft_state_zalloc()
179 array[item] = new_element; in ddi_soft_state_zalloc()
189 void **array; in ddi_soft_state_free() local
203 if ((array = ss->array) == NULL || ss->size == 0) { in ddi_soft_state_free()
209 } else if (array[item] != NULL) { in ddi_soft_state_free()
210 element = array[item]; in ddi_soft_state_free()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_array_values.c62 if (is_array(array)) in get_toplevel_name()
63 array = get_array_base(array); in get_toplevel_name()
65 if (!array || array->type != EXPR_SYMBOL) in get_toplevel_name()
67 if (!is_file_local(array)) in get_toplevel_name()
70 name = expr_to_str(array); in get_toplevel_name()
82 name = get_member_name(array); in get_member_array()
95 type = get_type(array); in get_array_name()
111 struct expression *array; in get_array_rl() local
121 array = get_array_base(expr); in get_array_rl()
122 name = get_array_name(array); in get_array_rl()
[all …]
H A Dcheck_off_by_one_relative.c32 struct expression *array; in array_check() local
42 array = get_array_base(expr); in array_check()
43 size = get_size_variable(array, &limit_type); in array_check()
53 array_str = expr_to_str(array); in array_check()
62 struct expression *array; in known_access_ok_numbers() local
67 array = get_array_base(expr); in known_access_ok_numbers()
70 size = get_array_size(array); in known_access_ok_numbers()
82 struct expression *array; in array_check_data_info() local
99 array = get_array_base(expr); in array_check_data_info()
116 if (db_var_is_array_limit(array, comp->left_var, comp->left_vsl)) { in array_check_data_info()
[all …]
H A Dsmatch_constraints_required.c117 if (!array || !array->ident) in handle_zero_size_arrays()
363 struct expression *array; in match_assign_ARRAY_SIZE() local
370 array = strip_expr(expr->right); in match_assign_ARRAY_SIZE()
371 if (array->type != EXPR_BINOP || array->op != '+') in match_assign_ARRAY_SIZE()
373 array = strip_expr(array->left); in match_assign_ARRAY_SIZE()
374 if (array->type != EXPR_BINOP || array->op != '/') in match_assign_ARRAY_SIZE()
376 array = strip_expr(array->left); in match_assign_ARRAY_SIZE()
377 if (array->type != EXPR_SIZEOF) in match_assign_ARRAY_SIZE()
379 array = strip_expr(array->cast_expression); in match_assign_ARRAY_SIZE()
380 if (array->type != EXPR_PREOP || array->op != '*') in match_assign_ARRAY_SIZE()
[all …]
H A Dsmatch_buf_comparison.c267 struct expression *array; in array_check() local
277 array = get_array_base(expr); in array_check()
369 struct expression *array; in buf_comparison_index_ok() local
375 array = get_array_base(expr); in buf_comparison_index_ok()
398 struct expression *array; in known_access_ok_numbers() local
403 array = get_array_base(expr); in known_access_ok_numbers()
406 size = get_array_size(array); in known_access_ok_numbers()
418 struct expression *array; in array_check_data_info() local
551 if (arg == array) in buf_size_param_comparison()
693 struct expression *array; in set_used() local
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/json/
H A Dtst.general.d.out2 tst |empty array|
7 tst |one-element array: integer|
184 sel |top.mid.array|
188 sel |top.array|
190 sel |top.array[0]|
192 sel |top.array[1]|
194 sel |top.array[2]|
196 sel |top.array[2].a|
198 sel |top.array[2].b|
200 sel |top.array[2].bb|
[all …]
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dutils.c36 GArray *array; in get_string_array() local
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
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()
79 g_array_free(array, FALSE); in get_string_array_from_fd()
84 free_string_array(char **array) in free_string_array() argument
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dbnxe_context.c218 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()
330 if CHK_NULL(context->array) in lm_alloc_context_pool()
526 if(!context->array[cid].ip_type) { in lm_searcher_mirror_hash_remove()
559 context->array[cid].ip_type = 0; in lm_searcher_mirror_hash_remove()
560 context->array[cid].h_val = 0; in lm_searcher_mirror_hash_remove()
633 context->array[cid].next = 0; in lm_allocate_cid()
634 context->array[cid].prev = 0; in lm_allocate_cid()
[all …]
/illumos-gate/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);
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Ddegenerate-ptr.c1 extern int array[3];
14 fia(array); in call()
16 fip(array); in call()
19 fvp(array); in call()
36 ip = array; in local()
39 vp = array; in local()
57 ip = array; in global()
60 vp = array; in global()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_mtag3.c4 int array[10]; variable
9 __smatch_implied((unsigned long)(array + 1) - (unsigned long)array); in main()
10 __smatch_implied(array + 1 - array); in main()
11 __smatch_implied(array + 1); in main()
/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.c47 memset(obj->array + idx*obj->el_size, 0, obj->el_size);
58 obj->el_size*(obj->num_el - idx), obj->array,
62 memmove(obj->array + idx*obj->el_size,
63 obj->array + (idx+1)*obj->el_size,
66 bcopy(obj->array + (idx+1)*obj->el_size,
67 obj->array + idx*obj->el_size,
74 obj->el_size, obj->array,
76 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);
/illumos-gate/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()

12345678910>>...15