Home
last modified time | relevance | path

Searched refs:nlen (Results 1 – 25 of 86) sorted by relevance

1234

/external/python/cpython2/Modules/
Dimageop.c124 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/u-boot/cmd/
Dsetexpr.c86 int nlen) /* length of new string */ in substitute() argument
94 (long)(p - string), olen, nlen); in substitute()
97 if (*slen + nlen - olen > ssize) { in substitute()
103 if (olen != nlen) { in substitute()
106 len = (olen > nlen) ? olen : nlen; in substitute()
112 memmove(p + nlen, p + olen, tail); in substitute()
116 memcpy(p, new, nlen); in substitute()
118 *slen += nlen - olen; in substitute()
120 return p + nlen; in substitute()
136 int res, len, nlen, loop; in regex_sub() local
[all …]
/external/strace/
Dsysctl.c56 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/
Diculd.c125 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/toybox/toys/posix/
Dcpio.c225 unsigned nlen, error = 0, zero = 0; in cpio_main() local
232 nlen = len+1; in cpio_main()
248 nlen, 0); in cpio_main()
250 xwrite(afd, name, nlen); in cpio_main()
253 llen = (llen + nlen) & 3; in cpio_main()
263 nlen = llen > sizeof(toybuf) ? sizeof(toybuf) : llen; in cpio_main()
264 llen -= nlen; in cpio_main()
266 if (nlen != readall(fd, toybuf, nlen)) in cpio_main()
268 xwrite(afd, toybuf, nlen); in cpio_main()
/external/wpa_supplicant_8/src/utils/
Dext_password_test.c48 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/iputils/ninfod/
Dninfod_name.c210 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/ppp/pppd/
Dchap-new.c284 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/boringssl/src/crypto/x509v3/
Dv3_info.c121 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/openssh/
Dbitmap.c83 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()
Dmac.c97 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()
Dsshbuf-misc.c117 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/
Dbgscan.c32 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()
Dautoscan.c44 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/
Deap_ikev2_common.c24 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/
Dpuff.c667 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/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl04.c40 int nlen; member
56 .nlen = tc->nlen, in verify_sysctl()
/external/u-boot/fs/ubifs/
Dreplay.c398 union ubifs_key *key, const char *name, int nlen, in insert_dent() argument
412 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
426 r->nm.len = nlen; in insert_dent()
427 memcpy(nbuf, name, nlen); in insert_dent()
428 nbuf[nlen] = '\0'; in insert_dent()
447 int nlen = le16_to_cpu(dent->nlen); in ubifs_validate_entry() local
449 if (le32_to_cpu(dent->ch.len) != nlen + UBIFS_DENT_NODE_SZ + 1 || in ubifs_validate_entry()
451 nlen > UBIFS_MAX_NLEN || dent->name[nlen] != 0 || in ubifs_validate_entry()
452 strnlen(dent->name, nlen) != nlen || in ubifs_validate_entry()
628 le16_to_cpu(dent->nlen), snod->sqnum, in replay_bud()
/external/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c36 int nlen, gai; in main() local
108 nlen = 0; /* init size of info received */ in main()
112 nlen += nbyte; in main()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_pack.c652 int nlen = 128 / src_type.width; in lp_build_pack2() local
653 int lo_off = swap_intrinsic_operands ? nlen : 0; in lp_build_pack2()
654 int hi_off = swap_intrinsic_operands ? 0 : nlen; in lp_build_pack2()
666 lo, i*nlen*2 + lo_off, nlen); in lp_build_pack2()
668 lo, i*nlen*2 + hi_off, nlen); in lp_build_pack2()
677 hi, i*nlen*2 + lo_off, nlen); in lp_build_pack2()
679 hi, i*nlen*2 + hi_off, nlen); in lp_build_pack2()
/external/selinux/libselinux/src/
Dget_context_list.c275 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/
Dinfback9.c347 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,
/external/zlib/src/
Dinfback.c361 state->nlen = BITS(5) + 257;
368 if (state->nlen > 286 || state->ndist > 30) {
399 while (state->have < state->nlen + state->ndist) {
436 if (state->have + copy > state->nlen + state->ndist) {
462 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
471 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
/external/python/cpython2/Modules/zlib/
Dinfback.c361 state->nlen = BITS(5) + 257;
368 if (state->nlen > 286 || state->ndist > 30) {
399 while (state->have < state->nlen + state->ndist) {
436 if (state->have + copy > state->nlen + state->ndist) {
462 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
471 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
/external/puffin/src/
Dpuffer.cc76 auto nlen = br->ReadBits(16); // NLEN in PuffDeflate() local
79 if ((len ^ nlen) != 0xFFFF) { in PuffDeflate()
81 << " LEN(" << len << ") NLEN(" << nlen << ")"; in PuffDeflate()

1234