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

1234567891011>>

/freebsd-current/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-current/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-current/contrib/mandoc/
H A Ddba_array.c39 int32_t pos; /* Map position of this array. */
46 struct dba_array *array; local
49 array = mandoc_malloc(sizeof(*array));
50 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep));
51 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em));
52 array->ea = ea;
53 array
62 dba_array_free(struct dba_array *array) argument
77 dba_array_set(struct dba_array *array, int32_t ie, void *entry) argument
91 dba_array_add(struct dba_array *array, void *entry) argument
105 dba_array_get(struct dba_array *array, int32_t ie) argument
113 dba_array_start(struct dba_array *array) argument
119 dba_array_next(struct dba_array *array) argument
131 dba_array_del(struct dba_array *array) argument
140 dba_array_undel(struct dba_array *array) argument
146 dba_array_setpos(struct dba_array *array, int32_t ie, int32_t pos) argument
152 dba_array_getpos(struct dba_array *array) argument
158 dba_array_sort(struct dba_array *array, dba_compare_func func) argument
165 dba_array_writelen(struct dba_array *array, int32_t nmemb) argument
172 dba_array_writepos(struct dba_array *array) argument
183 dba_array_writelst(struct dba_array *array) argument
[all...]
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_gcc_variable_array_init.c1 /* gcc: variable array initializer */
4 int array[i]; local
6 foo(array[i] = 0);
/freebsd-current/crypto/heimdal/base/
H A Darray.c50 heim_array_t array = ptr; local
52 for (n = 0; n < array->len; n++)
53 heim_release(array->val[n]);
54 free(array->val);
68 * Allocate an array
70 * @return A new allocated array, free with heim_release()
76 heim_array_t array; local
78 array = _heim_alloc_object(&array_object, sizeof(*array));
79 if (array
110 heim_array_append_value(heim_array_t array, heim_object_t object) argument
132 heim_array_iterate_f(heim_array_t array, heim_array_iterator_f_t fn, void *ctx) argument
148 heim_array_iterate(heim_array_t array, void (^fn)(heim_object_t)) argument
165 heim_array_get_length(heim_array_t array) argument
181 heim_array_copy_value(heim_array_t array, size_t idx) argument
196 heim_array_delete_value(heim_array_t array, size_t idx) argument
221 heim_array_filter(heim_array_t array, int (^block)(heim_object_t)) argument
[all...]
/freebsd-current/sys/contrib/ck/src/
H A Dck_array.c50 ck_array_init(struct ck_array *array, unsigned int mode, struct ck_malloc *allocator, unsigned int length) argument
66 array->n_entries = 0;
67 array->allocator = allocator;
68 array->active = active;
69 array->transaction = NULL;
74 ck_array_put(struct ck_array *array, void *value) argument
81 * modification of the array.
83 if (array->transaction == NULL) {
84 target = array->active;
86 if (array
129 ck_array_put_unique(struct ck_array *array, void *value) argument
150 ck_array_remove(struct ck_array *array, void *value) argument
203 ck_array_commit(ck_array_t *array) argument
227 ck_array_deinit(struct ck_array *array, bool defer) argument
[all...]
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Darray.inc12 // [array], class template array
13 using std::array;
18 // [array.special], specialized algorithms
21 // [array.creation], array creation functions
24 // [array.tuple], tuple interface
/freebsd-current/sbin/ipf/libipf/
H A Dprintipfexpr.c11 printipfexpr(int *array) argument
16 nelems = array[0];
19 ipfe = (ipfexp_t *)(array + i);
29 printhosts(array + i);
34 printsingle(array + i);
39 printhosts(array + i);
44 printhosts(array + i);
49 printport(array + i);
54 printport(array + i);
59 printport(array
134 printsingle(int *array) argument
149 printport(int *array) argument
164 printhosts(int *array) argument
181 printhostsv6(int *array) argument
[all...]
/freebsd-current/contrib/libcbor/examples/
H A Dsort.c30 cbor_item_t *array = cbor_new_definite_array(4); local
31 bool success = cbor_array_push(array, cbor_move(cbor_build_uint8(4)));
32 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(3)));
33 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(1)));
34 success &= cbor_array_push(array, cbor_move(cbor_build_uint8(2)));
37 qsort(cbor_array_handle(array), cbor_array_size(array), sizeof(cbor_item_t *),
40 cbor_describe(array, stdout);
/freebsd-current/usr.bin/dc/
H A Dstack.c28 static struct array *array_new(void);
29 static __inline void array_free(struct array *);
30 static struct array *array_dup(const struct array *);
31 static __inline void array_grow(struct array *, size_t);
32 static __inline void array_assign(struct array *, size_t, const struct value *);
33 static __inline struct value *array_retrieve(const struct array *, size_t);
69 array_free(v->array);
70 v->array = NULL;
93 copy->array
310 array_grow(struct array *array, size_t newsize) argument
323 array_assign(struct array *array, size_t i, const struct value *v) argument
333 array_retrieve(const struct array *array, size_t i) argument
[all...]
/freebsd-current/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-current/contrib/ldns/
H A Dradix.c56 static int ldns_radix_str_create(ldns_radix_array_t* array, uint8_t* key,
61 static int ldns_radix_array_split(ldns_radix_array_t* array, uint8_t* key,
104 node->array = NULL;
202 /** Find some space in the array for the first byte */
205 LDNS_FREE(prefix->array);
212 prefix->array[0].edge = add;
216 len, &prefix->array[0].str,
217 &prefix->array[0].len)) {
219 LDNS_FREE(prefix->array);
242 /** Find some space in the array fo
950 ldns_radix_str_create(ldns_radix_array_t* array, uint8_t* key, radix_strlen_t pos, radix_strlen_t len) argument
999 ldns_radix_array_split(ldns_radix_array_t* array, uint8_t* key, radix_strlen_t pos, radix_strlen_t len, ldns_radix_node_t* add) argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DSHA1.h18 #include <array>
43 std::array<uint8_t, 20> final();
49 std::array<uint8_t, 20> result();
52 static std::array<uint8_t, 20> hash(ArrayRef<uint8_t> Data);
77 void final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult);
H A DSHA256.h25 #include <array>
50 std::array<uint8_t, 32> final();
56 std::array<uint8_t, 32> result();
59 static std::array<uint8_t, 32> hash(ArrayRef<uint8_t> Data);
84 void final(std::array<uint32_t, HASH_LENGTH / 4> &HashResult);
/freebsd-current/contrib/unbound/util/storage/
H A Dslabhash.c59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*));
60 if(!sl->array) {
77 sl->array[i] = lruhash_create(start_size, maxmem / sl->size,
79 if(!sl->array[i]) {
91 if(sl->array) {
94 lruhash_delete(sl->array[i]);
95 free(sl->array);
106 lruhash_clear(sl->array[i]);
119 lruhash_insert(sl->array[slab_idx(sl, hash)], hash, entry, data, arg);
125 return lruhash_lookup(sl->array[slab_id
[all...]
/freebsd-current/tools/tools/sortbench/
H A Dsort_bench.c68 * Sort an array with the given algorithm
95 * Sort an array of randomly generated integers
101 int *array = malloc(size); local
102 arc4random_buf(array, size);
103 sort(array, elts, s);
104 free(array);
108 * Sort an array of increasing integers
114 int *array = malloc(size); local
116 array[i] = i;
118 sort(array, elt
129 int *array = malloc(size); local
147 int *array = malloc(size); local
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/
H A Demutls.c31 // sized element in this array. Disable this for warn-as-error builds.
38 uintptr_t size; // number of elements in the 'data' array
46 static void emutls_shutdown(emutls_address_array *array);
101 emutls_address_array *array = (emutls_address_array *)ptr; local
102 if (array->skip_destructor_rounds > 0) {
109 array->skip_destructor_rounds--;
110 emutls_setspecific(array);
112 emutls_shutdown(array);
260 static void emutls_shutdown(emutls_address_array *array) { argument
261 if (array) {
328 emutls_check_array_set_size(emutls_address_array *array, uintptr_t size) argument
356 emutls_address_array *array = emutls_getspecific(); local
394 emutls_address_array *array = emutls_get_address_array(index--); local
[all...]
/freebsd-current/contrib/llvm-project/libcxx/include/__fwd/
H A Darray.h22 struct _LIBCPP_TEMPLATE_VIS array; variable in typeref:struct:_LIBCPP_TEMPLATE_VIS

Completed in 365 milliseconds

1234567891011>>