Searched refs:newlen (Results 1 – 4 of 4) sorted by relevance
206 int newlen = SHELL_ALIGN(stacknleft * 2 + 100); in growstackblock() local218 sizeof(struct stack_block) - MINSIZE + newlen); in growstackblock()222 stacknleft = newlen; in growstackblock()239 char *p = stalloc(newlen); in growstackblock()243 stacknleft += newlen; /* we just allocated */ in growstackblock()
127 grep_lnbufgrow(size_t newlen) in grep_lnbufgrow() argument130 if (lnbuflen < newlen) { in grep_lnbufgrow()131 lnbuf = grep_realloc(lnbuf, newlen); in grep_lnbufgrow()132 lnbuflen = newlen; in grep_lnbufgrow()
68 int newlen = extra->used_size + len; in add_extra_option() local73 if (newlen >= extra->alloc_size) { in add_extra_option()76 new = realloc(extra->str, newlen + 1); /* +1 for NUL */ in add_extra_option()82 extra->alloc_size = newlen; in add_extra_option()
409 int newlen = len; in canonicalize_slashes() local417 newlen++; in canonicalize_slashes()420 newlen++; in canonicalize_slashes()422 ret = malloc(newlen + 1); in canonicalize_slashes()439 if (ptr != ret + newlen) { in canonicalize_slashes()