Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/netbsd-src/external/mit/libcbor/dist/test/
H A Dtype_4_test.c17 cbor_item_t *arr; variable
23 arr = cbor_load(data1, 2, &res); in test_empty_array()
24 assert_non_null(arr); in test_empty_array()
25 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_empty_array()
26 assert_true(cbor_isa_array(arr)); in test_empty_array()
27 assert_true(cbor_array_size(arr) == 0); in test_empty_array()
29 cbor_decref(&arr); in test_empty_array()
30 assert_null(arr); in test_empty_array()
36 arr = cbor_load(data2, 3, &res); in test_simple_array()
37 assert_non_null(arr); in test_simple_array()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dcharmap.pl14 my ($i, @arr);
35 $arr[$i] = 0;
37 $arr[$i] |= $ESC_CTRL;
44 $arr[$i] |= $PSTRING_CHAR | $HOST_ANY;
52 $arr[ord(" ")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC | $RFC2253_LAST_ESC;
53 $arr[ord("#")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC;
55 $arr[ord(",")] |= $NOESC_QUOTE | $RFC2253_ESC;
56 $arr[ord("+")] |= $NOESC_QUOTE | $RFC2253_ESC;
57 $arr[ord("\"")] |= $RFC2253_ESC;
58 $arr[ord("\\")] |= $RFC2253_ESC;
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Dcharmap.pl14 my ($i, @arr);
35 $arr[$i] = 0;
37 $arr[$i] |= $ESC_CTRL;
44 $arr[$i] |= $PSTRING_CHAR | $HOST_ANY;
52 $arr[ord(" ")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC | $RFC2253_LAST_ESC;
53 $arr[ord("#")] |= $NOESC_QUOTE | $RFC2253_FIRST_ESC;
55 $arr[ord(",")] |= $NOESC_QUOTE | $RFC2253_ESC;
56 $arr[ord("+")] |= $NOESC_QUOTE | $RFC2253_ESC;
57 $arr[ord("\"")] |= $RFC2253_ESC;
58 $arr[ord("\\")] |= $RFC2253_ESC;
[all …]
/netbsd-src/external/gpl3/gcc/dist/libgcc/
H A Demutls.c77 struct __emutls_array *arr = ptr; in emutls_destroy() local
78 pointer size = arr->size; in emutls_destroy()
83 if (arr->data[i]) in emutls_destroy()
84 free (arr->data[i][-1]); in emutls_destroy()
170 struct __emutls_array *arr = __gthread_getspecific (emutls_key); in __emutls_get_address() local
171 if (__builtin_expect (arr == NULL, 0)) in __emutls_get_address()
174 arr = calloc (size + 1, sizeof (void *)); in __emutls_get_address()
175 if (arr == NULL) in __emutls_get_address()
177 arr->size = size; in __emutls_get_address()
178 __gthread_setspecific (emutls_key, (void *) arr); in __emutls_get_address()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/
H A Demutls.c77 struct __emutls_array *arr = ptr; in emutls_destroy() local
78 pointer size = arr->size; in emutls_destroy()
83 if (arr->data[i]) in emutls_destroy()
84 free (arr->data[i][-1]); in emutls_destroy()
170 struct __emutls_array *arr = __gthread_getspecific (emutls_key); in __emutls_get_address() local
171 if (__builtin_expect (arr == NULL, 0)) in __emutls_get_address()
174 arr = calloc (size + 1, sizeof (void *)); in __emutls_get_address()
175 if (arr == NULL) in __emutls_get_address()
177 arr->size = size; in __emutls_get_address()
178 __gthread_setspecific (emutls_key, (void *) arr); in __emutls_get_address()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libobjc/
H A Dsarray.c212 struct sarray *arr; in sarray_new() local
225 arr = (struct sarray *) objc_malloc (sizeof (struct sarray)); in sarray_new()
226 arr->version.version = 0; in sarray_new()
230 arr->capacity = num_indices*INDEX_CAPACITY; in sarray_new()
234 arr->empty_index = (struct sindex *) objc_malloc (sizeof (struct sindex)); in sarray_new()
235 arr->empty_index->version.version = 0; in sarray_new()
242 arr->capacity = num_indices*BUCKET_SIZE; in sarray_new()
251 arr->empty_bucket = (struct sbucket *) objc_malloc (sizeof (struct sbucket)); in sarray_new()
252 arr->empty_bucket->version.version = 0; in sarray_new()
256 arr->ref_count = 1; in sarray_new()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libobjc/
H A Dsarray.c212 struct sarray *arr; in sarray_new() local
225 arr = (struct sarray *) objc_malloc (sizeof (struct sarray)); in sarray_new()
226 arr->version.version = 0; in sarray_new()
230 arr->capacity = num_indices*INDEX_CAPACITY; in sarray_new()
234 arr->empty_index = (struct sindex *) objc_malloc (sizeof (struct sindex)); in sarray_new()
235 arr->empty_index->version.version = 0; in sarray_new()
242 arr->capacity = num_indices*BUCKET_SIZE; in sarray_new()
251 arr->empty_bucket = (struct sbucket *) objc_malloc (sizeof (struct sbucket)); in sarray_new()
252 arr->empty_bucket->version.version = 0; in sarray_new()
256 arr->ref_count = 1; in sarray_new()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/gcc/
H A Demutls.d138 TlsArray* arr; in __emutls_get_address() local
140 arr = cast(TlsArray*) __gthread_getspecific(emutlsKey); in __emutls_get_address()
142 arr = &singleArray; in __emutls_get_address()
145 if (__builtin_expect(arr == null, 0)) in __emutls_get_address()
147 arr = mallocTlsArray(offset); in __emutls_get_address()
148 __gthread_setspecific(emutlsKey, arr); in __emutls_get_address()
150 emutlsArrays[arr] = arr; in __emutls_get_address()
154 else if (__builtin_expect(offset > arr.length, 0)) in __emutls_get_address()
156 (*arr).ensureLength(offset); in __emutls_get_address()
164 void** ret = (*arr)[index]; in __emutls_get_address()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/gcc/
H A Demutls.d139 TlsArray* arr; in __emutls_get_address() local
141 arr = cast(TlsArray*) __gthread_getspecific(emutlsKey); in __emutls_get_address()
143 arr = &singleArray; in __emutls_get_address()
146 if (__builtin_expect(arr == null, 0)) in __emutls_get_address()
148 arr = mallocTlsArray(offset); in __emutls_get_address()
149 __gthread_setspecific(emutlsKey, arr); in __emutls_get_address()
151 emutlsArrays[arr] = arr; in __emutls_get_address()
155 else if (__builtin_expect(offset > arr.length, 0)) in __emutls_get_address()
157 (*arr).ensureLength(offset); in __emutls_get_address()
165 void** ret = (*arr)[index]; in __emutls_get_address()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/internal/test/
H A Ddummyrange.d49 T arr = uinttestData; member
53 T arr; member
64 arr = uinttestData.dup; in reinit()
70 arr = arr[1..$]; in popFront()
75 return arr.length == 0; in empty()
82 return arr[0]; in inout()
89 return arr[0]; in front()
94 arr[0] = val; in front()
110 arr = arr[0..$ - 1]; in popBack()
117 return arr[$ - 1]; in inout()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/internal/test/
H A Ddummyrange.d49 T arr = uinttestData; member
53 T arr; member
64 arr = uinttestData.dup; in reinit()
70 arr = arr[1..$]; in popFront()
75 return arr.length == 0; in empty()
82 return arr[0]; in inout()
89 return arr[0]; in front()
94 arr[0] = val; in front()
110 arr = arr[0..$ - 1]; in popBack()
117 return arr[$ - 1]; in inout()
[all …]
/netbsd-src/external/bsd/tradcpp/dist/
H A Darray.h164 struct array arr; \
184 array_init(&a->arr); \
190 array_cleanup(&a->arr); \
213 return array_num(&a->arr); \
219 return (T *)array_get(&a->arr, index_); \
225 array_set(&a->arr, index_, (void *)val); \
231 array_setsize(&a->arr, num); \
237 array_add(&a->arr, (void *)val, ret); \
243 array_insert(&a->arr, index_); \
249 array_remove(&a->arr, index_); \
[all …]
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/nssov/nss-pam-ldapd/
H A Dnslcd-prot.h119 #define WRITE_STRINGLIST(fp, arr) \ argument
120 if ((arr) == NULL) \
122 DEBUG_PRINT("WRITE_STRLST: var="__STRING(arr)" num=%d", 0); \
128 for (tmp3int32 = 0; (arr)[tmp3int32] != NULL; tmp3int32++) \
131 DEBUG_PRINT("WRITE_STRLST: var="__STRING(arr)" num=%d", (int)tmp3int32); \
136 WRITE_STRING(fp, (arr)[tmp2int32]); \
140 #define WRITE_STRINGLIST_EXCEPT(fp, arr, not) \ argument
143 for (tmp2int32 = 0; (arr)[tmp2int32] != NULL; tmp2int32++) \
144 if (strcmp((arr)[tmp2int32], (not)) != 0) \
147 DEBUG_PRINT("WRITE_STRLST: var="__STRING(arr)" num=%d", (int)tmp3int32); \
[all …]
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/
H A Dgprofng.cc231 char **arr = (char **) malloc ((argc + 5) * sizeof (char *)); in exec_cmd() local
237 arr[n++] = dbe_sprintf ("--whoami=%s %s %s", whoami, tool_name, in exec_cmd()
240 arr[n++] = dbe_sprintf ("--whoami=%s %s", whoami, tool_name); in exec_cmd()
250 arr[n++] = dbe_sprintf ("--gprofngdir=%.*s", in exec_cmd()
254 arr[n++] = argv[i]; in exec_cmd()
255 arr[n] = NULL; in exec_cmd()
256 arr[0] = exe_name; in exec_cmd()
260 for (int i = 0; arr[i]; i++) in exec_cmd()
261 printf ("%5d: %s\n", i, arr[i]); in exec_cmd()
264 execv (arr[0], arr); in exec_cmd()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/array/
H A Dcapacity.d39 size_t _d_arraysetlengthT(return scope ref Tarr arr, size_t newlength) @trusted pure nothrow in _d_arraysetlengthT() argument
47 ._d_arraysetlengthT(ti, newlength, cast(void[]*)&arr); in _d_arraysetlengthT()
49 ._d_arraysetlengthiT(ti, newlength, cast(void[]*)&arr); in _d_arraysetlengthT()
51 return arr.length; in _d_arraysetlengthT()
74 int[] arr;
75 _d_arraysetlengthTImpl!(typeof(arr))._d_arraysetlengthT(arr, 16);
76 assert(arr.length == 16);
77 foreach (int i; arr)
/netbsd-src/external/bsd/libbind/dist/resolv/
H A Dres_findzonecut.c256 rr_a *arr; in add_addrs() local
259 for (arr = HEAD(nsrr->addrs); arr != NULL; arr = NEXT(arr, link)) { in add_addrs()
262 *addrs++ = arr->addr; in add_addrs()
586 rr_a *arr; in save_a() local
603 arr = malloc(sizeof *arr); in save_a()
604 if (arr == NULL) { in save_a()
608 INIT_LINK(arr, link); in save_a()
609 memset(&arr->addr, 0, sizeof(arr->addr)); in save_a()
612 arr->addr.sin.sin_family = AF_INET; in save_a()
614 arr->addr.sin.sin_len = sizeof(arr->addr.sin); in save_a()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/
H A Dgprofng.cc231 char **arr = (char **) malloc ((argc + 3) * sizeof (char *)); in exec_cmd() local
234 arr[n++] = dbe_sprintf ("%.*s%s", (int) (get_basename (pname) - pname), in exec_cmd()
237 arr[n++] = dbe_sprintf ("--whoami=%s %s %s", whoami, tool_name, in exec_cmd()
240 arr[n++] = dbe_sprintf ("--whoami=%s %s", whoami, tool_name); in exec_cmd()
242 arr[n++] = argv[i]; in exec_cmd()
243 arr[n] = NULL; in exec_cmd()
247 for (int i = 0; arr[i]; i++) in exec_cmd()
248 printf ("%5d: %s\n", i, arr[i]); in exec_cmd()
251 execv (arr[0], arr); in exec_cmd()
254 fprintf (stderr, GTXT ("%s failed: %s\n"), arr[0], STR (strerror (errno))); in exec_cmd()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bn/
H A Dbn_gf2m.c393 int arr[6]; in BN_GF2m_mod() local
396 ret = BN_GF2m_poly2arr(p, arr, OSSL_NELEM(arr)); in BN_GF2m_mod()
397 if (!ret || ret > (int)OSSL_NELEM(arr)) { in BN_GF2m_mod()
401 ret = BN_GF2m_mod_arr(r, a, arr); in BN_GF2m_mod()
470 int *arr; in BN_GF2m_mod_mul() local
476 arr = OPENSSL_malloc(sizeof(*arr) * max); in BN_GF2m_mod_mul()
477 if (arr == NULL) { in BN_GF2m_mod_mul()
481 ret = BN_GF2m_poly2arr(p, arr, max); in BN_GF2m_mod_mul()
486 ret = BN_GF2m_mod_mul_arr(r, a, b, arr, ctx); in BN_GF2m_mod_mul()
489 OPENSSL_free(arr); in BN_GF2m_mod_mul()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/container/
H A Darray.d85 auto arr = Array!int(0, 2, 3); variable
86 assert(arr[0] == 0);
87 assert(arr.front == 0);
88 assert(arr.back == 3);
91 arr.reserve(1000);
92 assert(arr.length == 3);
93 assert(arr.capacity >= 1000);
96 arr.insertBefore(arr[1..$], 1);
97 assert(arr.front == 0);
98 assert(arr.length == 4);
[all …]
/netbsd-src/lib/libresolv/
H A Dres_findzonecut.c259 rr_a *arr; in add_addrs() local
262 TAILQ_FOREACH(arr, &nsrr->addrs, link) { in add_addrs()
265 *addrs++ = arr->addr; in add_addrs()
586 rr_a *arr; in save_a() local
603 arr = malloc(sizeof *arr); in save_a()
604 if (arr == NULL) { in save_a()
608 memset(&arr->addr, 0, sizeof(arr->addr)); in save_a()
611 arr->addr.sin.sin_family = AF_INET; in save_a()
613 arr->addr.sin.sin_len = sizeof(arr->addr.sin); in save_a()
615 memcpy(&arr->addr.sin.sin_addr, ns_rr_rdata(rr), in save_a()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/
H A Dpostblit.d28 package void postblitRecurse(E, size_t n)(ref E[n] arr) in postblitRecurse()
40 destructRecurse(arr[i - 1]); // What to do if this throws? in postblitRecurse()
44 for (i = 0; i < arr.length; ++i) in postblitRecurse()
45 postblitRecurse(arr[i]); in postblitRecurse()
177 S[3] arr = [S('1'), S('2'), S('3')];
178 destructRecurse(arr);
186 S[3] arr = [S('1'), S('2'), S('3')];
187 postblitRecurse(arr);
192 auto arrCopy = arr;
260 Outer[3] arr = [Outer('1', '1', '1'), Outer('1', '2', '3'), Outer('3', '3', '3')];
[all …]
/netbsd-src/games/sail/
H A Darray.h139 struct array arr; \
159 array_init(&a->arr); \
165 array_cleanup(&a->arr); \
191 return array_num(&a->arr); \
197 return (T *)array_get(&a->arr, index_); \
203 array_set(&a->arr, index_, (void *)val); \
209 return array_setsize(&a->arr, num); \
215 return array_add(&a->arr, (void *)val, ret); \
221 return array_insert(&a->arr, index_); \
227 return array_remove(&a->arr, index_); \
/netbsd-src/external/ibm-public/postfix/dist/src/tls/
H A Dtls_fprint.c179 TLS_TLSA **arr; in tls_digest_tlsa() local
186 arr = (TLS_TLSA **) mymalloc(n * sizeof(*arr)); in tls_digest_tlsa()
188 arr[i++] = (void *) p; in tls_digest_tlsa()
189 qsort(arr, n, sizeof(arr[0]), tlsa_cmp); in tls_digest_tlsa()
193 CHECK_OK_AND_DIGEST_OBJECT(mdctx, &arr[i]->usage); in tls_digest_tlsa()
194 CHECK_OK_AND_DIGEST_OBJECT(mdctx, &arr[i]->selector); in tls_digest_tlsa()
195 CHECK_OK_AND_DIGEST_OBJECT(mdctx, &arr[i]->mtype); in tls_digest_tlsa()
196 CHECK_OK_AND_DIGEST_OBJECT(mdctx, &arr[i]->length); in tls_digest_tlsa()
197 CHECK_OK_AND_DIGEST_DATA(mdctx, arr[i]->data, arr[i]->length); in tls_digest_tlsa()
199 myfree((void *) arr); in tls_digest_tlsa()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_common_test.cc231 int arr[kSize]; in TEST() local
232 arr[0] = 1; in TEST()
233 arr[1] = 3; in TEST()
234 arr[2] = 5; in TEST()
235 arr[3] = 7; in TEST()
236 arr[4] = 11; in TEST()
238 EXPECT_EQ(0u, InternalLowerBound(arr, 0, kSize, 0, UptrLess)); in TEST()
239 EXPECT_EQ(0u, InternalLowerBound(arr, 0, kSize, 1, UptrLess)); in TEST()
240 EXPECT_EQ(1u, InternalLowerBound(arr, 0, kSize, 2, UptrLess)); in TEST()
241 EXPECT_EQ(1u, InternalLowerBound(arr, 0, kSize, 3, UptrLess)); in TEST()
[all …]
/netbsd-src/lib/libexecinfo/
H A Dunwind.c39 void **arr; member
54 t->arr[t->n++] = (void *)_Unwind_GetIP(ctx); in tracer()
61 backtrace(void **arr, size_t len) in backtrace() argument
65 ctx.arr = arr; in backtrace()
73 ctx.arr[--ctx.n] = NULL; /* Skip frame below __start */ in backtrace()

12345678910>>...12