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

12345678910

/illumos-gate/usr/src/tools/smatch/src/validation/
H A DWoverride-init-def.c1 static int array[] = { variable
H A DWoverride-init-no.c1 static int array[] = { variable
H A DWoverride-init-yes.c1 static int array[] = { variable
H A Dsm_mtag3.c4 int array[10]; variable
9 __smatch_implied((unsigned long)(array + 1) - (unsigned long)array);
10 __smatch_implied(array + 1 - array);
11 __smatch_implied(array + 1);
24 sm_mtag3.c:9 main() implied: (array[1]) - array = '4'
25 sm_mtag3.c:10 main() implied: array[1] - array
[all...]
H A Dsm_buf_size6.c8 int array[1000]; local
14 __smatch_buf_size(array);
15 __smatch_buf_size(&array);
16 __smatch_buf_size(&array[0]);
27 sm_buf_size6.c:14 function() buf size: 'array' 1000 elements, 4000 bytes
28 sm_buf_size6.c:15 function() buf size: '&array' 1000 elements, 4000 bytes
29 sm_buf_size6.c:16 function() buf size: '&array[0]' 1000 elements, 4000 bytes
H A Dtype1.c4 * When evaluating the argument to the inline function for the array, Sparse
17 char array[10]; member in struct:hello
22 return deref(arg->array);
H A Dsm_mtag5.c13 int array[10]; variable
20 __smatch_implied(array);
21 __smatch_implied(&array[1]);
34 sm_mtag5.c:20 main() implied: array = '7934625272050024448'
35 sm_mtag5.c:21 main() implied: &array[1] = '7934625272050024452'
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Darray.c1 static char array[128]; variable
/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/mandoc/
H A Ddba_array.c37 int32_t pos; /* Map position of this array. */
44 struct dba_array *array; local
47 array = mandoc_malloc(sizeof(*array));
48 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep));
49 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em));
50 array->ea = ea;
51 array
60 dba_array_free(struct dba_array *array) argument
75 dba_array_set(struct dba_array *array, int32_t ie, void *entry) argument
89 dba_array_add(struct dba_array *array, void *entry) argument
103 dba_array_get(struct dba_array *array, int32_t ie) argument
111 dba_array_start(struct dba_array *array) argument
117 dba_array_next(struct dba_array *array) argument
129 dba_array_del(struct dba_array *array) argument
138 dba_array_undel(struct dba_array *array) argument
144 dba_array_setpos(struct dba_array *array, int32_t ie, int32_t pos) argument
150 dba_array_getpos(struct dba_array *array) argument
156 dba_array_sort(struct dba_array *array, dba_compare_func func) argument
163 dba_array_writelen(struct dba_array *array, int32_t nmemb) argument
170 dba_array_writepos(struct dba_array *array) argument
181 dba_array_writelst(struct dba_array *array) argument
[all...]
/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...]
/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/tools/smatch/src/
H A Dsmatch_array_values.c41 static int is_file_local(struct expression *array) argument
46 name = expr_to_str_sym(array, &sym);
57 static char *get_toplevel_name(struct expression *array) argument
62 if (is_array(array))
63 array = get_array_base(array);
65 if (!array || array->type != EXPR_SYMBOL)
67 if (!is_file_local(array))
70 name = expr_to_str(array);
77 get_member_array(struct expression *array) argument
90 get_array_name(struct expression *array) argument
111 struct expression *array; local
161 struct expression *left, *array; local
[all...]
/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/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);

Completed in 226 milliseconds

12345678910