/freebsd/contrib/mandoc/ |
H A D | dba_array.c | 32 void **ep; /* Array of entries. */ 33 int32_t *em; /* Array of map positions. */ 39 int32_t pos; /* Map position of this array. */ 46 struct dba_array *array; in dba_array_new() local 49 array = mandoc_malloc(sizeof(*array)); in dba_array_new() 50 array->ep = mandoc_reallocarray(NULL, ea, sizeof(*array->ep)); in dba_array_new() 51 array->em = mandoc_reallocarray(NULL, ea, sizeof(*array->em)); in dba_array_new() 52 array->ea = ea; in dba_array_new() 53 array->eu = 0; in dba_array_new() 54 array->ed = 0; in dba_array_new() [all …]
|
/freebsd/crypto/heimdal/base/ |
H A D | array.c | 50 heim_array_t array = ptr; in array_dealloc() local 52 for (n = 0; n < array->len; n++) in array_dealloc() 53 heim_release(array->val[n]); in array_dealloc() 54 free(array->val); in array_dealloc() 68 * Allocate an array 70 * @return A new allocated array, free with heim_release() 76 heim_array_t array; in heim_array_create() local 78 array = _heim_alloc_object(&array_object, sizeof(*array)); in heim_array_create() 79 if (array == NULL) in heim_array_create() 82 array->val = NULL; in heim_array_create() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_array.c | 50 ck_array_init(struct ck_array *array, unsigned int mode, struct ck_malloc *allocator, unsigned int … in ck_array_init() argument 66 array->n_entries = 0; in ck_array_init() 67 array->allocator = allocator; in ck_array_init() 68 array->active = active; in ck_array_init() 69 array->transaction = NULL; in ck_array_init() 74 ck_array_put(struct ck_array *array, void *value) in ck_array_put() argument 81 * modification of the array. in ck_array_put() 83 if (array->transaction == NULL) { in ck_array_put() 84 target = array->active; in ck_array_put() 86 if (array->n_entries == target->length) { in ck_array_put() [all …]
|
/freebsd/share/man/man4/ |
H A D | ciss.4 | 96 Compaq Smart Array 5300 (simple mode only) 98 Compaq Smart Array 532 100 Compaq Smart Array 5i 102 HP Smart Array 5312 104 HP Smart Array 6i 106 HP Smart Array 641 108 HP Smart Array 642 110 HP Smart Array 6400 112 HP Smart Array 6400 EM 114 HP Smart Array E200 [all …]
|
/freebsd/contrib/ldns/ |
H A D | radix.c | 56 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; in ldns_radix_new_node() 202 /** Find some space in the array for the first byte */ in ldns_radix_insert() 205 LDNS_FREE(prefix->array); in ldns_radix_insert() 212 prefix->array[0].edge = add; in ldns_radix_insert() 216 len, &prefix->array[0].str, in ldns_radix_insert() 217 &prefix->array[0].len)) { in ldns_radix_insert() 219 LDNS_FREE(prefix->array); in ldns_radix_insert() 242 /** Find some space in the array for the byte. */ in ldns_radix_insert() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | array | 14 array synopsis 19 struct array 36 void swap(array& a) noexcept(is_nothrow_swappable_v<T>); // constexpr in C++20 75 array(T, U...) -> array<T, 1 + sizeof...(U)>; // C++17 78 bool operator==(const array<T,N>& x, const array<T,N>& y); // constexpr in C++20 80 bool operator!=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 82 bool operator<(const array<T,N>& x, const array<T,N>& y); // removed in C++20 84 bool operator>(const array<T,N>& x, const array<T,N>& y); // removed in C++20 86 bool operator<=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 88 bool operator>=(const array<T,N>& x, const array<T,N>& y); // removed in C++20 [all …]
|
/freebsd/sys/dev/hptmv/ |
H A D | gui_lib.c | 92 if ((pVDevice->u.array.dArStamp != 0) && (pVDevice == p)) in check_VDevice_valid() 120 /* The array is disabled */ in get_array_flag() 127 /* array need synchronizing */ in get_array_flag() 128 if(pVDevice->u.array.rf_need_rebuild && !pVDevice->u.array.rf_duplicate_and_create) in get_array_flag() 131 /* array is in rebuilding process */ in get_array_flag() 132 if(pVDevice->u.array.rf_rebuilding) in get_array_flag() 135 /* array is being verified */ in get_array_flag() 136 if(pVDevice->u.array.rf_verifying) in get_array_flag() 139 /* array is being initialized */ in get_array_flag() 140 if(pVDevice->u.array.rf_initializing) in get_array_flag() [all …]
|
H A D | ioctl.c | 123 memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME); in ioctl_ReportEvent() 170 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array() 171 pArray->u.array.rf_initializing) in hpt_delete_array() 174 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array() 175 pa = pArray->u.array.pMember[i]; in hpt_delete_array() 177 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array() 178 pa->u.array.rf_initializing) in hpt_delete_array() 386 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 407 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl() 421 if(pArray->u.array.rf_rebuilding == 0) in Kernel_DeviceIoControl() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | printipfexpr.c | 11 printipfexpr(int *array) in printipfexpr() argument 16 nelems = array[0]; in printipfexpr() 19 ipfe = (ipfexp_t *)(array + i); in printipfexpr() 29 printhosts(array + i); in printipfexpr() 34 printsingle(array + i); in printipfexpr() 39 printhosts(array + i); in printipfexpr() 44 printhosts(array + i); in printipfexpr() 49 printport(array + i); in printipfexpr() 54 printport(array + i); in printipfexpr() 59 printport(array + i); in printipfexpr() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pointers/ |
H A D | tst.ArrayPointer2.d | 30 * ASSERTION: D permits the use of array [] index notation with both pointer 31 * variables and array variables. 33 * SECTION: Pointers and Arrays/Pointer and Array Relationship 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]; [all …]
|
H A D | tst.ArrayPointer3.d | 30 * ASSERTION: In D, the an array variable can be assigned to a pointer. 32 * SECTION: Pointers and Arrays/Pointer and Array Relationship 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[0], p[0]); [all …]
|
H A D | tst.PointerArithmetic2.d | 34 * SECTION: Pointers and Arrays/Pointer and Array Relationship 42 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)); [all …]
|
H A D | tst.PointerAssignment.d | 33 * SECTION: Pointers and Arrays/Pointer and Array Relationship 41 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)/
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/ |
H A D | tst.general.d | 38 TST("empty array"); 42 TST("one-element array: integer"); 49 TST("one-element array: hex integer (not in spec, not supported)"); 53 TST("one-element array: float"); 57 TST("one-element array: float + exponent"); 61 TST("one-element array: integer + whitespace"); 65 TST("one-element array: integer + exponent + whitespace"); 69 TST("one-element array: string"); 80 TST("one-element array: object"); 86 TST("many-element array: integers"); [all …]
|
H A D | tst.general.d.out | 2 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: integers| [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/sizeof/ |
H A D | tst.SizeofArray.d | 31 * 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)); 49 printf("sizeof (array[0]): %d\n", sizeof (array[0])); 50 printf("sizeof (array[1]): %d\n", sizeof (array[1])); [all …]
|
/freebsd/contrib/libcbor/src/cbor/ |
H A D | arrays.h | 20 * @param item An array 28 * @param item An array 36 * @param item An array 48 * If the index is out of bounds, the array is not modified and false is 51 * @param item An array 64 * @param item An array 74 /** Is the array definite? 76 * @param item An array 77 * @return Is the array definite? 82 /** Is the array indefinite? [all …]
|
/freebsd/sys/dev/hptrr/ |
H A D | hptintf.h | 86 * Identify array (logical device) and physical device. 92 * Array types 93 * GUI will treat all array as 1-level RAID. No RAID0/1 or RAID1/0. 95 * Their members may be another array of type RAID0 or RAID1. 144 * array flags 146 #define ARRAY_FLAG_DISABLED 0x00000001 /* The array is disabled */ 147 #define ARRAY_FLAG_NEEDBUILDING 0x00000002 /* array data need to be rebuilt */ 148 #define ARRAY_FLAG_REBUILDING 0x00000004 /* array is in rebuilding process */ 150 #define ARRAY_FLAG_BOOTDISK 0x00000010 /* array has a active partition */ 152 #define ARRAY_FLAG_BOOTMARK 0x00000040 /* array has boot mark set */ [all …]
|
/freebsd/tools/tools/sortbench/ |
H A D | sort_bench.c | 68 * Sort an array with the given algorithm 95 * Sort an array of randomly generated integers 101 int *array = malloc(size); in rand_bench() local 102 arc4random_buf(array, size); in rand_bench() 103 sort(array, elts, s); in rand_bench() 104 free(array); in rand_bench() 108 * Sort an array of increasing integers 114 int *array = malloc(size); in sort_bench() local 116 array[i] = i; in sort_bench() 118 sort(array, elts, s); in sort_bench() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageExporterJson.cpp | 17 // -- Data: array => Homogeneous array of one or more export objects 19 // -- Files: array => List of objects describing coverage for files 21 // -- Branches: array => List of Branches in the file 23 // -- MCDC Records: array => List of MCDC records in the file 24 // -- MCDC Values: array => List of T/F covered condition values 25 // -- Segments: array => List of Segments contained in the file 27 // -- Expansions: array => List of expansion records 30 // -- TargetRegions: array => List of Regions in the expansion 32 // -- Branches: array => List of Branches in the expansion 40 // -- Functions: array => List of objects describing coverage for functions [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | hptintf.h | 87 * Identify array (logical device) and physical device. 93 * Array types 94 * GUI will treat all array as 1-level RAID. No RAID0/1 or RAID1/0. 96 * Their members may be another array of type RAID0 or RAID1. 146 * array flags 148 #define ARRAY_FLAG_DISABLED 0x00000001 /* The array is disabled */ 149 #define ARRAY_FLAG_NEEDBUILDING 0x00000002 /* array data need to be rebuilt */ 150 #define ARRAY_FLAG_REBUILDING 0x00000004 /* array is in rebuilding process */ 152 #define ARRAY_FLAG_BOOTDISK 0x00000010 /* array has a active partition */ 154 #define ARRAY_FLAG_BOOTMARK 0x00000040 /* array has boot mark set */ [all …]
|
/freebsd/sys/dev/hptnr/ |
H A D | hptintf.h | 86 * Identify array (logical device) and physical device. 92 * Array types 93 * GUI will treat all array as 1-level RAID. No RAID0/1 or RAID1/0. 95 * Their members may be another array of type RAID0 or RAID1. 144 * array flags 146 #define ARRAY_FLAG_DISABLED 0x00000001 /* The array is disabled */ 147 #define ARRAY_FLAG_NEEDBUILDING 0x00000002 /* array data need to be rebuilt */ 148 #define ARRAY_FLAG_REBUILDING 0x00000004 /* array is in rebuilding process */ 150 #define ARRAY_FLAG_BOOTDISK 0x00000010 /* array has a active partition */ 152 #define ARRAY_FLAG_BOOTMARK 0x00000040 /* array has boot mark set */ [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_allocator.c | 111 * Array of pointers with lazy allocation of leaf pages. Callers of 113 * serialize access to the array. 118 void *mthca_array_get(struct mthca_array *array, int index) in mthca_array_get() argument 122 if (array->page_list[p].page) in mthca_array_get() 123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK]; in mthca_array_get() 128 int mthca_array_set(struct mthca_array *array, int index, void *value) in mthca_array_set() argument 133 if (!array->page_list[p].page) in mthca_array_set() 134 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC); in mthca_array_set() 136 if (!array->page_list[p].page) in mthca_array_set() 139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value; in mthca_array_set() [all …]
|
/freebsd/contrib/libcbor/test/ |
H A D | array_test.c | 117 cbor_item_t *array = cbor_new_definite_array(2); in test_array_replace() local 118 assert_size_equal(cbor_array_size(array), 0); in test_array_replace() 125 assert_false(cbor_array_replace(array, 0, three)); in test_array_replace() 129 assert_true(cbor_array_push(array, one)); in test_array_replace() 130 assert_true(cbor_array_push(array, cbor_move(cbor_build_uint8(2)))); in test_array_replace() 132 assert_size_equal(cbor_array_size(array), 2); in test_array_replace() 134 // Array has only two items in test_array_replace() 135 assert_false(cbor_array_replace(array, 2, three)); in test_array_replace() 139 assert_true(cbor_array_replace(array, 0, three)); in test_array_replace() 142 assert_uint8(cbor_move(cbor_array_get(array, 0)), 3); in test_array_replace() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | BinaryStreamArray.h | 1 //===- BinaryStreamArray.h - Array backed by an arbitrary stream *- C++ -*-===// 11 /// provides two different array implementations. 19 /// elements of the array need not be laid out in contiguous memory. 54 /// VarStreamArray represents an array of variable length records backed by a 130 /// given an offset into the array's underlying stream, return an 163 VarStreamArrayIterator(const ArrayType &Array, const Extractor &E, in VarStreamArrayIterator() argument 165 : IterRef(Array.Stream.drop_front(Offset)), Extract(E), in VarStreamArrayIterator() 166 Array(&Array), AbsOffset(Offset), HadError(HadError) { in VarStreamArrayIterator() 183 if (Array && R.Array) { 184 // Both have a valid array, make sure they're same. [all …]
|