/external/python/cpython2/Lib/ctypes/test/ |
D | test_arrays.py | 19 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/ |
D | sendfile.c | 71 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()
|
D | sendfile64.c | 71 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/ |
D | sendfile.c | 71 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()
|
D | sendfile64.c | 71 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/ |
D | sendfile.c | 71 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()
|
D | sendfile64.c | 71 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/ |
D | packsingle.h | 121 #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 …]
|
D | packrender.h | 187 #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/ |
D | eap_sim_common.c | 501 size_t alen, plen, i, list_len; in eap_sim_parse_attr() local 528 alen = pos[1] * 4 - 2; in eap_sim_parse_attr() 530 apos, alen); in eap_sim_parse_attr() 536 alen -= 2; in eap_sim_parse_attr() 537 if ((!aka && (alen % GSM_RAND_LEN)) || in eap_sim_parse_attr() 538 (aka && alen != EAP_AKA_RAND_LEN)) { in eap_sim_parse_attr() 541 (unsigned long) alen); in eap_sim_parse_attr() 545 attr->num_chal = alen / GSM_RAND_LEN; in eap_sim_parse_attr() 555 alen -= 2; in eap_sim_parse_attr() 556 if (alen != EAP_AKA_AUTN_LEN) { in eap_sim_parse_attr() [all …]
|
/external/c-ares/ |
D | ares_expand_name.c | 39 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() 157 if (encoded + 1 >= abuf + alen) in name_length() 160 if (offset >= alen) in name_length() 167 if (++indir > alen) in name_length() 173 if (encoded + offset + 1 >= abuf + alen) in name_length() 193 const unsigned char *abuf, int alen, in ares__expand_name_for_response() argument [all …]
|
D | adig.c | 184 unsigned char *abuf, int alen); 187 int alen); 189 const unsigned char *abuf, int alen); 413 unsigned char *abuf, int alen) in callback() argument 437 if (alen < HFIXEDSZ) in callback() 470 aptr = display_question(aptr, abuf, alen); in callback() 479 aptr = display_rr(aptr, abuf, alen); in callback() 488 aptr = display_rr(aptr, abuf, alen); in callback() 497 aptr = display_rr(aptr, abuf, alen); in callback() 505 int alen) in display_question() argument [all …]
|
D | ares_parse_ns_reply.c | 50 int ares_parse_ns_reply( const unsigned char* abuf, int alen, in ares_parse_ns_reply() argument 65 if ( alen < HFIXEDSZ ) in ares_parse_ns_reply() 76 status = ares__expand_name_for_response( aptr, abuf, alen, &hostname, &len); in ares_parse_ns_reply() 79 if ( aptr + len + QFIXEDSZ > abuf + alen ) in ares_parse_ns_reply() 99 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_name, &len ); in ares_parse_ns_reply() 103 if ( aptr + RRFIXEDSZ > abuf + alen ) in ares_parse_ns_reply() 117 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_data, in ares_parse_ns_reply() 143 if ( aptr > abuf + alen ) in ares_parse_ns_reply()
|
D | ares_parse_a_reply.c | 54 int ares_parse_a_reply(const unsigned char *abuf, int alen, in ares_parse_a_reply() argument 77 if (alen < HFIXEDSZ) in ares_parse_a_reply() 88 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); in ares_parse_a_reply() 91 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_a_reply() 129 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_a_reply() 133 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_a_reply() 151 if (aptr + sizeof(struct in_addr) > abuf + alen) in ares_parse_a_reply() 162 if (aptr + sizeof(struct in_addr) > abuf + alen) in ares_parse_a_reply() 185 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_a_reply() 200 if (aptr > abuf + alen) in ares_parse_a_reply()
|
D | ares_parse_aaaa_reply.c | 56 int ares_parse_aaaa_reply(const unsigned char *abuf, int alen, in ares_parse_aaaa_reply() argument 79 if (alen < HFIXEDSZ) in ares_parse_aaaa_reply() 90 status = ares__expand_name_for_response(aptr, abuf, alen, &hostname, &len); in ares_parse_aaaa_reply() 93 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_aaaa_reply() 129 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_aaaa_reply() 133 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_aaaa_reply() 151 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) in ares_parse_aaaa_reply() 162 if (aptr + sizeof(struct ares_in6_addr) > abuf + alen) in ares_parse_aaaa_reply() 185 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_aaaa_reply() 200 if (aptr > abuf + alen) in ares_parse_aaaa_reply()
|
D | ares_parse_mx_reply.c | 49 ares_parse_mx_reply (const unsigned char *abuf, int alen, in ares_parse_mx_reply() argument 65 if (alen < HFIXEDSZ) in ares_parse_mx_reply() 78 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_mx_reply() 82 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_mx_reply() 93 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_mx_reply() 99 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_mx_reply() 140 status = ares_expand_name (vptr, abuf, alen, &mx_curr->host, &len); in ares_parse_mx_reply()
|
D | ares_parse_ptr_reply.c | 47 int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, in ares_parse_ptr_reply() argument 64 if (alen < HFIXEDSZ) in ares_parse_ptr_reply() 75 status = ares__expand_name_for_response(aptr, abuf, alen, &ptrname, &len); in ares_parse_ptr_reply() 78 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_ptr_reply() 96 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len); in ares_parse_ptr_reply() 100 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_ptr_reply() 115 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_ptr_reply() 150 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_ptr_reply() 163 if (aptr > abuf + alen) in ares_parse_ptr_reply()
|
D | ares_parse_srv_reply.c | 54 ares_parse_srv_reply (const unsigned char *abuf, int alen, in ares_parse_srv_reply() argument 70 if (alen < HFIXEDSZ) in ares_parse_srv_reply() 83 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_srv_reply() 87 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_srv_reply() 98 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_srv_reply() 104 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_srv_reply() 149 status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len); in ares_parse_srv_reply()
|
D | ares_parse_txt_reply.c | 54 ares_parse_txt_reply (const unsigned char *abuf, int alen, in ares_parse_txt_reply() argument 72 if (alen < HFIXEDSZ) in ares_parse_txt_reply() 85 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_txt_reply() 89 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_txt_reply() 100 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_txt_reply() 106 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_txt_reply()
|
D | ares.h | 281 int alen); 416 int alen, 422 int alen, 478 int alen, 484 int alen, 490 int alen, 497 int alen, 501 int alen, 505 int alen, 509 int alen,
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_gpsk.c | 244 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_malloc(alen); in eap_gpsk_process_gpsk_2() 275 "%d-octet ID_Peer", alen); in eap_gpsk_process_gpsk_2() 278 os_memcpy(data->id_peer, pos, alen); in eap_gpsk_process_gpsk_2() 279 data->id_peer_len = alen; in eap_gpsk_process_gpsk_2() 282 pos += alen; in eap_gpsk_process_gpsk_2() 290 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2() 292 if (end - pos < alen) { in eap_gpsk_process_gpsk_2() [all …]
|
/external/syslinux/com32/lib/syslinux/ |
D | floadfile.c | 50 size_t alen, clen, rlen, xlen; in floadfile() local 52 clen = alen = 0; in floadfile() 61 clen = alen = prefix_len; in floadfile() 70 alen += INCREMENTAL_CHUNK; in floadfile() 71 dp = realloc(data, alen); in floadfile() 76 rlen = fread((char *)data + clen, 1, alen - clen, f); in floadfile() 78 } while (clen == alen); in floadfile()
|
/external/toybox/toys/pending/ |
D | host.c | 71 i, j, ret, sec, count, rcode, qlen, alen, pllen = 0; in host_main() local 131 alen = recv(s, abuf, sizeof abuf, 0); in host_main() 132 } else alen = res_send(qbuf, qlen, abuf, sizeof abuf); in host_main() 134 if (alen < 12) error_exit("Host not found."); in host_main() 154 p += dn_expand(abuf, abuf+alen, p, rrname, sizeof(rrname)); in host_main() 168 dn_expand(abuf, abuf+alen, p, plname, sizeof plname); in host_main() 174 i = dn_expand(abuf, abuf+alen, p, plname, sizeof plname - 1); in host_main() 176 i += dn_expand(abuf, abuf+alen, p+i, plname+strlen(plname), in host_main() 191 dn_expand(abuf, abuf+alen, p+2, plname+strlen(plname), in host_main() 197 dn_expand(abuf, abuf+alen, p+6, plname+strlen(plname), in host_main()
|
/external/syslinux/com32/libupload/ |
D | upload_srec.c | 12 static int write_srecord(unsigned int len, unsigned int alen, in write_srecord() argument 21 switch (alen) { in write_srecord() 32 csum = (len+alen+1) + addr + (addr >> 8) + (addr >> 16) + (addr >> 24); in write_srecord() 37 p += sprintf(p, "S%c%02X%0*X", type, len+alen+1, alen*2, addr); in write_srecord()
|
/external/valgrind/VEX/priv/ |
D | guest_amd64_toIR.c | 4287 Int alen; in dis_Grp4() local 4328 IRTemp addr = disAMode ( &alen, vbi, pfx, delta, dis_buf, 0 ); in dis_Grp4() 4355 delta += alen; in dis_Grp4() 4789 Int alen; in dis_mul_E_G() local 4801 IRTemp addr = disAMode( &alen, vbi, pfx, delta0, dis_buf, 0 ); in dis_mul_E_G() 4820 return alen+delta0; in dis_mul_E_G() 4834 Int alen; in dis_imul_I_E_G() local 4848 IRTemp addr = disAMode( &alen, vbi, pfx, delta, dis_buf, in dis_imul_I_E_G() 4851 delta += alen; in dis_imul_I_E_G() 7329 Int alen, size; in dis_MMX_shiftG_byE() local [all …]
|