Home
last modified time | relevance | path

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

12

/external/dtc/libfdt/
Dfdt_rw.c97 static int _fdt_splice(void *fdt, void *splicepoint, int oldlen, int newlen) in _fdt_splice() argument
102 if (((p + oldlen) < p) || ((p + oldlen) > end)) in _fdt_splice()
104 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in _fdt_splice()
106 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in _fdt_splice()
108 memmove(p + newlen, p + oldlen, end - p - oldlen); in _fdt_splice()
126 int oldlen, int newlen) in _fdt_splice_struct() argument
128 int delta = newlen - oldlen; in _fdt_splice_struct()
131 if ((err = _fdt_splice(fdt, p, oldlen, newlen))) in _fdt_splice_struct()
206 int oldlen; in _fdt_resize_property() local
209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
[all …]
/external/u-boot/scripts/dtc/libfdt/
Dfdt_rw.c56 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
61 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
63 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in fdt_splice_()
65 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in fdt_splice_()
67 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
85 int oldlen, int newlen) in fdt_splice_struct_() argument
87 int delta = newlen - oldlen; in fdt_splice_struct_()
90 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
188 int oldlen; in fdt_resize_property_() local
191 *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/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl04.c33 size_t *oldlen; member
49 .oldlenp = tc->oldlen, in verify_sysctl()
/external/toybox/toys/posix/
Dpatch.c53 long oldline, oldlen, newline, newlen, linenum, outnum;
346 if (*patchline != '+') TT.oldlen--; in patch_main()
354 if (!TT.oldlen && !TT.newlen) state = apply_one_hunk(); in patch_main()
398 TT.oldlen = TT.newlen = 1; in patch_main()
400 if (*s == ',') TT.oldlen=strtol(s+1, &s, 10); in patch_main()
412 oldsum = TT.oldline + TT.oldlen; in patch_main()
Dsed.c229 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
235 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
236 if (newline) s[oldlen++] = '\n'; in extend_string()
237 memcpy(s+oldlen, new, newlen); in extend_string()
238 s[oldlen+newlen] = 0; in extend_string()
240 return s+oldlen+newlen+1; in extend_string()
/external/dtc/
Dfdtput.c154 int oldlen = 0; in realloc_property() local
156 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()
160 if (newlen > oldlen) in realloc_property()
162 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/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/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/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.c1462 curl_off_t oldlen = config->postfieldsize; in getparameter() local
1463 curl_off_t newlen = oldlen + curlx_uztoso(size) + 2; in getparameter()
1470 memcpy(config->postfields, oldpost, (size_t)oldlen); in getparameter()
1472 config->postfields[oldlen] = '\x26'; in getparameter()
1473 memcpy(&config->postfields[oldlen + 1], postdata, size); in getparameter()
1474 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/python/cpython3/Parser/
Dtokenizer.c887 size_t oldlen = tok->cur - tok->buf; in tok_nextc() local
888 size_t newlen = oldlen + strlen(newtok); in tok_nextc()
900 tok->cur = tok->buf + oldlen; in tok_nextc()
902 strcpy(tok->buf + oldlen, newtok); in tok_nextc()
/external/libevent/test/
Dregress.c2394 int oldlen, newlen; in evtag_int_test() local
2395 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_int_test()
2399 (unsigned)integers[i], newlen - oldlen)); in evtag_int_test()
2471 int oldlen, newlen; in evtag_tag_encoding() local
2472 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
2476 (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/cpython3/Lib/lib2to3/pgen2/
Dpgen.py160 oldlen = len(dfa)
/external/python/cpython2/Lib/lib2to3/pgen2/
Dpgen.py160 oldlen = len(dfa)
/external/kmod/tools/
Ddepmod.c1109 size_t oldlen = mod->baselen + mod->modnamesz; in depmod_module_is_higher_priority() local
1126 reloldlen = oldlen - (cfg->dirnamelen + 1); in depmod_module_is_higher_priority()
1151 oldlen, in depmod_module_is_higher_priority()
/external/toybox/android/linux/generated/
Dglobals.h1330 long oldline, oldlen, newline, newlen, linenum, outnum; member

12