Symbol: emalloc
bin/ps/keyword.c
309
vent = emalloc(sizeof(*vent));
bin/ps/keyword.c
384
struct var *newvar = emalloc(sizeof(*newvar));
bin/ps/print.c
1174
char *buf = emalloc(maxlen);
bin/ps/ps.c
781
newopts = ns = emalloc(len + 3);
bin/ps/ps.c
920
ki[src].prefix = emalloc(lvl * 2 + 1);
include/util.h
177
void *emalloc(size_t);
libexec/makewhatis/makewhatis.c
514
mp = emalloc(sizeof(manpage) + strlen(name));
libexec/makewhatis/makewhatis.c
549
wi = emalloc(sizeof(whatis) + strlen(prefix));
libexec/makewhatis/makewhatis.c
618
result = emalloc(llen - dlen + slen + 1);
libexec/makewhatis/makewhatis.c
646
section = emalloc(length + 5);
sbin/ccdconfig/ccdconfig.c
305
disks = emalloc(argc * sizeof(char *));
sbin/ccdconfig/ccdconfig.c
484
buf = emalloc(MAXPATHLEN);
sbin/ccdconfig/ccdconfig.c
728
names = emalloc(len);
sbin/ccdconfig/ccdconfig.c
781
units = emalloc(nunits);
sbin/cgdconfig/argon2_utils.c
95
key = emalloc(keylen);
sbin/cgdconfig/argon2_utils.c
96
salt = emalloc(saltlen);
sbin/cgdconfig/cgdconfig.c
1217
vdev_phys_t *vdev_phys = emalloc(sizeof(*vdev_phys));
sbin/cgdconfig/cgdconfig.c
1736
b64 = emalloc(nb64 + 2);
sbin/cgdconfig/cgdconfig.c
418
tmp = emalloc(BITS2BYTES(subkeylen));
sbin/cgdconfig/params.c
326
kg = emalloc(sizeof(*kg));
sbin/cgdconfig/params.c
94
p = emalloc(sizeof(*p));
sbin/cgdconfig/pkcs5_pbkdf2.c
126
*r = emalloc(l * PRF_BLOCKLEN);
sbin/cgdconfig/pkcs5_pbkdf2.c
82
data = emalloc(Slen + 4);
sbin/cgdconfig/utils.c
146
out = emalloc(sizeof(*out));
sbin/cgdconfig/utils.c
157
out = emalloc(sizeof(*out));
sbin/cgdconfig/utils.c
159
out->text = emalloc(out->length + 1);
sbin/cgdconfig/utils.c
195
sum = emalloc(sizeof(*sum));
sbin/cgdconfig/utils.c
197
sum->text = emalloc(sum->length + 1);
sbin/cgdconfig/utils.c
234
ret = emalloc(sizeof(*ret));
sbin/cgdconfig/utils.c
257
b = emalloc(sizeof(*b));
sbin/cgdconfig/utils.c
259
b->text = emalloc(BITS2BYTES(b->length));
sbin/cgdconfig/utils.c
324
b = emalloc(sizeof(*b));
sbin/cgdconfig/utils.c
359
tmp = emalloc(len);
sbin/cgdconfig/utils.c
408
tmp = emalloc(len);
sbin/cgdconfig/utils.c
409
out = emalloc(len * 2);
sbin/cgdconfig/utils.c
441
bits = emalloc(sizeof(*bits));
sbin/cgdconfig/utils.c
443
bits->text = emalloc(BITS2BYTES(bits->length));
sbin/cgdconfig/utils.c
90
ret = emalloc((nwords+1) * sizeof(char *));
sbin/efi/devpath.c
112
bp = *dmsg = emalloc(dlen + 1);
sbin/efi/devpath.c
90
bp = path = emalloc(plen + 1);
sbin/efi/devpath3.c
1111
name = emalloc(len + 1);
sbin/efi/devpath3.c
1296
buf = emalloc(len + 1);
sbin/efi/efiio.c
85
ev->data = emalloc(ev->datasize);
sbin/efi/getvars.c
158
var_array = emalloc(var_cnt * sizeof(*var_array));
sbin/efi/setvar.c
104
data = emalloc(sizeof(*data));
sbin/efi/setvar.c
145
rmlist = emalloc(sizeof(*rmlist));
sbin/efi/setvar.c
150
data = emalloc(ev.datasize);
sbin/efi/setvar.c
247
data = emalloc(ev.datasize);
sbin/efi/setvar.c
63
data = emalloc(n * sizeof(*data));
sbin/efi/showvar.c
314
bp = emalloc(sz + 1);
sbin/efi/utils.c
428
buf = emalloc(bufsz);
sbin/efi/utils.h
53
dst = emalloc(sz);
sbin/efi/utils.h
63
bp = emalloc(len * 2 + 1);
sbin/fsck/fsck.c
299
argv = emalloc(sizeof(char *) * maxargc);
sbin/fsck/fsck.c
468
e = emalloc(sizeof(struct entry));
sbin/fsck/preen.c
307
d = emalloc(sizeof(*d));
sbin/fsck/preen.c
347
p = emalloc(sizeof(*p));
sbin/fsck_lfs/bufcache.c
119
np = emalloc(newhashmax * sizeof(*bufhash));
sbin/fsck_lfs/bufcache.c
96
bufhash = emalloc(hashmax * sizeof(*bufhash));
sbin/fsck_lfs/inode.c
372
inp = emalloc(sizeof(*inp) + (blks - 1) * sizeof(inp->i_blks[0]));
sbin/fsck_lfs/lfs.c
814
datap = emalloc(nblocks * sizeof(*datap));
sbin/fsck_lfs/pass1.c
109
dins[i] = emalloc(sizeof(**dins));
sbin/fsck_lfs/pass1.c
288
zlnp = emalloc(sizeof *zlnp);
sbin/fsck_lfs/pass1.c
312
zlnp = emalloc(sizeof *zlnp);
sbin/fsck_lfs/pass1.c
398
new = emalloc(sizeof(struct dups));
sbin/fsck_lfs/pass6.c
340
buf = emalloc(lfs_sb_getbsize(fs));
sbin/fsck_lfs/pass6.c
344
obuf = emalloc(lfs_sb_getbsize(fs));
sbin/fsck_lfs/pass6.c
589
ibbuf = emalloc(lfs_sb_getibsize(fs));
sbin/fsck_lfs/segwrite.c
830
datap = dp = emalloc(nblocks * el_size);
sbin/fsck_lfs/segwrite.c
944
sp = fs->lfs_sp = emalloc(sizeof(*sp));
sbin/fsck_lfs/segwrite.c
946
sp->bpp = emalloc(allocsize);
sbin/fsck_lfs/vnode.c
107
vgr = emalloc(sizeof(*vgr));
sbin/mount_portal/puffs_portal.c
122
cmp = emalloc(CMSG_SPACE(sizeof(int)));
sbin/mount_portal/puffs_portal.c
286
cmp = emalloc(CMSG_LEN(sizeof(int)));
sbin/mount_portal/puffs_portal.c
491
portn = emalloc(sizeof(struct portal_node));
sbin/mount_qemufwcfg/virtdir.c
182
dirp = emalloc(sizeof(*dirp));
sbin/rcorder/hash.c
157
t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i);
sbin/rcorder/hash.c
296
e = (Hash_Entry *) emalloc(sizeof(*e) + keylen);
sbin/rcorder/hash.c
456
t->bucketPtr = hp = (struct Hash_Entry **) emalloc(sizeof(*hp) * i);
sbin/rcorder/rcorder.c
226
ent = emalloc(sizeof *ent + strlen(s));
sbin/rcorder/rcorder.c
248
temp = emalloc(sizeof(*temp));
sbin/rcorder/rcorder.c
281
rnode = emalloc(sizeof(*rnode));
sbin/rcorder/rcorder.c
304
head = emalloc(sizeof(*head));
sbin/rcorder/rcorder.c
351
pnode = emalloc(sizeof(*pnode));
sbin/rcorder/rcorder.c
361
f_pnode = emalloc(sizeof(*f_pnode));
sbin/rcorder/rcorder.c
491
head = emalloc(sizeof(*head));
sbin/rcorder/rcorder.c
498
pnode = emalloc(sizeof(*pnode));
sbin/rcorder/rcorder.c
508
f_pnode = emalloc(sizeof(*f_pnode));
sbin/rcorder/rcorder.c
546
rnode = emalloc(sizeof(*rnode));
share/examples/puffs/pgfs/mount.c
61
n = emalloc(len + 1);
share/examples/puffs/pgfs/pgfs_db.c
232
c = emalloc(sizeof(*c));
share/examples/puffs/pgfs/pgfs_db.c
241
c->paramtypes = emalloc(c->nparams * sizeof(*c->paramtypes));
share/examples/puffs/pgfs/pgfs_db.c
359
paramvalues = emalloc(c->nparams * sizeof(*paramvalues));
share/examples/puffs/pgfs/pgfs_db.c
413
emalloc(c->nparams * sizeof(*paramformats));
share/examples/puffs/pgfs/pgfs_db.c
422
paramvalues[i] = emalloc(sz);
share/examples/puffs/pgfs/pgfs_db.c
882
xc = emalloc(sizeof(*xc));
share/examples/puffs/pgfs/pgfs_subs.c
152
lock = emalloc(sizeof(*lock));
tests/fs/puffs/h_dtfs/dtfs_subr.c
110
dfd = emalloc(sizeof(struct dtfs_dirent));
tests/fs/puffs/h_dtfs/dtfs_subr.c
128
dff = emalloc(sizeof(struct dtfs_file));
tests/fs/puffs/h_dtfs/dtfs_subr.c
140
dff = emalloc(sizeof(struct dtfs_file));
tests/fs/puffs/h_dtfs/dtfs_subr.c
263
df->df_blocks[i] = emalloc(DTFS_BLOCKSIZE);
tests/fs/puffs/h_dtfs/dtfs_vnops.c
378
dfd = emalloc(sizeof(struct dtfs_dirent));
tests/lib/libutil/t_efun.c
101
x = emalloc(-1);
tests/lib/libutil/t_efun.c
131
ATF_TP_ADD_TC(tp, emalloc);
tests/lib/libutil/t_efun.c
90
ATF_TC(emalloc);
tests/lib/libutil/t_efun.c
91
ATF_TC_HEAD(emalloc, tc)
tests/lib/libutil/t_efun.c
96
ATF_TC_BODY(emalloc, tc)
tools/compat/compat_defs.h
376
void *emalloc(size_t);
usr.bin/config/hash.c
102
ht->ht_tab = emalloc(sz * sizeof (ht->ht_tab[0]));
usr.bin/config/hash.c
122
h = emalloc(n * sizeof *h);
usr.bin/config/main.c
409
p = emalloc(strlen(last_component) + 17);
usr.bin/config/main.c
414
p = emalloc(strlen(last_component) + 13);
usr.bin/config/mkmakefile.c
393
attrbuf = emalloc(nattrs * sizeof(*attrbuf));
usr.bin/config/sem.c
130
struct vtype *vt = emalloc(sizeof(*vt));
usr.bin/config/sem.c
2255
lp = emalloc((size_t)(attr->a_loclen + 1) * sizeof(const char *));
usr.bin/config/util.c
169
cp = emalloc(len);
usr.bin/config/util.c
255
dl = emalloc(sizeof(*dl));
usr.bin/config/util.c
309
ll = emalloc(sizeof(*ll));
usr.bin/config/util.c
339
al = emalloc(sizeof(*al));
usr.bin/config/util.c
391
cx = emalloc(sizeof(*cx));
usr.bin/config/util.c
88
cp = emalloc(strlen(prevpf->pf_prefix) + 1 +
usr.bin/crunch/crunchgen/crunchgen.c
1162
p2 = emalloc(sizeof(*p2));
usr.bin/crunch/crunchgen/crunchgen.c
402
p2 = emalloc(sizeof(*p2));
usr.bin/crunch/crunchgen/crunchgen.c
803
var_t *v = emalloc(sizeof(*v));
usr.bin/crunch/crunchgen/crunchgen.c
853
linevars = emalloc(len + 1);
usr.bin/find/function.c
767
new->e_argv = emalloc((cnt + new->ep_maxargs)
usr.bin/find/function.c
795
new->ep_p = new->ep_bbp = emalloc(bufsize + 1);
usr.bin/find/function.c
800
new->e_argv = emalloc(cnt * sizeof(*new->e_argv));
usr.bin/find/function.c
801
new->e_orig = emalloc(cnt * sizeof(*new->e_orig));
usr.bin/find/function.c
802
new->e_len = emalloc(cnt * sizeof(*new->e_len));
usr.bin/find/function.c
809
emalloc(MAXPATHLEN);
usr.bin/find/function.c
898
new->e_argv = emalloc(cnt * sizeof(*new->e_argv));
usr.bin/find/function.c
899
new->e_orig = emalloc(cnt * sizeof(*new->e_orig));
usr.bin/find/function.c
900
new->e_len = emalloc(cnt * sizeof(*new->e_len));
usr.bin/find/function.c
906
new->e_argv[cnt] = emalloc(MAXPATHLEN);
usr.bin/hexdump/parse.c
155
tfu->fmt = emalloc(p - savep + 1);
usr.bin/hexdump/parse.c
423
pr->fmt = emalloc(strlen(fmtp) + strlen(cs) + 1);
usr.bin/mail/cmd3.c
966
csp = emalloc(sizeof(*csp));
usr.bin/mail/mime_codecs.c
351
buf = emalloc(buflen);
usr.bin/mail/popen.c
116
fpp = emalloc(sizeof(*fpp));
usr.bin/mail/popen.c
286
*cpp = emalloc(sizeof(**cpp));
usr.bin/mail/support.c
467
nbuf = emalloc(strlen(name) + 1);
usr.bin/mail/vars.c
77
new = emalloc(len);
usr.bin/make/make_malloc.h
36
#define bmake_malloc(n) emalloc(n)
usr.bin/resize/resize.h
89
#define TypeMallocN(t, l) emalloc(sizeof(t) * (l))
usr.bin/sed/compile.c
1030
lh = emalloc(sizeof *lh);
usr.bin/sed/compile.c
150
appends = emalloc(sizeof(struct s_appends) * appendnum);
usr.bin/sed/compile.c
151
match = emalloc((maxnsub + 1) * sizeof(regmatch_t));
usr.bin/sed/compile.c
187
*link = cmd = emalloc(sizeof(struct s_command));
usr.bin/sed/compile.c
197
cmd->a1 = emalloc(sizeof(struct s_addr));
usr.bin/sed/compile.c
204
cmd->a2 = emalloc(sizeof(struct s_addr));
usr.bin/sed/compile.c
462
rep = emalloc(sizeof(regex_t));
usr.bin/sed/compile.c
624
text = emalloc(asize);
usr.bin/sed/compile.c
796
*py = y = emalloc(sizeof(*y));
usr.bin/sed/compile.c
879
text = emalloc(asize);
usr.bin/sed/compile.c
975
p = emalloc(len);
usr.bin/sed/main.c
163
temp_arg = emalloc(strlen(optarg) + 2);
usr.bin/sed/main.c
498
cu = emalloc(sizeof(struct s_compunit));
usr.bin/sed/main.c
514
fp = emalloc(sizeof(struct s_flist));
usr.bin/sed/misc.c
103
oe = emalloc(s);
usr.bin/sed/process.c
694
buf = emalloc(slen + 1);
usr.bin/shuffle/shuffle.c
110
char **lines = emalloc(sizeof(char *) * maxlines);
usr.bin/shuffle/shuffle.c
121
lines[nlines] = emalloc(size + 1);
usr.bin/shuffle/shuffle.c
65
shuffle = emalloc(t * sizeof(size_t));
usr.bin/sort/radix_sort.c
88
s = emalloc(stack_size * sizeof *s);
usr.bin/sort/sort.c
145
fldtab = emalloc(fldtab_sz * sizeof(*fldtab));
usr.bin/su/su.c
361
environ = emalloc(sizeof(char *));
usr.bin/su/su_pam.c
467
environ = emalloc(sizeof(char *));
usr.bin/tic/tic.c
110
buf = emalloc(len);
usr.bin/tsort/tsort.c
262
n = emalloc(sizeof(NODE) + key.size);
usr.bin/usbhidaction/usbhidaction.c
282
cmd = emalloc(sizeof *cmd);
usr.sbin/crash/crash.c
157
return emalloc(sz);
usr.sbin/dumplfs/dumplfs.c
245
sbuf = emalloc(LFS_SBPAD);
usr.sbin/dumplfs/dumplfs.c
368
dpage = emalloc(psize);
usr.sbin/dumplfs/dumplfs.c
398
ipage = emalloc(psize);
usr.sbin/dumplfs/dumplfs.c
429
indir = emalloc(psize);
usr.sbin/dumplfs/dumplfs.c
462
dindir = emalloc(psize);
usr.sbin/dumplfs/dumplfs.c
650
diblock = emalloc(lfs_sb_getbsize(lfsp));
usr.sbin/dumplfs/dumplfs.c
713
buf = emalloc(lfs_sb_getbsize(lfsp));
usr.sbin/dumplfs/dumplfs.c
766
sumblock = emalloc(lfs_sb_getsumsize(lfsp));
usr.sbin/dumplfs/dumplfs.c
944
p = emalloc(sizeof(*p));
usr.sbin/dumplfs/dumplfs.c
977
buf = emalloc(lfs_sb_getfsize(lfsp));
usr.sbin/gspa/gspa/gsp_ass.h
179
#define new(x) ((x) = emalloc(sizeof(*(x))))
usr.sbin/gspa/gspa/gsp_out.c
186
p = emalloc(sizeof(struct error) + l);
usr.sbin/gspa/gspa/gsp_sym.c
65
ptr = emalloc(sizeof(struct symbol) + strlen(id));
usr.sbin/makefs/cd9660.c
1081
tmp = emalloc(ISO_FILENAME_MAXLENGTH_WITH_PADDING);
usr.sbin/makefs/cd9660.c
1531
n = emalloc(sizeof(struct s)); \
usr.sbin/makefs/cd9660.c
1984
tfsnode = emalloc(sizeof(*tfsnode));
usr.sbin/makefs/cd9660.c
1986
temp->isoDirRecord = emalloc(sizeof(*temp->isoDirRecord));
usr.sbin/makefs/cd9660.c
451
emalloc(strlen(buf) + 1);
usr.sbin/makefs/cd9660.c
532
real_root->isoDirRecord = emalloc(sizeof(*real_root->isoDirRecord));
usr.sbin/makefs/cd9660.c
778
temp = emalloc(sizeof(*temp));
usr.sbin/makefs/cd9660.c
791
t = emalloc(sizeof(*t));
usr.sbin/makefs/cd9660.c
803
t = emalloc(sizeof(*t));
usr.sbin/makefs/cd9660.c
825
node->isoExtAttributes = emalloc(sizeof(*node->isoExtAttributes));
usr.sbin/makefs/cd9660.c
875
newnode->isoDirRecord = emalloc(sizeof(*newnode->isoDirRecord));
usr.sbin/makefs/cd9660/cd9660_write.c
274
buf = emalloc(diskStructure->sectorSize);
usr.sbin/makefs/cd9660/cd9660_write.c
431
buf = emalloc(buf_size);
usr.sbin/makefs/cd9660/iso9660_rrip.c
449
temp = emalloc(sizeof(*temp));
usr.sbin/makefs/chfs/chfs_mkfs.c
130
buf = emalloc(opts->pagesize);
usr.sbin/makefs/chfs/chfs_mkfs.c
198
name = emalloc(strlen(node->name));
usr.sbin/makefs/chfs/chfs_mkfs.c
239
buf = emalloc(opts->pagesize);
usr.sbin/makefs/ffs.c
1127
buf = emalloc(fs->fs_bsize);
usr.sbin/makefs/ffs.c
928
fbuf = emalloc(ffs_opts->bsize);
usr.sbin/makefs/ffs/mkfs.c
588
wrbuf = emalloc(size);
usr.sbin/makemandb/apropos-utils.c
258
outbuf = emalloc(nout);
usr.sbin/makemandb/apropos-utils.c
287
stream.next_out = outbuf = emalloc(stream.avail_out);
usr.sbin/makemandb/apropos-utils.c
790
ddst = dst = emalloc(*slen + count * 5 + 1);
usr.sbin/makemandb/apropos-utils.c
889
d = dst = emalloc(len);
usr.sbin/makemandb/apropos-utils.c
930
psnippet = emalloc(psnippet_length + 1);
usr.sbin/makemandb/apropos.c
184
char **ptr = emalloc((strlen(str) + 2) * sizeof(*ptr));
usr.sbin/makemandb/apropos.c
336
output = buf = emalloc(strlen(query) + 1);
usr.sbin/makemandb/apropos.c
97
section = emalloc(2);
usr.sbin/makemandb/makemandb.c
1505
rec->name = emalloc(sz + 1);
usr.sbin/makemandb/makemandb.c
1931
rec->desc.data = emalloc(rec->desc.buflen);
usr.sbin/makemandb/makemandb.c
1935
rec->lib.data = emalloc(rec->lib.buflen);
usr.sbin/makemandb/makemandb.c
1939
rec->return_vals.data = emalloc(rec->return_vals.buflen);
usr.sbin/makemandb/makemandb.c
1943
rec->exit_status.data = emalloc(rec->exit_status.buflen);
usr.sbin/makemandb/makemandb.c
1947
rec->env.data = emalloc(rec->env.buflen);
usr.sbin/makemandb/makemandb.c
1951
rec->files.data = emalloc(rec->files.buflen);
usr.sbin/makemandb/makemandb.c
1955
rec->diagnostics.data = emalloc(rec->diagnostics.buflen);
usr.sbin/makemandb/makemandb.c
1959
rec->errors.data = emalloc(rec->errors.buflen);
usr.sbin/makemandb/makemandb.c
2011
result = emalloc(strlen(str) + 1);
usr.sbin/makemandb/makemandb.c
2065
sbuff->data = emalloc(sbuff->buflen);
usr.sbin/makemandb/makemandb.c
345
arg = emalloc(command_len);
usr.sbin/makemandb/makemandb.c
605
buf = emalloc(*len);
usr.sbin/makemandb/makemandb.c
745
row = emalloc(sizeof(struct sql_row));
usr.sbin/mountd/mountd.c
1136
ai = emalloc(sizeof(struct addrinfo));
usr.sbin/mountd/mountd.c
1323
ep = emalloc(sizeof(struct exportlist));
usr.sbin/mountd/mountd.c
1336
gp = emalloc(sizeof(struct grouplist));
usr.sbin/mountd/mountd.c
1388
dp = emalloc(sizeof(struct dirlist) + len);
usr.sbin/mountd/mountd.c
1947
hp = emalloc(sizeof(struct hostlist));
usr.sbin/mountd/mountd.c
1982
export->ex_addr = emalloc(addrlen);
usr.sbin/mountd/mountd.c
1987
export->ex_mask = emalloc(masklen);
usr.sbin/mountd/mountd.c
2161
mlp = emalloc(sizeof(*mlp));
usr.sbin/mountd/mountd.c
2250
mlp = emalloc(sizeof(*mlp));
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
468
ptr = emalloc(e->n_size);
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
55
#define NEW(a) (a *) emalloc(sizeof(a))
usr.sbin/netgroup_mkdb/str.c
64
buf->s_str = emalloc(len);
usr.sbin/netgroup_mkdb/str.c
85
sptr = ptr = emalloc(buf->s_len + len + (del ? 2 : 1));
usr.sbin/puffs/mount_9p/ninebuf.c
310
data = emalloc(len+1);
usr.sbin/puffs/mount_9p/subr.c
61
p9n = emalloc(sizeof(struct p9pnode));
usr.sbin/puffs/mount_psshfs/psbuf.c
358
str = emalloc(len+1);
usr.sbin/puffs/mount_psshfs/subr.c
430
psn = emalloc(sizeof(struct psshfs_node));
usr.sbin/puffs/mount_sysctlfs/sysctlfs.c
215
sfs = emalloc(sizeof(*sfs));
usr.sbin/services_mkdb/uniq.c
132
cline = emalloc(l + 1);
usr.sbin/tprof/ksyms.c
124
sym = emalloc(sizeof(*sym));
usr.sbin/tprof/tprof_analyze.c
223
a = emalloc(sizeof(*a));
usr.sbin/tprof/tprof_analyze.c
279
l = emalloc(naddrs * sizeof(*l));
usr.sbin/tprof/tprof_top.c
1000
tprof_buf = emalloc(tprof_bufsize);