Home
last modified time | relevance | path

Searched refs:xrealloc (Results 1 – 25 of 46) sorted by relevance

12

/freebsd-14-stable/contrib/file/tests/
HDtest.c40 xrealloc(void *p, size_t n) in xrealloc() function
56 char *l = xrealloc(NULL, len), *s = l; in slurp()
62 l = xrealloc(l, len); in slurp()
69 l = xrealloc(l, len + 1); in slurp()
75 return xrealloc(l, s - l); in slurp()
/freebsd-14-stable/contrib/tcsh/
HDtc.str.c245 sdst = xrealloc(sdst, (dstsize + MALLOC_SURPLUS) * sizeof(char));
522 buf = xrealloc(buf, size);
552 sdst = xrealloc(sdst,
563 sdst = xrealloc(sdst, (dstsize + MALLOC_SURPLUS) * sizeof(char));
586 bb->vec = xrealloc(bb->vec, bb->size * sizeof (*bb->vec));
625 return xrealloc(bb->vec, (bb->len + 1) * sizeof (*bb->vec));
644 buf->s = xrealloc(buf->s, buf->size * sizeof(*buf->s)); \
672 buf->s = xrealloc(buf->s, buf->size * sizeof(*buf->s)); \
688 return xrealloc(buf->s, buf->len * sizeof(*buf->s)); \
HDtc.printf.c422 buf = xrealloc(buf, size); in xvasprintf()
433 return xrealloc(buf, xstring - buf); in xvasprintf()
HDtc.bind.c362 str->buf = xrealloc(b.s, (b.len + 1) * sizeof (*str->buf)); in parsebind()
400 buf->buf = xrealloc(b.s, (b.len + 1) * sizeof (*buf->buf)); in parsestring()
HDsh.misc.c558 buf = xrealloc(buf, size); in areadlink()
569 return xrealloc(buf, res + 1); in areadlink()
HDsh.glob.c261 nv = xrealloc(nv, size * sizeof(Char *)); in expbrace()
321 *fnv = xrealloc(*fnv, size * sizeof(Char *)); in globexpand()
331 *fnv = xrealloc(*fnv, size * sizeof(Char *)); in globexpand()
HDtw.init.c112 sl->list = xrealloc(sl->list, sl->tlist * sizeof(Char *)); in tw_str_add()
121 sl->buff = xrealloc(sl->buff, sl->tbuff * sizeof(Char)); in tw_str_add()
/freebsd-14-stable/contrib/xz/src/xz/
HDutil.h17 #define xmalloc(size) xrealloc(NULL, size)
22 extern void *xrealloc(void *ptr, size_t size);
HDmain.c134 name = xrealloc(name, size); in read_name()
HDutil.c60 xrealloc(void *ptr, size_t size) in xrealloc() function
/freebsd-14-stable/contrib/diff/src/
HDio.c174 current->buffer = xrealloc (current->buffer, cc); in slurp()
201 current->buffer = xrealloc (current->buffer, current->bufsize); in slurp()
209 current->buffer = xrealloc (current->buffer, current->bufsize); in slurp()
417 eqs = xrealloc (eqs, eqs_alloc * sizeof *eqs); in find_and_hash_each_line()
458 cureqs = xrealloc (cureqs, alloc_lines * sizeof *cureqs); in find_and_hash_each_line()
460 linbuf = xrealloc (linbuf, in find_and_hash_each_line()
485 linbuf = xrealloc (linbuf, in find_and_hash_each_line()
743 linbuf0 = xrealloc (linbuf0, alloc_lines0 * sizeof *linbuf0); in find_identical_ends()
HDdir.c109 dirdata->data = data = xrealloc (data, data_alloc *= 2); in dir_read()
/freebsd-14-stable/contrib/diff/lib/
HDxmalloc.c114 xrealloc (void *p, size_t n) in xrealloc() function
202 return xrealloc (p, n * s); in x2nrealloc_inline()
HDxalloc.h55 void *xrealloc (void *p, size_t s);
HDexclude.c235 buf = xrealloc (buf, buf_count + 1); in add_exclude_file()
/freebsd-14-stable/usr.bin/gencat/
HDgencat.c113 static void *xrealloc(void *, size_t);
216 xrealloc(void *ptr, size_t size) function
258 cptr = curline = xrealloc(curline, curlen *= 2);
315 msg = xrealloc(msg, clen);
342 msg = xrealloc(msg, msglen);
/freebsd-14-stable/usr.bin/fmt/
HDfmt.c266 static void *xrealloc(void *, size_t);
268 #define XMALLOC(x) xrealloc(0,x)
751 buf = xrealloc(buf, length * sizeof(wchar_t)); in get_line()
777 xrealloc(void *ptr, size_t nbytes) in xrealloc() function
/freebsd-14-stable/usr.bin/logins/
HDlogins.c100 xrealloc(void *ptr, size_t size) in xrealloc() function
134 grps = xrealloc(grps, grpsz * sizeof *grps); in get_groups()
209 pwds = xrealloc(pwds, pwdsz * sizeof *pwds); in get_users()
/freebsd-14-stable/contrib/ldns/drill/
HDdrill_util.h59 void *xrealloc(void *p, size_t s);
HDdrill_util.c293 xrealloc(void *p, size_t size) in xrealloc() function
/freebsd-14-stable/usr.bin/m4/
HDmisc.c206 newbuf = xrealloc(buf, bufsize, "too many characters pushed back"); in enlarge_bufspace()
336 xrealloc(void *old, size_t n, const char *fmt, ...) in xrealloc() function
HDextern.h111 extern void *xrealloc(void *, size_t, const char *, ...) __printf0like(3, 4);
HDgnum4.c220 buffer = xrealloc(buffer, bufsize, NULL); in addchars()
234 buffer = xrealloc(buffer, bufsize, NULL); in addchar()
/freebsd-14-stable/usr.bin/rpcgen/
HDrpc_util.h158 void *xrealloc(void *ptr, size_t size);
/freebsd-14-stable/usr.sbin/crunch/crunchide/
HDexec_elf32.c142 xrealloc(void *ptr, size_t size, const char *fn, const char *use) in xrealloc() function
411 nstrtabp = xrealloc(nstrtabp, nstrtab_size, fn, in ELFNAMEEND()

12