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

12345678910

/freebsd-9.3-release/cddl/contrib/opensolaris/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...]
/freebsd-9.3-release/cddl/contrib/opensolaris/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];
/freebsd-9.3-release/usr.bin/dc/
H A Dstack.c30 static struct array *array_new(void);
31 static __inline void array_free(struct array *);
32 static struct array *array_dup(const struct array *);
33 static __inline void array_grow(struct array *, size_t);
34 static __inline void array_assign(struct array *, size_t, const struct value *);
35 static __inline struct value *array_retrieve(const struct array *, size_t);
71 if (v->array != NULL) {
72 array_free(v->array);
73 v->array
319 array_grow(struct array *array, size_t newsize) argument
332 array_assign(struct array *array, size_t i, const struct value *v) argument
342 array_retrieve(const struct array *array, size_t i) argument
[all...]
H A Dbcode.h43 struct array;
50 struct array *array; member in struct:value
54 struct array { struct
/freebsd-9.3-release/contrib/bind9/lib/isc/
H A Dheap.c41 * element of the heap array is not used; i.e. heap subscripts are 1-based,
60 ! heap->compare(heap->array[(i)], \
61 heap->array[heap_parent(i)]))
70 void **array; member in struct:isc_heap
97 heap->array = NULL;
114 if (heap->array != NULL)
115 isc_mem_put(heap->mctx, heap->array,
134 if (heap->array != NULL) {
135 memmove(new_array, heap->array, heap->size * sizeof(void *));
136 isc_mem_put(heap->mctx, heap->array,
[all...]
/freebsd-9.3-release/contrib/ntp/lib/isc/
H A Dheap.c41 * element of the heap array is not used; i.e. heap subscripts are 1-based,
60 ! heap->compare(heap->array[(i)], \
61 heap->array[heap_parent(i)]))
70 void **array; member in struct:isc_heap
97 heap->array = NULL;
114 if (heap->array != NULL)
115 isc_mem_put(heap->mctx, heap->array,
134 if (heap->array != NULL) {
135 memcpy(new_array, heap->array, heap->size * sizeof(void *));
136 isc_mem_put(heap->mctx, heap->array,
[all...]
/freebsd-9.3-release/contrib/ntp/sntp/unity/auto/
H A DparseOutput.rb59 def testPassed(array)
60 lastItem = array.length - 1
61 testName = array[lastItem - 1]
62 testSuiteVerify(array[@className])
70 def testIgnored(array)
71 lastItem = array.length - 1
72 testName = array[lastItem - 2]
73 reason = array[lastItem].chomp
74 testSuiteVerify(array[@className])
84 def testFailed(array)
[all...]
/freebsd-9.3-release/sys/dev/hptmv/
H A Dgui_lib.c92 if ((pVDevice->u.array.dArStamp != 0) && (pVDevice == p))
120 /* The array is disabled */
127 /* array need synchronizing */
128 if(pVDevice->u.array.rf_need_rebuild && !pVDevice->u.array.rf_duplicate_and_create)
131 /* array is in rebuilding process */
132 if(pVDevice->u.array.rf_rebuilding)
135 /* array is being verified */
136 if(pVDevice->u.array.rf_verifying)
139 /* array i
[all...]
H A Dioctl.c130 memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME);
176 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying ||
177 pArray->u.array.rf_initializing)
180 for(i=0; i<pArray->u.array.bArnMember; i++) {
181 pa = pArray->u.array.pMember[i];
183 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying ||
184 pa->u.array.rf_initializing)
407 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array
[all...]
H A Dhptproc.c79 if ((pArray=ArrayTables(i))->u.array.dArStamp==0)
82 if (pArray->u.array.rf_need_rebuild && !pArray->u.array.rf_rebuilding)
84 (UCHAR)((pArray->u.array.CriticalMembers || pArray->VDeviceType == VD_RAID_1)? DUPLICATE : REBUILD_PARITY));
93 if ((pArray=ArrayTables(i))->u.array.dArStamp==0)
96 if (pArray->u.array.rf_rebuilding)
97 pArray->u.array.rf_abort_rebuild = 1;
147 pSubArray->u.array.rf_auto_rebuild = 0;
148 pSubArray->u.array.rf_abort_rebuild = 0;
154 for (i = 0; (UCHAR)i < pArray->u.array
[all...]
/freebsd-9.3-release/contrib/binutils/bfd/
H A Delf-strtab.c52 /* Number of array entries alloced. */
57 struct elf_strtab_hash_entry **array; member in struct:elf_strtab_hash
114 table->array = bfd_malloc (table->alloced * amt);
115 if (table->array == NULL)
121 table->array[0] = NULL;
132 free (tab->array);
168 tab->array = bfd_realloc (tab->array, tab->alloced * amt);
169 if (tab->array == NULL)
174 tab->array[entr
302 struct elf_strtab_hash_entry **array, **a, *e; local
[all...]
/freebsd-9.3-release/sys/ofed/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c113 * serialize access to the array.
118 void *mthca_array_get(struct mthca_array *array, int index) argument
122 if (array->page_list[p].page)
123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK];
128 int mthca_array_set(struct mthca_array *array, int index, void *value) argument
133 if (!array->page_list[p].page)
134 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC);
136 if (!array->page_list[p].page)
139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value;
140 ++array
145 mthca_array_clear(struct mthca_array *array, int index) argument
160 mthca_array_init(struct mthca_array *array, int nent) argument
177 mthca_array_cleanup(struct mthca_array *array, int nent) argument
[all...]
/freebsd-9.3-release/contrib/binutils/ld/
H A Dsysdep.h58 # define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset])
/freebsd-9.3-release/sys/compat/netbsd/
H A Ddvcfg.h51 #define DVCFG_HWSEL_SZ(array) (sizeof(array) / sizeof(dvcfg_hw_t))
/freebsd-9.3-release/contrib/bind9/lib/dns/include/dns/
H A Drdataclass.h67 char *array, unsigned int size);
70 * into the character array 'array', which is of size 'size'.
76 * Minimum size of array to pass to dns_rdataclass_format().
H A Drdatatype.h67 char *array, unsigned int size);
70 * into the character array 'array', which is of size 'size'.
77 * Minimum size of array to pass to dns_rdatatype_format().
/freebsd-9.3-release/contrib/texinfo/info/
H A Dinfo.h60 array where POINTER should be added. GROW is the number of slots to grow
63 #define add_pointer_to_array(pointer, idx, array, slots, grow, type) \
66 array = (type *)(xrealloc (array, (slots += grow) * sizeof (type))); \
67 array[idx++] = (type)pointer; \
68 array[idx] = (type)NULL; \
/freebsd-9.3-release/sys/dev/isci/scil/
H A Dsci_pool.h92 type array[(pool_size) + 1]; \
144 (this_pool).size = (sizeof((this_pool).array) / sizeof((this_pool).array[0])); \
155 (my_value) = (this_pool).array[(this_pool).get]; \
165 (this_pool).array[(this_pool).put] = (the_value); \

Completed in 130 milliseconds

12345678910