Home
last modified time | relevance | path

Searched refs:oldlen (Results 1 – 25 of 31) sorted by relevance

12

/external/dtc/libfdt/
Dfdt_rw.c54 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
60 if ((oldlen < 0) || (soff + oldlen < soff) || (soff + oldlen > dsize)) in fdt_splice_()
62 if ((p < (char *)fdt) || (dsize + newlen < oldlen)) in fdt_splice_()
64 if (dsize - oldlen + newlen > fdt_totalsize(fdt)) in fdt_splice_()
66 memmove(p + newlen, p + oldlen, ((char *)fdt + dsize) - (p + oldlen)); in fdt_splice_()
84 int oldlen, int newlen) in fdt_splice_struct_() argument
86 int delta = newlen - oldlen; in fdt_splice_struct_()
89 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
187 int oldlen; in fdt_resize_property_() local
190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
[all …]
/external/apache-http/src/org/apache/http/util/
DByteArrayBuffer.java106 int oldlen = this.len; in append() local
107 int newlen = oldlen + len; in append()
111 for (int i1 = off, i2 = oldlen; i2 < newlen; i1++, i2++) { in append()
DCharArrayBuffer.java135 int oldlen = this.len; in append() local
136 int newlen = oldlen + len; in append()
140 for (int i1 = off, i2 = oldlen; i2 < newlen; i1++, i2++) { in append()
/external/strace/
Dsysctl.c168 size_t oldlen = 0; in SYS_FUNC() local
171 } else if (umove(tcp, ptr_to_kulong(info.oldlenp), &oldlen) >= 0 in SYS_FUNC()
181 tprintf(", %lu, ", (unsigned long)oldlen); in SYS_FUNC()
/external/rust/crates/tinyvec/src/
Darrayvec_drain.rs49 let oldlen = arr.len(); in new() localVariable
50 let newlen = oldlen - len; in new()
52 let slice = &mut arr.data.as_slice_mut()[newlen..oldlen]; in new()
/external/toybox/toys/posix/
Dpatch.c53 long oldline, oldlen, newline, newlen, linenum, outnum;
333 if (*patchline != '+') TT.oldlen--; in patch_main()
341 if (!TT.oldlen && !TT.newlen) state = apply_one_hunk(); in patch_main()
385 TT.oldlen = TT.newlen = 1; in patch_main()
387 if (*s == ',') TT.oldlen=strtol(s+1, &s, 10); in patch_main()
399 oldsum = TT.oldline + TT.oldlen; in patch_main()
Dsed.c176 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
182 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
183 if (newline) s[oldlen++] = '\n'; in extend_string()
184 memcpy(s+oldlen, new, newlen); in extend_string()
185 s[oldlen+newlen] = 0; in extend_string()
187 return s+oldlen+newlen+1; in extend_string()
/external/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl04.c33 size_t *oldlen; member
49 .oldlenp = tc->oldlen, in verify_sysctl()
/external/dtc/
Dfdtput.c140 int oldlen = 0; in realloc_property() local
142 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()
146 if (newlen > oldlen) in realloc_property()
148 delta += ALIGN(newlen) - ALIGN(oldlen); in realloc_property()
/external/e2fsprogs/util/
Dsymlinks.c48 int oldlen = strlen(old), newlen = 0; in substr() local
56 if (newlen > oldlen) { in substr()
67 if (newlen > oldlen) in substr()
73 p = old_s + oldlen; in substr()
/external/libfuse/lib/
Dfuse_opt.c117 unsigned oldlen = *opts ? strlen(*opts) : 0; in add_opt_common() local
118 char *d = realloc(*opts, oldlen + 1 + strlen(opt) * 2 + 1); in add_opt_common()
124 if (oldlen) { in add_opt_common()
125 d += oldlen; in add_opt_common()
/external/ltp/utils/sctp/func_tests/
Dtest_sctp_sendrecvmsg.c92 socklen_t len, oldlen; in main() local
149 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &oldlen, &len); in main()
191 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &oldlen, in main()
192 sizeof(oldlen)); in main()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMManagerDefault.java156 int oldlen=m_dtms.length; in addDTM() local
157 if(oldlen<=id) in addDTM()
167 System.arraycopy(m_dtms,0,new_m_dtms,0,oldlen); in addDTM()
170 System.arraycopy(m_dtm_offsets,0,new_m_dtm_offsets,0,oldlen); in addDTM()
/external/ImageMagick/scripts/
Dtxt2html769 local($oldlen) = (length($oldws));
772 for($i=0, $column = 0; $i < $oldlen; $i++)
781 $line = (" " x $column) . substr($line, $oldlen);
/external/curl/src/
Dtool_getparam.c1480 curl_off_t oldlen = config->postfieldsize; in getparameter() local
1481 curl_off_t newlen = oldlen + curlx_uztoso(size) + 2; in getparameter()
1488 memcpy(config->postfields, oldpost, (size_t)oldlen); in getparameter()
1490 config->postfields[oldlen] = '\x26'; in getparameter()
1491 memcpy(&config->postfields[oldlen + 1], postdata, size); in getparameter()
1492 config->postfields[oldlen + 1 + size] = '\0'; in getparameter()
/external/python/cpython2/Parser/
Dtokenizer.c899 size_t oldlen = tok->cur - tok->buf; in tok_nextc() local
900 size_t newlen = oldlen + strlen(newtok); in tok_nextc()
912 tok->cur = tok->buf + oldlen; in tok_nextc()
914 strcpy(tok->buf + oldlen, newtok); in tok_nextc()
/external/ipsec-tools/src/racoon/
Disakmp.c2409 int oldlen = 0; local
2414 oldlen = buf0->l;
2415 buf = vrealloc(buf0, oldlen + tlen);
2424 data = (struct isakmp_data *)(buf->v + oldlen);
2442 int oldlen = 0; local
2447 oldlen = buf0->l;
2448 buf = vrealloc(buf0, oldlen + tlen);
2457 data = (struct isakmp_data *)(buf->v + oldlen);
Disakmp_inf.c1061 int oldlen = 0; local
1071 oldlen = buf0->l;
1081 n = (struct isakmp_pl_n *)(buf->v + oldlen);
/external/starlark-go/starlark/
Dinterp.go417 oldlen := dict.Len()
422 if op == compile.SETDICTUNIQ && dict.Len() == oldlen {
Deval.go1447 oldlen := kwdict.Len()
1449 if kwdict.Len() == oldlen {
/external/python/cpython3/Parser/
Dtokenizer.c891 size_t oldlen = tok->cur - tok->buf; in tok_nextc() local
892 size_t newlen = oldlen + strlen(newtok); in tok_nextc()
905 tok->cur = tok->buf + oldlen; in tok_nextc()
908 strcpy(tok->buf + oldlen, newtok); in tok_nextc()
/external/libevent/test/
Dregress.c2441 int oldlen, newlen; in evtag_int_test() local
2442 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_int_test()
2446 (unsigned)integers[i], newlen - oldlen)); in evtag_int_test()
2518 int oldlen, newlen; in evtag_tag_encoding() local
2519 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
2523 (unsigned)integers[i], newlen - oldlen)); in evtag_tag_encoding()
/external/protobuf/ruby/ext/google/protobuf_c/
Dencode_decode.c39 size_t oldlen = RSTRING_LEN(rb_str); in noleak_rb_str_cat() local
42 memcpy(p + oldlen, str, len); in noleak_rb_str_cat()
43 rb_str_set_len(rb_str, oldlen + len); in noleak_rb_str_cat()
/external/python/cpython2/Lib/lib2to3/pgen2/
Dpgen.py160 oldlen = len(dfa)
/external/python/cpython3/Lib/lib2to3/pgen2/
Dpgen.py160 oldlen = len(dfa)

12