Home
last modified time | relevance | path

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

12

/freebsd/contrib/file/tests/
H A Dtest.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/contrib/tcsh/
H A Dtc.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)); \
H A Dtc.printf.c422 buf = xrealloc(buf, size); in xvasprintf()
433 return xrealloc(buf, xstring - buf); in xvasprintf()
H A Dtc.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()
H A Dsh.misc.c558 buf = xrealloc(buf, size); in areadlink()
569 return xrealloc(buf, res + 1); in areadlink()
H A Dsh.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()
/freebsd/contrib/diff/src/
H A Dio.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()
H A Ddir.c109 dirdata->data = data = xrealloc (data, data_alloc *= 2); in dir_read()
/freebsd/contrib/diff/lib/
H A Dxmalloc.c114 xrealloc (void *p, size_t n) in xrealloc() function
202 return xrealloc (p, n * s); in x2nrealloc_inline()
H A Dxalloc.h55 void *xrealloc (void *p, size_t s);
H A Dexclude.c235 buf = xrealloc (buf, buf_count + 1); in add_exclude_file()
/freebsd/usr.bin/gencat/
H A Dgencat.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/usr.bin/fmt/
H A Dfmt.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/usr.bin/logins/
H A Dlogins.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/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.h47 void *xrealloc(void *, size_t);
H A Dmemory.c109 xrealloc(void *ptr, size_t size) in xrealloc() function
/freebsd/contrib/ldns/drill/
H A Ddrill_util.h59 void *xrealloc(void *p, size_t s);
H A Ddrill_util.c293 xrealloc(void *p, size_t size) in xrealloc() function
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstack.c101 sp->st_data = xrealloc(sp->st_data, in stack_push()
H A Dstrtab.c45 sp->str_bufs = xrealloc(sp->str_bufs, sp->str_nbufs * sizeof (char *)); in strtab_grow()
/freebsd/usr.bin/m4/
H A Dmisc.c205 newbuf = xrealloc(buf, bufsize, "too many characters pushed back"); in enlarge_bufspace()
335 xrealloc(void *old, size_t n, const char *fmt, ...) in xrealloc() function
H A Dextern.h109 extern void *xrealloc(void *, size_t, const char *, ...) __printf0like(3, 4);
H A Dgnum4.c220 buffer = xrealloc(buffer, bufsize, NULL); in addchars()
234 buffer = xrealloc(buffer, bufsize, NULL); in addchar()
/freebsd/usr.bin/rpcgen/
H A Drpc_util.h154 void *xrealloc(void *ptr, size_t size);
/freebsd/usr.sbin/crunch/crunchide/
H A Dexec_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