/external/python/cpython2/Modules/ |
D | imageop.c | 124 int len, size, x, y, newx1, newx2, newy1, newy2, nlen; in imageop_crop() local 142 nlen = (abs(newx2-newx1)+1)*(abs(newy2-newy1)+1)*size; in imageop_crop() 143 …if ( !check_multiply_size(nlen, abs(newx2-newx1)+1, "abs(newx2-newx1)+1", abs(newy2-newy1)+1, "abs… in imageop_crop() 145 rv = PyString_FromStringAndSize(NULL, nlen); in imageop_crop() 179 int len, size, x, y, newx, newy, nlen; in imageop_scale() local 194 nlen = newx*newy*size; in imageop_scale() 195 if ( !check_multiply_size(nlen, newx, "newx", newy, "newy", size) ) in imageop_scale() 198 rv = PyString_FromStringAndSize(NULL, nlen); in imageop_scale() 471 int v0, v1, x, y, len, nlen; in imageop_mono2grey() local 479 nlen = x*y; in imageop_mono2grey() [all …]
|
/external/strace/ |
D | sysctl.c | 56 size = sizeof(int) * (unsigned long) info.nlen; in SYS_FUNC() 57 name = (size / sizeof(int) != (unsigned long) info.nlen) ? NULL : malloc(size); in SYS_FUNC() 63 info.name, info.nlen, info.oldval, in SYS_FUNC() 73 if (info.nlen == 0) in SYS_FUNC() 78 if (info.nlen == 1) in SYS_FUNC() 96 if (info.nlen == 2) in SYS_FUNC() 114 if (info.nlen == 3) in SYS_FUNC() 138 if (info.nlen == 3) in SYS_FUNC() 159 max_cnt = info.nlen; in SYS_FUNC() 164 if (cnt < (unsigned) info.nlen) in SYS_FUNC() [all …]
|
/external/icu/icu4c/as_is/os400/ |
D | iculd.c | 125 int nlen = n-2; in main() local 127 if(nlen >= 10) { in main() 128 nlen = 10; in main() 142 nlen=strlen(b); in main() 152 strncat(objs,b,nlen); in main() 159 int nlen = n-2; in main() local 161 if(nlen >= 10) { in main() 162 nlen = 10; in main() 176 nlen=strlen(b); in main() 186 strncat(bnddirs,b,nlen); in main()
|
/external/wpa_supplicant_8/src/utils/ |
D | ext_password_test.c | 48 size_t nlen; in ext_password_test_get() local 55 nlen = os_strlen(name); in ext_password_test_get() 58 if (os_strncmp(pos, name, nlen) == 0 && pos[nlen] == '=') { in ext_password_test_get() 60 pos += nlen + 1; in ext_password_test_get()
|
/external/toybox/toys/posix/ |
D | cpio.c | 227 unsigned nlen, error = 0, zero = 0; in cpio_main() local 234 nlen = len+1; in cpio_main() 250 nlen, 0); in cpio_main() 252 xwrite(afd, name, nlen); in cpio_main() 255 llen = (llen + nlen) & 3; in cpio_main() 265 nlen = llen > sizeof(toybuf) ? sizeof(toybuf) : llen; in cpio_main() 266 llen -= nlen; in cpio_main() 268 if (nlen != readall(fd, toybuf, nlen)) in cpio_main() 270 xwrite(afd, toybuf, nlen); in cpio_main()
|
/external/c-ares/ |
D | ares_expand_name.c | 74 } nlen; in ares_expand_name() local 76 nlen.sig = name_length(encoded, abuf, alen); in ares_expand_name() 77 if (nlen.sig < 0) in ares_expand_name() 80 *s = malloc(nlen.uns + 1); in ares_expand_name() 85 if (nlen.uns == 0) { in ares_expand_name()
|
D | ares_search.c | 216 size_t nlen = strlen(name); in cat_domain() local 219 *s = malloc(nlen + 1 + dlen + 1); in cat_domain() 222 memcpy(*s, name, nlen); in cat_domain() 223 (*s)[nlen] = '.'; in cat_domain() 224 memcpy(*s + nlen + 1, domain, dlen); in cat_domain() 225 (*s)[nlen + 1 + dlen] = 0; in cat_domain()
|
/external/iputils/ninfod/ |
D | ninfod_name.c | 210 const char *n, size_t nlen) in compare_dnsname() argument 214 if (slen < 1 || nlen < 1) in compare_dnsname() 217 if (slen == nlen && memcmp(s, n, slen) == 0) in compare_dnsname() 219 if (*(s0 + slen - 1) || *(n0 + nlen - 1)) in compare_dnsname() 221 while (s < s0 + slen && n < n0 + nlen) { in compare_dnsname() 224 if (s + *s + 1 > s0 + slen || n + *n + 1 > n0 + nlen) in compare_dnsname() 236 if (n == n0 + nlen - 1) { in compare_dnsname() 238 } else if (n + 1 == n0 + nlen - 1) { in compare_dnsname()
|
/external/boringssl/src/crypto/x509v3/ |
D | v3_info.c | 121 int nlen; variable 136 nlen = strlen(objtmp) + strlen(vtmp->name) + 5; 137 ntmp = OPENSSL_malloc(nlen); 140 BUF_strlcpy(ntmp, objtmp, nlen); 141 BUF_strlcat(ntmp, " - ", nlen); 142 BUF_strlcat(ntmp, vtmp->name, nlen);
|
/external/ppp/pppd/ |
D | chap-new.c | 284 int clen = 1, nlen, len; in chap_generate_challenge() local 292 nlen = strlen(ss->name); in chap_generate_challenge() 293 memcpy(p + 1 + clen, ss->name, nlen); in chap_generate_challenge() 295 len = CHAP_HDRLEN + 1 + clen + nlen; in chap_generate_challenge() 441 int clen, nlen; in chap_respond() local 453 nlen = len - (clen + 1); in chap_respond() 456 slprintf(rname, sizeof(rname), "%.*v", nlen, pkt + clen + 1); in chap_respond() 477 nlen = strlen(cs->name); in chap_respond() 478 memcpy(p + clen + 1, cs->name, nlen); in chap_respond() 481 len = CHAP_HDRLEN + clen + 1 + nlen; in chap_respond() [all …]
|
/external/openssh/ |
D | bitmap.c | 83 size_t nlen; in reserve() local 87 nlen = (n / BITMAP_BITS) + 1; in reserve() 88 if (b->len < nlen) { in reserve() 89 if ((tmp = reallocarray(b->d, nlen, BITMAP_BYTES)) == NULL) in reserve() 92 memset(b->d + b->len, 0, (nlen - b->len) * BITMAP_BYTES); in reserve() 93 b->len = nlen; in reserve()
|
D | mac.c | 97 size_t nlen, rlen = 0; in mac_alg_list() local 103 nlen = strlen(m->name); in mac_alg_list() 104 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in mac_alg_list() 109 memcpy(ret + rlen, m->name, nlen + 1); in mac_alg_list() 110 rlen += nlen; in mac_alg_list()
|
D | sshbuf-misc.c | 117 int nlen, r; in sshbuf_b64tod() local 124 if ((nlen = b64_pton(b64, p, plen)) < 0) { in sshbuf_b64tod() 129 if ((r = sshbuf_put(buf, p, nlen)) < 0) { in sshbuf_b64tod()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | bgscan.c | 32 size_t nlen; in bgscan_init() local 41 nlen = os_strlen(name); in bgscan_init() 43 nlen = params - name; in bgscan_init() 48 if (os_strncmp(name, bgscan_modules[i]->name, nlen) == 0) { in bgscan_init()
|
D | autoscan.c | 44 size_t nlen; in autoscan_init() local 67 nlen = os_strlen(name); in autoscan_init() 69 nlen = params - name; in autoscan_init() 74 if (os_strncmp(name, autoscan_modules[i]->name, nlen) == 0) { in autoscan_init()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_ikev2_common.c | 24 size_t nlen; in eap_ikev2_derive_keymat() local 30 nlen = i_nonce_len + r_nonce_len; in eap_ikev2_derive_keymat() 31 nonces = os_malloc(nlen); in eap_ikev2_derive_keymat() 37 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen, in eap_ikev2_derive_keymat()
|
/external/zlib/src/contrib/puff/ |
D | puff.c | 667 int nlen, ndist, ncode; /* number of lengths in descriptor */ in dynamic() local 684 nlen = bits(s, 5) + 257; in dynamic() 687 if (nlen > MAXLCODES || ndist > MAXDCODES) in dynamic() 703 while (index < nlen + ndist) { in dynamic() 724 if (index + symbol > nlen + ndist) in dynamic() 736 err = construct(&lencode, lengths, nlen); in dynamic() 737 if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) in dynamic() 741 err = construct(&distcode, lengths + nlen, ndist); in dynamic()
|
/external/syslinux/com32/libupload/ |
D | cpio.c | 29 int nlen = strlen(filename)+1; in cpio_hdr() local 47 nlen, /* c_namesize */ in cpio_hdr() 50 rv |= write_data(be, filename, nlen); in cpio_hdr()
|
D | upload_tftp.c | 128 int nlen; in upload_tftp_write() local 165 nlen = strlcpy(buffer+2, be->argv[0], 512); in upload_tftp_write() 166 memcpy(buffer+3+nlen, "octet", 6); in upload_tftp_write() 168 if ((err=send_ack_packet(&tftp, buffer, 2+nlen+1+6))!=TFTP_OK) in upload_tftp_write()
|
/external/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_c.c | 36 int nlen, gai; in main() local 108 nlen = 0; /* init size of info received */ in main() 112 nlen += nbyte; in main()
|
/external/valgrind/exp-sgcheck/ |
D | h_intercepts.c | 367 UWord nlen = 0; \ 368 while (n[nlen]) nlen++; \ 371 if (nlen == 0) return CONST_CAST(HChar *,h); \ 382 for (i = 0; i < nlen; i++) { \ 387 if (i == nlen) \
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_pack.c | 616 int nlen = 128 / src_type.width; in lp_build_pack2() local 617 int lo_off = swap_intrinsic_operands ? nlen : 0; in lp_build_pack2() 618 int hi_off = swap_intrinsic_operands ? 0 : nlen; in lp_build_pack2() 630 lo, i*nlen*2 + lo_off, nlen); in lp_build_pack2() 632 lo, i*nlen*2 + hi_off, nlen); in lp_build_pack2() 641 hi, i*nlen*2 + lo_off, nlen); in lp_build_pack2() 643 hi, i*nlen*2 + hi_off, nlen); in lp_build_pack2()
|
/external/ltp/testcases/kernel/syscalls/sysctl/ |
D | sysctl04.c | 62 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, in sysctl() argument 66 { name, nlen, oldval, oldlenp, newval, newlen }; in sysctl()
|
/external/selinux/libselinux/src/ |
D | get_context_list.c | 275 size_t plen, nlen; in get_failsafe_context() local 291 nlen = strlen(user) + 1 + plen + 1; in get_failsafe_context() 292 *newcon = malloc(nlen); in get_failsafe_context() 295 rc = snprintf(*newcon, nlen, "%s:%s", user, ptr); in get_failsafe_context() 296 if (rc < 0 || (size_t) rc >= nlen) { in get_failsafe_context()
|
/external/zlib/src/contrib/infback9/ |
D | infback9.c | 347 state->nlen = BITS(5) + 257; 353 if (state->nlen > 286) { 383 while (state->have < state->nlen + state->ndist) { 421 if (state->have + copy > state->nlen + state->ndist) { 447 ret = inflate_table9(LENS, state->lens, state->nlen, 456 ret = inflate_table9(DISTS, state->lens + state->nlen,
|