Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 25 of 136) sorted by relevance

123456

/external/python/cpython2/Lib/ctypes/test/
Dtest_arrays.py19 alen = len(init)
20 int_array = ARRAY(fmt, alen)
24 self.assertEqual(len(ia), alen)
27 values = [ia[i] for i in range(alen)]
31 with self.assertRaises(IndexError): ia[alen]
32 with self.assertRaises(IndexError): ia[-alen-1]
36 new_values = range(42, 42+alen)
37 [setitem(ia, n, new_values[n]) for n in range(alen)]
38 values = [ia[i] for i in range(alen)]
43 values = [ia[i] for i in range(alen)]
[all …]
/external/strace/tests-m32/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/strace/tests-mx32/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/strace/tests/
Dsendfile.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
95 if (syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) != (long) alen) { in main()
97 sv[1], reg_in, (unsigned long) p_off, alen); in main()
100 assert(syscall(__NR_sendfile, sv[1], reg_in, p_off, alen) in main()
101 == (long) alen); in main()
104 sv[1], reg_in, alen, alen, alen); in main()
109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
Dsendfile64.c71 const unsigned int alen = file_size - blen; in main() local
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen) in main()
90 == (long) alen); in main()
92 sv[1], reg_in, alen, alen); in main()
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen) in main()
95 == (long) alen); in main()
97 sv[1], reg_in, alen, alen, alen); in main()
102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
/external/mesa3d/src/glx/
Dpacksingle.h121 #define __GLX_SINGLE_GET_VOID_ARRAY(a,alen) \ argument
123 GLint slop = alen*__GLX_SIZE_INT8 & 3; \
124 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \
128 #define __GLX_SINGLE_GET_CHAR_ARRAY(a,alen) \ argument
130 GLint slop = alen*__GLX_SIZE_INT8 & 3; \
131 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT8); \
136 #define __GLX_SINGLE_GET_SHORT_ARRAY(a,alen) \ argument
138 GLint slop = (alen*__GLX_SIZE_INT16) & 3; \
139 _XRead(dpy,(char *)a,alen*__GLX_SIZE_INT16); \
143 #define __GLX_SINGLE_GET_LONG_ARRAY(a,alen) \ argument
[all …]
Dpackrender.h187 #define __GLX_PUT_CHAR_ARRAY(offset,a,alen) \ argument
188 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT8)
190 #define __GLX_PUT_SHORT_ARRAY(offset,a,alen) \ argument
191 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT16)
193 #define __GLX_PUT_LONG_ARRAY(offset,a,alen) \ argument
194 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_INT32)
196 #define __GLX_PUT_FLOAT_ARRAY(offset,a,alen) \ argument
197 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT32)
199 #define __GLX_PUT_DOUBLE_ARRAY(offset,a,alen) \ argument
200 __GLX_MEM_COPY(pc + offset, a, alen * __GLX_SIZE_FLOAT64)
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c499 size_t alen, plen, i, list_len; in eap_sim_parse_attr() local
526 alen = pos[1] * 4 - 2; in eap_sim_parse_attr()
528 apos, alen); in eap_sim_parse_attr()
534 alen -= 2; in eap_sim_parse_attr()
535 if ((!aka && (alen % GSM_RAND_LEN)) || in eap_sim_parse_attr()
536 (aka && alen != EAP_AKA_RAND_LEN)) { in eap_sim_parse_attr()
539 (unsigned long) alen); in eap_sim_parse_attr()
543 attr->num_chal = alen / GSM_RAND_LEN; in eap_sim_parse_attr()
553 alen -= 2; in eap_sim_parse_attr()
554 if (alen != EAP_AKA_AUTN_LEN) { in eap_sim_parse_attr()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_expand_name.c39 int alen);
66 int alen, char **s, long *enclen) in ares_expand_name() argument
76 nlen.sig = name_length(encoded, abuf, alen); in ares_expand_name()
144 int alen) in name_length() argument
149 if (encoded >= abuf + alen) in name_length()
158 if (encoded + 1 >= abuf + alen) in name_length()
161 if (offset >= alen) in name_length()
169 if (indir > alen || indir > MAX_INDIRS) in name_length()
175 if (encoded + offset + 1 >= abuf + alen) in name_length()
202 const unsigned char *abuf, int alen, in ares__expand_name_for_response() argument
[all …]
Dares_parse_naptr_reply.c49 ares_parse_naptr_reply (const unsigned char *abuf, int alen, in ares_parse_naptr_reply() argument
65 if (alen < HFIXEDSZ) in ares_parse_naptr_reply()
78 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_naptr_reply()
82 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_naptr_reply()
93 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_naptr_reply()
99 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_naptr_reply()
108 if (aptr + rr_len > abuf + alen) in ares_parse_naptr_reply()
149 status = ares_expand_string(vptr, abuf, alen, &naptr_curr->flags, &len); in ares_parse_naptr_reply()
154 status = ares_expand_string(vptr, abuf, alen, &naptr_curr->service, &len); in ares_parse_naptr_reply()
159 status = ares_expand_string(vptr, abuf, alen, &naptr_curr->regexp, &len); in ares_parse_naptr_reply()
[all …]
Dares_parse_txt_reply.c48 ares__parse_txt_reply (const unsigned char *abuf, int alen, in ares__parse_txt_reply() argument
66 if (alen < HFIXEDSZ) in ares__parse_txt_reply()
79 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares__parse_txt_reply()
83 if (aptr + len + QFIXEDSZ > abuf + alen) in ares__parse_txt_reply()
94 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares__parse_txt_reply()
100 if (aptr + RRFIXEDSZ > abuf + alen) in ares__parse_txt_reply()
109 if (aptr + rr_len > abuf + alen) in ares__parse_txt_reply()
208 ares_parse_txt_reply (const unsigned char *abuf, int alen, in ares_parse_txt_reply() argument
211 return ares__parse_txt_reply(abuf, alen, 0, (void **) txt_out); in ares_parse_txt_reply()
216 ares_parse_txt_reply_ext (const unsigned char *abuf, int alen, in ares_parse_txt_reply_ext() argument
[all …]
Dares_parse_soa_reply.c44 ares_parse_soa_reply(const unsigned char *abuf, int alen, in ares_parse_soa_reply() argument
54 if (alen < HFIXEDSZ) in ares_parse_soa_reply()
65 status = ares__expand_name_for_response(aptr, abuf, alen, &qname, &len); in ares_parse_soa_reply()
71 if (aptr + QFIXEDSZ > abuf + alen) in ares_parse_soa_reply()
76 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_soa_reply()
82 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_soa_reply()
95 status = ares__expand_name_for_response(aptr, abuf, alen, &soa->nsname, &len); in ares_parse_soa_reply()
101 status = ares__expand_name_for_response(aptr, abuf, alen, &soa->hostmaster, &len); in ares_parse_soa_reply()
107 if (aptr + 5 * 4 > abuf + alen) in ares_parse_soa_reply()
Dadig.c168 unsigned char *abuf, int alen);
171 int alen);
173 const unsigned char *abuf, int alen);
397 unsigned char *abuf, int alen) in callback() argument
421 if (alen < HFIXEDSZ) in callback()
454 aptr = display_question(aptr, abuf, alen); in callback()
463 aptr = display_rr(aptr, abuf, alen); in callback()
472 aptr = display_rr(aptr, abuf, alen); in callback()
481 aptr = display_rr(aptr, abuf, alen); in callback()
489 int alen) in display_question() argument
[all …]
Dares_parse_ns_reply.c45 int ares_parse_ns_reply( const unsigned char* abuf, int alen, in ares_parse_ns_reply() argument
60 if ( alen < HFIXEDSZ ) in ares_parse_ns_reply()
71 status = ares__expand_name_for_response( aptr, abuf, alen, &hostname, &len); in ares_parse_ns_reply()
74 if ( aptr + len + QFIXEDSZ > abuf + alen ) in ares_parse_ns_reply()
94 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_name, &len ); in ares_parse_ns_reply()
98 if ( aptr + RRFIXEDSZ > abuf + alen ) in ares_parse_ns_reply()
108 if (aptr + rr_len > abuf + alen) in ares_parse_ns_reply()
118 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_data, in ares_parse_ns_reply()
144 if ( aptr > abuf + alen ) in ares_parse_ns_reply()
Dares_parse_aaaa_reply.c51 int ares_parse_aaaa_reply(const unsigned char *abuf, int alen, in ares_parse_aaaa_reply() argument
74 if (alen < HFIXEDSZ) in ares_parse_aaaa_reply()
85 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); in ares_parse_aaaa_reply()
88 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_aaaa_reply()
124 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_aaaa_reply()
128 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_aaaa_reply()
139 if (aptr + rr_len > abuf + alen) in ares_parse_aaaa_reply()
152 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) in ares_parse_aaaa_reply()
163 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) in ares_parse_aaaa_reply()
186 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_aaaa_reply()
[all …]
Dares_parse_a_reply.c49 int ares_parse_a_reply(const unsigned char *abuf, int alen, in ares_parse_a_reply() argument
72 if (alen < HFIXEDSZ) in ares_parse_a_reply()
83 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); in ares_parse_a_reply()
86 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_a_reply()
124 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_a_reply()
128 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_a_reply()
139 if (aptr + rr_len > abuf + alen) in ares_parse_a_reply()
152 if (aptr + sizeof(struct in_addr) > abuf + alen) in ares_parse_a_reply()
163 if (aptr + sizeof(struct in_addr) > abuf + alen) in ares_parse_a_reply()
186 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_a_reply()
[all …]
Dares_parse_srv_reply.c49 ares_parse_srv_reply (const unsigned char *abuf, int alen, in ares_parse_srv_reply() argument
65 if (alen < HFIXEDSZ) in ares_parse_srv_reply()
78 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_srv_reply()
82 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_srv_reply()
93 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_srv_reply()
99 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_srv_reply()
108 if (aptr + rr_len > abuf + alen) in ares_parse_srv_reply()
149 status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len); in ares_parse_srv_reply()
Dares_parse_mx_reply.c44 ares_parse_mx_reply (const unsigned char *abuf, int alen, in ares_parse_mx_reply() argument
60 if (alen < HFIXEDSZ) in ares_parse_mx_reply()
73 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_mx_reply()
77 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_mx_reply()
88 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_mx_reply()
94 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_mx_reply()
103 if (aptr + rr_len > abuf + alen) in ares_parse_mx_reply()
140 status = ares_expand_name (vptr, abuf, alen, &mx_curr->host, &len); in ares_parse_mx_reply()
Dares_parse_ptr_reply.c43 int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, in ares_parse_ptr_reply() argument
61 if (alen < HFIXEDSZ) in ares_parse_ptr_reply()
72 status = ares__expand_name_for_response(aptr, abuf, alen, &ptrname, &len); in ares_parse_ptr_reply()
75 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_ptr_reply()
93 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_ptr_reply()
97 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_ptr_reply()
107 if (aptr + rr_len > abuf + alen) in ares_parse_ptr_reply()
118 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_ptr_reply()
154 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_ptr_reply()
167 if (aptr > abuf + alen) in ares_parse_ptr_reply()
/external/python/cpython3/Lib/ctypes/test/
Dtest_arrays.py21 alen = len(init)
22 int_array = ARRAY(fmt, alen)
26 self.assertEqual(len(ia), alen)
29 values = [ia[i] for i in range(alen)]
33 with self.assertRaises(IndexError): ia[alen]
34 with self.assertRaises(IndexError): ia[-alen-1]
38 new_values = list(range(42, 42+alen))
39 [setitem(ia, n, new_values[n]) for n in range(alen)]
40 values = [ia[i] for i in range(alen)]
45 values = [ia[i] for i in range(alen)]
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gpsk.c244 u16 alen; in eap_gpsk_process_gpsk_2() local
263 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
265 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
272 data->id_peer = os_memdup(pos, alen); in eap_gpsk_process_gpsk_2()
275 "%d-octet ID_Peer", alen); in eap_gpsk_process_gpsk_2()
278 data->id_peer_len = alen; in eap_gpsk_process_gpsk_2()
281 pos += alen; in eap_gpsk_process_gpsk_2()
289 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
291 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
297 if (alen != sm->cfg->server_id_len || in eap_gpsk_process_gpsk_2()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dnettest.c203 static int tcp_md5sig(int sd, void *addr, socklen_t alen, const char *password) in tcp_md5sig() argument
210 memcpy(&md5sig.tcpm_addr, addr, alen); in tcp_md5sig()
237 int alen; in tcp_md5_remote() local
244 alen = sizeof(sin); in tcp_md5_remote()
250 alen = sizeof(sin6); in tcp_md5_remote()
257 if (tcp_md5sig(sd, addr, alen, args->password)) in tcp_md5_remote()
548 socklen_t alen = sizeof(local_addr); in show_sockstat() local
555 if (getsockname(sd, sa, &alen) == 0) { in show_sockstat()
568 if (getpeername(sd, sa, &alen) == 0) { in show_sockstat()
616 static int send_msg_no_cmsg(int sd, void *addr, socklen_t alen) in send_msg_no_cmsg() argument
[all …]
Dip_defrag.c134 static void send_fragment(int fd_raw, struct sockaddr *addr, socklen_t alen, in send_fragment() argument
194 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_fragment()
204 socklen_t alen, bool ipv6) in send_udp_frags() argument
248 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
259 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
264 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
269 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
278 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
281 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
315 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_udp_frags()
[all …]

123456