Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 4 of 4) sorted by relevance

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c127 grep_lnbufgrow(size_t newlen) in grep_lnbufgrow() argument
130 if (lnbuflen < newlen) { in grep_lnbufgrow()
131 lnbuf = grep_realloc(lnbuf, newlen); in grep_lnbufgrow()
132 lnbuflen = newlen; in grep_lnbufgrow()
/system/core/toolbox/
Dmount.c68 int newlen; in add_extra_option() local
72 newlen = extra->used_size + len; in add_extra_option()
74 if (newlen >= extra->alloc_size) { in add_extra_option()
77 new = realloc(extra->str, newlen + 1); /* +1 for NUL */ in add_extra_option()
83 extra->alloc_size = newlen + 1; in add_extra_option()
/system/extras/ext4_utils/
Dmake_ext4fs.c431 int newlen = len; in canonicalize_slashes() local
442 newlen++; in canonicalize_slashes()
445 newlen++; in canonicalize_slashes()
447 ret = malloc(newlen + 1); in canonicalize_slashes()
464 if (ptr != ret + newlen) { in canonicalize_slashes()
/system/core/libutils/
DString8.cpp636 int newlen = strlen(name); in appendPath() local
638 char* buf = lockBuffer(len+1+newlen); in appendPath()
644 memcpy(buf+len, name, newlen+1); in appendPath()
645 len += newlen; in appendPath()