Symbol: reallocarray
bin/sh/histedit.c
601
matches = reallocarray(matches, *size, sizeof(matches[0]));
crypto/openssh/openbsd-compat/glob.c
830
pathv = reallocarray(pglob->gl_pathv, newn, sizeof(*pathv));
crypto/openssh/openbsd-compat/glob.c
842
statv = reallocarray(pglob->gl_statv, newn, sizeof(*statv));
crypto/openssh/openbsd-compat/openbsd-compat.h
102
void *reallocarray(void *, size_t, size_t);
crypto/openssh/openbsd-compat/vis.c
222
buf = reallocarray(NULL, 4, strlen(src) + 1);
crypto/openssh/scp.c
772
if ((tmp = reallocarray(*ap, *np + 1, sizeof(*tmp))) == NULL)
crypto/openssh/xmalloc.c
67
new_ptr = reallocarray(ptr, nmemb, size);
include/stdlib.h
323
void *reallocarray(void *, size_t, size_t) __result_use_check
lib/libc/gen/glob-compat11.c
829
pathv = reallocarray(pglob->gl_pathv, newn, sizeof(*pathv));
lib/libc/gen/glob.c
891
pathv = reallocarray(pglob->gl_pathv, newn, sizeof(*pathv));
lib/libc/gen/scandir-compat11.c
100
names2 = reallocarray(names, arraysz,
lib/libc/gen/scandir.c
104
names2 = reallocarray(names, arraysz, sizeof(*names));
lib/libc/gen/setmode.c
154
newset = reallocarray(saveset, setlen, sizeof(BITCMD)); \
lib/libc/gen/wordexp.c
235
if ((nwv = reallocarray(we->we_wordv, (we->we_wordc + 1 +
lib/libc/iconv/citrus_esdb.c
350
q = reallocarray(list, num, sizeof(char *));
lib/libc/net/nsdispatch.c
215
p = reallocarray(vec, *count + ELEMSPERCHUNK, esize);
lib/libc/regex/regcomp.c
1570
ncs = reallocarray(p->g->sets, p->g->ncsets + 1, sizeof(*ncs));
lib/libc/regex/regcomp.c
1648
newwides = reallocarray(cs->wides, cs->nwides + 1,
lib/libc/regex/regcomp.c
1677
newranges = reallocarray(cs->ranges, cs->nranges + 1,
lib/libc/regex/regcomp.c
1701
newtypes = reallocarray(cs->types, cs->ntypes + 1,
lib/libc/regex/regcomp.c
1824
sp = reallocarray(p->strip, size, sizeof(sop));
lib/libc/regex/regcomp.c
1842
g->strip = reallocarray((char *)p->strip, p->slen, sizeof(sop));
lib/libc/rpc/getnetconfig.c
592
if ((nc_lookups = reallocarray(ncp->nc_lookups,
lib/libc/stdio/open_wmemstream.c
65
buf = reallocarray(*ms->bufp, newsize + 1, sizeof(wchar_t));
lib/libc/stdio/printf-pos.c
646
newtable = reallocarray(oldtable, newsize, sizeof(enum typeid));
lib/libc/stdio/ungetc.c
72
p = reallocarray(fp->_ub._base, i, 2);
lib/libc/stdlib/getenv.c
273
tmpEnviron = reallocarray(intEnviron, tmpEnvironSize + 1,
lib/libc/stdlib/getenv.c
307
tmpEnvVars = reallocarray(envVars, newEnvVarsSize,
lib/libfetch/common.c
1587
tmp = reallocarray(*p, *size * 2 + 1, sizeof(**p));
lib/libgssapi/gss_buffer_set.c
80
set->elements = reallocarray(set->elements, set->count + 1,
lib/libiconv_modules/ISO2022/citrus_iso2022.c
262
p = reallocarray(ei->recommend[i], ei->recommendsize[i] + 1,
lib/libjail/jail.c
354
tjp = reallocarray(jp, nlist, sizeof(*jp));
lib/libjail/jail.c
364
tjp = reallocarray(jp, njp, sizeof(*jp));
lib/libpam/modules/pam_exec/pam_exec.c
206
tmp = reallocarray(envlist, envlen + extralen + 1, sizeof(*envlist));
lib/libpmcstat/libpmcstat_image.c
156
image->pi_symbols = reallocarray(image->pi_symbols,
lib/libpmcstat/libpmcstat_image.c
93
symptr = reallocarray(image->pi_symbols,
lib/libproc/proc_rtld.c
53
tmp = reallocarray(phdl->mappings, phdl->maparrsz,
lib/libthread_db/libpthread_db.c
98
new = reallocarray(ta->map, ta->map_len,
lib/libunbound/config.h
1447
void* reallocarray(void *ptr, size_t nmemb, size_t size);
lib/libunbound/config.h
1527
void *reallocarray(void *ptr, size_t nmemb, size_t size);
lib/libutil/gr_util.c
207
if ((tmp = reallocarray(buf, 2, size)) == NULL) {
lib/libutil/login_cap.c
86
else if ((p = reallocarray(internal_array, sz, sizeof(char*))) != NULL) {
lib/libutil/pw_util.c
469
if ((tmp = reallocarray(buf, 2, size)) == NULL) {
sbin/fsck_ffs/inode.c
1176
inpsort = (struct inoinfo **)reallocarray((char *)inpsort,
sbin/ipf/common/ipf_y.y
2191
fb = reallocarray(fb, i / 4 + 1, sizeof(*fb));
sbin/ipf/ipfstat/ipfstat.c
1391
tstable = reallocarray(tstable, maxtsentries,
sbin/ipf/ipftest/ip_fil.c
265
ifneta = (struct ifnet **)reallocarray(ifneta, nifs + 1,
sbin/ipf/libipf/parsefields.c
33
fields = reallocarray(fields, num + 1, sizeof(*fields));
sbin/ipf/libipf/parseipfexpr.c
122
oplist = reallocarray(oplist, asize + 2, sizeof(int));
sbin/pfctl/parse.y
7365
void *p = reallocarray(file->ungetbuf, file->ungetsize, 2);
sbin/pfctl/pfctl_radix.c
362
p = reallocarray(b->pfrb_caddr, minsize, bs);
stand/userboot/test/test.c
589
disk_fd = reallocarray(disk_fd, disk_index + 1,
tools/build/cross-build/closefrom.c
164
ptr = reallocarray(fd_array, fd_array_size, sizeof(int));
tools/build/cross-build/fgetwln_fallback.c
73
wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t));
tools/build/stdlib.h
35
void *reallocarray(void *, size_t, size_t);
usr.bin/diff/xmalloc.c
54
new_ptr = reallocarray(ptr, nmemb, size);
usr.bin/diff3/diff3.c
910
p = reallocarray(d13, newsz, sizeof(*p));
usr.bin/diff3/diff3.c
915
p = reallocarray(d23, newsz, sizeof(*p));
usr.bin/diff3/diff3.c
920
p = reallocarray(de, newsz, sizeof(*p));
usr.bin/diff3/diff3.c
925
q = reallocarray(overlap, newsz, 1);
usr.bin/diff3/diff3.c
930
s = reallocarray(de_delta, newsz, sizeof(*s));
usr.bin/m4/misc.c
354
void *p = reallocarray(old, s1, s2);
usr.bin/patch/inp.c
120
p = reallocarray(i_ptr, new_size + 2, sizeof(char *));
usr.sbin/bhyve/bhyvegc.c
85
gc_image->data = reallocarray(gc_image->data, width * height,
usr.sbin/cron/lib/env.c
115
p = (char **) reallocarray(envp, count+1, sizeof(char *));
usr.sbin/cron/lib/env.c
58
p = (char **) reallocarray(NULL, count+1, sizeof(char *)); /* 1 for the NULL */
usr.sbin/inetd/inetd.c
2386
conn->co_proc = reallocarray(NULL, sep->se_maxperip,
usr.sbin/inetd/inetd.c
2478
conn->co_proc = reallocarray(conn->co_proc, maxpip,
usr.sbin/lpr/common_source/common.c
164
queue = (struct jobqueue **)reallocarray((char *)queue,
usr.sbin/pmcstat/pmcpl_calltree.c
198
samples->sb = reallocarray(samples->sb, npmcs, sizeof(unsigned));
usr.sbin/pmcstat/pmcpl_calltree.c
237
*items = reallocarray(*items, nmaxsize, sizeof(struct pmcpl_ct_arc));
usr.sbin/pmcstat/pmcpl_calltree.c
258
*items = reallocarray(*items, nmaxsize, sizeof(struct pmcpl_ct_instr));