Home
last modified time | relevance | path

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

1234

/external/strace/
Dsysctl.c55 size = sizeof(int) * (unsigned long) info.nlen; in SYS_FUNC()
56 name = (size / sizeof(int) != (unsigned long) info.nlen) ? NULL : malloc(size); in SYS_FUNC()
62 info.name, info.nlen, info.oldval, in SYS_FUNC()
72 if (info.nlen == 0) in SYS_FUNC()
77 if (info.nlen == 1) in SYS_FUNC()
95 if (info.nlen == 2) in SYS_FUNC()
113 if (info.nlen == 3) in SYS_FUNC()
137 if (info.nlen == 3) in SYS_FUNC()
158 max_cnt = info.nlen; in SYS_FUNC()
163 if (cnt < (unsigned) info.nlen) in SYS_FUNC()
[all …]
/external/icu/icu4c/as_is/os400/
Diculd.c123 int nlen = n-2; in main() local
125 if(nlen >= 10) { in main()
126 nlen = 10; in main()
140 nlen=strlen(b); in main()
150 strncat(objs,b,nlen); in main()
157 int nlen = n-2; in main() local
159 if(nlen >= 10) { in main()
160 nlen = 10; in main()
174 nlen=strlen(b); in main()
184 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()
247 minor(st.st_dev), major(st.st_rdev), minor(st.st_rdev), nlen, 0); in cpio_main()
249 xwrite(afd, name, nlen); in cpio_main()
252 llen = (llen + nlen) & 3; in cpio_main()
262 nlen = llen > sizeof(toybuf) ? sizeof(toybuf) : llen; in cpio_main()
263 llen -= nlen; in cpio_main()
265 if (nlen != readall(fd, toybuf, nlen)) in cpio_main()
267 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/c-ares/
Dares_expand_name.c74 } 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()
Dares_search.c216 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/
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/boringssl/src/crypto/x509v3/
Dv3_info.c115 int nlen; variable
124 nlen = strlen(objtmp) + strlen(vtmp->name) + 5;
125 ntmp = OPENSSL_malloc(nlen);
130 BUF_strlcpy(ntmp, objtmp, nlen);
131 BUF_strlcat(ntmp, " - ", nlen);
132 BUF_strlcat(ntmp, vtmp->name, nlen);
/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/wpa_supplicant_8/wpa_supplicant/
Dbgscan.c38 size_t nlen; in bgscan_init() local
49 nlen = os_strlen(name); in bgscan_init()
51 nlen = params - name; in bgscan_init()
56 if (os_strncmp(name, bgscan_modules[i]->name, nlen) == 0) { in bgscan_init()
Dautoscan.c51 size_t nlen; in autoscan_init() local
69 nlen = os_strlen(name); in autoscan_init()
71 nlen = params - name; in autoscan_init()
76 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/tcpdump/
Daddrtoname.c356 lookup_bytestring(register const u_char *bs, const unsigned int nlen) in lookup_bytestring() argument
361 if (nlen >= 6) { in lookup_bytestring()
365 } else if (nlen >= 4) { in lookup_bytestring()
377 memcmp((const char *)bs, (const char *)(tp->e_bs), nlen) == 0) in lookup_bytestring()
386 tp->e_bs = (u_char *) calloc(1, nlen + 1); in lookup_bytestring()
390 memcpy(tp->e_bs, bs, nlen); in lookup_bytestring()
404 unsigned int nlen = *nsap; in lookup_nsap() local
406 const u_char *ensap = nsap + nlen - 6; in lookup_nsap()
408 if (nlen > 6) { in lookup_nsap()
421 tp->e_nsap[0] == nlen && in lookup_nsap()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_pack.c439 int nlen = 128 / src_type.width; in lp_build_pack2() local
451 lo, i*nlen*2, nlen); in lp_build_pack2()
453 lo, i*nlen*2 + nlen, nlen); in lp_build_pack2()
462 hi, i*nlen*2, nlen); in lp_build_pack2()
464 hi, i*nlen*2 + nlen, nlen); in lp_build_pack2()
/external/valgrind/exp-sgcheck/
Dh_intercepts.c367 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/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/ANY/
DNSEC3.py151 (nlen, ) = struct.unpack('!B', wire[current])
154 next = wire[current : current + nlen]
155 current += nlen
156 rdlen -= nlen
/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/libnfc-nci/src/nfc/tags/
Dce_t4t.c133 p_t4t->nlen, in ce_t4t_select_file()
204 UINT16_TO_BE_STREAM (p_dst, p_t4t->nlen); in ce_t4t_read_binary()
216 UINT8_TO_BE_STREAM (p_dst, (UINT8) (p_t4t->nlen)); in ce_t4t_read_binary()
280 UINT16_TO_BE_STREAM (p, p_t4t->nlen); in ce_t4t_update_binary()
289 BE_STREAM_TO_UINT16 (p_t4t->nlen, p); in ce_t4t_update_binary()
296 if ((starting_offset == 0) && (p_t4t->nlen > 0)) in ce_t4t_update_binary()
303 ce_data.update_info.length = p_t4t->nlen; in ce_t4t_update_binary()
918 p_t4t->nlen = ndef_msg_len; in CE_T4tSetLocalNDEFMsg()
/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/opencv3/3rdparty/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/pdfium/third_party/zlib_v128/
Dinfback.c361 state->nlen = BITS(5) + 257; in inflateBack()
368 if (state->nlen > 286 || state->ndist > 30) { in inflateBack()
399 while (state->have < state->nlen + state->ndist) { in inflateBack()
436 if (state->have + copy > state->nlen + state->ndist) { in inflateBack()
462 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), in inflateBack()
471 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, in inflateBack()
/external/webrtc/webrtc/base/
Dhttpbase.cc142 size_t nlen = (value - line); in ProcessLine() local
148 if (MatchHeader(line, nlen, HH_CONTENT_LENGTH)) { in ProcessLine()
159 } else if (MatchHeader(line, nlen, HH_TRANSFER_ENCODING)) { in ProcessLine()
169 return ProcessHeader(line, nlen, value, vlen, error); in ProcessLine()
822 HttpBase::ProcessHeader(const char* name, size_t nlen, const char* value, in ProcessHeader() argument
824 std::string sname(name, nlen), svalue(value, vlen); in ProcessHeader()
/external/boringssl/src/crypto/pem/
Dpem_lib.c555 int nlen,n,i,j,outl; in PEM_write_bio() local
561 nlen=strlen(name); in PEM_write_bio()
564 (BIO_write(bp,name,nlen) != nlen) || in PEM_write_bio()
600 (BIO_write(bp,name,nlen) != nlen) || in PEM_write_bio()

1234