| /openbsd-src/bin/csh/ |
| H A D | str.c | 58 sdst = dst = xreallocarray(NULL, n + 1, sizeof(Char *)); in blk2short() 77 sdst = dst = xreallocarray(NULL, n + 1, sizeof(char *)); in short2blk() 97 sdst = xreallocarray(NULL, dstsize, sizeof(Char)); in str2short() 106 sdst = xreallocarray(sdst, dstsize, sizeof(Char)); in str2short() 127 sdst = xreallocarray(NULL, dstsize, sizeof(char)); in short2str() 135 sdst = xreallocarray(sdst, dstsize, sizeof(char)); in short2str() 290 n = p = xreallocarray(NULL, p - s, sizeof(Char)); in Strsave() 310 ep = xreallocarray(NULL, ((p - cp) + (q - dp) - 1), sizeof(Char)); in Strspl() 355 sdst = xreallocarray(NULL, dstsize, sizeof(char)); in short2qstr() 364 sdst = xreallocarray(sdst, dstsize, sizeof(char)); in short2qstr() [all …]
|
| H A D | glob.c | 126 nv = vl = xreallocarray(NULL, size, sizeof(Char *)); in globbrace() 193 nv = xreallocarray(nv, size, sizeof(Char *)); in globbrace() 248 nv = xreallocarray(nv, size, sizeof(Char *)); in expbrace() 278 nv = vl = xreallocarray(NULL, size, sizeof(Char *)); in globexpand() 293 nv = xreallocarray(nv, size, sizeof(Char *)); in globexpand() 304 nv = xreallocarray(nv, size, sizeof(Char *)); in globexpand() 508 gargv = xreallocarray(NULL, gargsiz, sizeof(Char *)); in ginit() 583 pargv = xreallocarray(NULL, pargsiz, sizeof(Char *)); in dobackp() 763 pargv = xreallocarray(pargv, pargsiz, sizeof(Char *)); in pword() 782 blk = xreallocarray(NULL, GLOBSPACE, sizeof(Char *)); in Gmatch() [all …]
|
| H A D | dir.c | 136 Char **vec = xreallocarray(NULL, 2, sizeof(*vec)); in dset() 270 cwd = xreallocarray(NULL, len, sizeof(Char)); in dnormalize() 379 dp = xreallocarray(NULL, (cwdlen + (p - cp) + 1), sizeof(Char)); in dgoto() 701 p1 = newcp = xreallocarray(NULL, in dcanon() 721 p1 = newcp = xreallocarray(NULL, cc + (p1 - p), in dcanon() 791 p1 = newcp = xreallocarray(NULL, in dcanon() 811 p1 = newcp = xreallocarray(NULL, cc + (p1 - p), sizeof(Char)); in dcanon()
|
| H A D | alloc.c | 55 xreallocarray(void * p, size_t c, size_t n) in xreallocarray() function
|
| /openbsd-src/usr.bin/tmux/ |
| H A D | utf8.c | 686 buf = xreallocarray(NULL, 4, strlen(src) + 1); in utf8_fromcstr() 700 buf = xreallocarray(NULL, 4, srclen + 1); in utf8_fromcstr() 746 dst = xreallocarray(dst, n + 1, sizeof *dst); in utf8_cstrwidth() 751 dst = xreallocarray(dst, n + ud.width, in utf8_padcstr() 765 dst = xreallocarray(dst, n + 1, sizeof *dst); in utf8_padcstr() 808 dst = xreallocarray(dst, n + 1, sizeof *dst); in utf8_cstrhas() 822 dst = xreallocarray(dst, n + 1, sizeof *dst); 835 dst = xreallocarray(dst, n + src->size, 1); 839 dst = xreallocarray(dst, n + 1, 1);
|
| H A D | xmalloc.c | 57 return xreallocarray(ptr, 1, size); in xrealloc() 61 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
|
| H A D | grid.c | 107 gl->extddata = xreallocarray(gl->extddata, at, sizeof *gl->extddata); in grid_get_extended_cell() 170 new_extddata = xreallocarray(NULL, new_extdsize, sizeof *gl->extddata); in grid_compact_line() 198 gd->linedata = xreallocarray(gd->linedata, lines, sizeof *gd->linedata); in grid_clear_cell() 420 gd->linedata = xreallocarray(gd->linedata, yy + 1, in grid_clear_history() 439 gd->linedata = xreallocarray(gd->linedata, gd->sy, in grid_scroll_history_region() 452 gd->linedata = xreallocarray(gd->linedata, yy + 1, in grid_scroll_history_region() 495 gl->celldata = xreallocarray(gl->celldata, sx, sizeof *gl->celldata); in grid_peek_line() 1118 buf = xreallocarray(buf, 2, len); in grid_string_cells() 1135 buf = xreallocarray(buf, 2, len); in grid_duplicate_lines() 1174 dstl->celldata = xreallocarray(NUL [all...] |
| H A D | xmalloc.h | 25 void *xreallocarray(void *, size_t, size_t);
|
| /openbsd-src/usr.bin/col/ |
| H A D | col.c | 86 void *xreallocarray(void *, size_t, size_t); 280 l->l_line = xreallocarray(l->l_line, in main() 399 sorted = xreallocarray(sorted, in flush_line() 404 count = xreallocarray(count, in flush_line() 503 l = xreallocarray(NULL, NALLOC, sizeof(LINE)); in alloc_line() 525 xreallocarray(void *p, size_t n, size_t size) in xreallocarray() function
|
| /openbsd-src/usr.bin/ctfconv/ |
| H A D | xmalloc.c | 57 return xreallocarray(ptr, 1, size); in xrealloc() 61 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
|
| H A D | xmalloc.h | 25 void *xreallocarray(void *, size_t, size_t);
|
| /openbsd-src/usr.bin/fmt/ |
| H A D | fmt.c | 248 static void *xreallocarray(void *, size_t, size_t); 683 buf = xreallocarray(NULL, length, 1); in get_line() 691 buf = xreallocarray(buf, length, 2); in get_line() 709 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
|
| /openbsd-src/usr.sbin/amd/amd/ |
| H A D | util.c | 73 p = xreallocarray(p, l1 + l2 + l3 + 1, 1); in str3cat() 87 p = xreallocarray(p, len, 1); in strealloc() 100 ivec = xreallocarray(NULL, ic + 1, sizeof *ivec); in strsplit() 149 ivec = xreallocarray(ivec, ic + 1, sizeof *ivec); in strsplit()
|
| /openbsd-src/usr.bin/rcs/ |
| H A D | rcsnum.c | 264 nump->rn_id = xreallocarray(nump->rn_id, in rcsnum_aton() 327 nump->rn_id = xreallocarray(nump->rn_id, in rcsnum_aton() 407 num->rn_id = xreallocarray(num->rn_id, len, sizeof(*(num->rn_id))); in rcsnum_setsize()
|
| H A D | xmalloc.h | 24 void *xreallocarray(void *, size_t, size_t);
|
| H A D | diff.c | 367 member = xreallocarray(member, slen[1] + 2, sizeof(*member)); in diffreg() 371 class = xreallocarray(class, slen[0] + 2, sizeof(*class)); in diffreg() 381 J = xreallocarray(J, len[0] + 2, sizeof(*J)); in diffreg() 386 ixold = xreallocarray(ixold, len[0] + 2, sizeof(*ixold)); in diffreg() 387 ixnew = xreallocarray(ixnew, len[1] + 2, sizeof(*ixnew)); in diffreg() 448 p = xreallocarray(p, sz + 3, sizeof(*p)); in prepare() 579 clist = xreallocarray(clist, clistlen, sizeof(*clist)); in newcand() 918 context_vec_start = xreallocarray(context_vec_start, in change()
|
| /openbsd-src/usr.bin/diff/ |
| H A D | xmalloc.h | 24 void *xreallocarray(void *, size_t, size_t);
|
| H A D | diffreg.c | 381 member = xreallocarray(member, slen[1] + 2, sizeof(*member)); in diffreg() 385 class = xreallocarray(class, slen[0] + 2, sizeof(*class)); in diffreg() 395 J = xreallocarray(J, len[0] + 2, sizeof(*J)); in diffreg() 400 ixold = xreallocarray(ixold, len[0] + 2, sizeof(*ixold)); in diffreg() 401 ixnew = xreallocarray(ixnew, len[1] + 2, sizeof(*ixnew)); in diffreg() 515 p = xreallocarray(p, sz + 3, sizeof(*p)); in prepare() 646 clist = xreallocarray(clist, clistlen, sizeof(*clist)); in newcand() 1009 context_vec_start = xreallocarray(context_vec_start, in change()
|
| /openbsd-src/usr.bin/file/ |
| H A D | xmalloc.h | 24 void *xreallocarray(void *, size_t, size_t);
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | xmalloc.h | 21 void *xreallocarray(void *, size_t, size_t);
|
| /openbsd-src/usr.bin/cvs/ |
| H A D | xmalloc.h | 24 void *xreallocarray(void *, size_t, size_t);
|
| H A D | diff_internals.c | 385 member = xreallocarray(member, slen[1] + 2, sizeof(*member)); in diffreg() 389 class = xreallocarray(class, slen[0] + 2, sizeof(*class)); in diffreg() 399 J = xreallocarray(J, len[0] + 2, sizeof(*J)); in diffreg() 404 ixold = xreallocarray(ixold, len[0] + 2, sizeof(*ixold)); in diffreg() 405 ixnew = xreallocarray(ixnew, len[1] + 2, sizeof(*ixnew)); in diffreg() 466 p = xreallocarray(p, sz + 3, sizeof(*p)); in prepare() 597 clist = xreallocarray(clist, clistlen, sizeof(*clist)); in newcand() 1007 context_vec_start = xreallocarray(context_vec_start, in change()
|
| H A D | diff3.c | 526 buf = xreallocarray(buf, 1, bufsize); in get_line() 837 d13 = xreallocarray(d13, newsz, sizeof(*d13)); in increase() 839 d23 = xreallocarray(d23, newsz, sizeof(*d23)); in increase() 841 de = xreallocarray(de, newsz, sizeof(*de)); in increase() 843 overlap = xreallocarray(overlap, newsz, sizeof(*overlap)); in increase()
|
| /openbsd-src/usr.sbin/ldomctl/ |
| H A D | ldom_util.h | 26 void *xreallocarray(void *, size_t, size_t);
|
| /openbsd-src/usr.bin/sed/ |
| H A D | extern.h | 61 void *xreallocarray(void *, size_t, size_t);
|