Home
last modified time | relevance | path

Searched refs:xmalloc (Results 1 – 25 of 167) sorted by relevance

1234567

/freebsd/contrib/bearssl/test/
H A Dtest_x509.c49 xmalloc(size_t len) in xmalloc() function
83 s = xmalloc(n); in xstrdup()
98 sb = xmalloc(sizeof *sb); in SB_new()
100 sb->buf = xmalloc(sb->len); in SB_new()
118 nbuf = xmalloc(nlen); in SB_expand()
211 ht = xmalloc(sizeof *ht); in HT_new()
214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new()
272 new_buckets = xmalloc(n2 * sizeof *new_buckets); in HT_expand()
326 e = xmalloc(sizeof *e); in HT_put()
409 buf = xmalloc(blen); in read_all()
[all …]
/freebsd/contrib/mandoc/
H A Dtest-ohash.c6 static void *xmalloc(size_t, void *);
12 xmalloc(size_t sz, void *arg) { in xmalloc() function
33 i.alloc = xmalloc; in main()
/freebsd/contrib/bearssl/tools/
H A Dxmem.c29 xmalloc(size_t len) in xmalloc() function
64 buf = xmalloc(len); in xblobdup()
82 pk2 = xmalloc(sizeof *pk2); in xpkeydup()
H A Dskey.c107 pem = xmalloc(pemlen + 1); in write_to_pem_file()
167 n = xmalloc(nlen); in print_rsa()
179 d = xmalloc(dlen); in print_rsa()
197 buf = xmalloc(len); in print_rsa()
217 buf = xmalloc(len); in print_rsa()
283 buf = xmalloc(len); in print_ec()
305 buf = xmalloc(len); in print_ec()
395 kbuf_priv = xmalloc(BR_RSA_KBUF_PRIV_SIZE(size)); in keygen_rsa()
/freebsd/usr.bin/gencat/
H A Dgencat.c112 static void *xmalloc(size_t);
206 xmalloc(size_t len) function
242 curline = xmalloc(curlen);
317 msg = xmalloc(clen);
521 msgcat = xmalloc(msgcat_size);
600 p = xmalloc(sizeof(struct _setT));
640 p = xmalloc(sizeof(struct _msgT));
/freebsd/usr.bin/rpcgen/
H A Drpc_scan.c323 tmp = xmalloc(size); in findstrconst()
348 tmp = xmalloc(size); in findchrconst()
373 tmp = xmalloc(size); in findconst()
427 tmp = xmalloc(len + 1); in findkind()
473 p = file = xmalloc(strlen(line) + 1); in docppline()
H A Drpc_util.h66 #define XALLOC(object) (object *) xmalloc(sizeof(object))
153 void *xmalloc(size_t size);
/freebsd/libexec/rtld-elf/
H A Dlibmap.c132 lm_map = xmalloc(st.st_size); in lmc_parse_file()
147 p = xmalloc(sizeof(struct lmc)); in lmc_parse_file()
173 p = xmalloc(sizeof(struct lmc)); in lmc_parse_dir()
372 lm = xmalloc(sizeof(struct lm)); in lm_add()
417 s = xmalloc(n + 1); in lm_findn()
469 lmp = xmalloc(sizeof(struct lmp)); in lmp_init()
H A Dxmalloc.c52 xmalloc(size_t size) in xmalloc() function
72 copy = xmalloc(len); in xstrdup()
/freebsd/usr.bin/vtfontcvt/
H A Dvtfontcvt.c188 xmalloc(size_t size) in xmalloc() function
205 mp = xmalloc(sizeof *mp); in add_mapping()
275 gl = xmalloc(sizeof *gl); in add_glyph()
276 gl->g_data = xmalloc(wbytes * height); in add_glyph()
467 bytes = xmalloc(wbytes * height); in parse_bdf()
468 bytes_r = xmalloc(wbytes * height); in parse_bdf()
469 line = xmalloc(wbytes * 2); in parse_bdf()
569 bytes = xmalloc(wbytes * height); in parse_hex()
570 bytes_r = xmalloc(wbytes * height); in parse_hex()
571 line = xmalloc(wbytes * 2); in parse_hex()
[all …]
/freebsd/crypto/krb5/src/clients/ksu/
H A Dxmalloc.c30 void *xmalloc (size_t sz) in xmalloc() function
63 char *dst = xmalloc (len); in xstrdup()
H A DMakefile.in13 $(srcdir)/xmalloc.c \
21 xmalloc.o @SETENVOBJ@
/freebsd/usr.sbin/dumpcis/
H A Dreadcis.c95 xmalloc(int sz) in xmalloc() function
260 tl = xmalloc(sizeof(*tl)); in read_one_tuplelist()
275 tp = xmalloc(sizeof(*tp)); in read_one_tuplelist()
313 tp->data = xmalloc(length); in read_one_tuplelist()
/freebsd/contrib/tcsh/
H A Dtc.str.c175 sdst = dst = xmalloc((n + 1) * sizeof(Char *));
194 sdst = dst = xmalloc((n + 1) * sizeof(char *));
233 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char));
443 n = xmalloc((len + 1) * sizeof (*n));
458 n = xmalloc(size);
477 res = xmalloc(((p - cp) + (q - dp) - 1) * sizeof(Char));
543 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char));
H A Dsh.misc.c66 r = xmalloc(len + 1); in strnsave()
82 r = xmalloc(size); in strsave()
221 ep = xmalloc((cl + dl + 1) * sizeof(char)); in strspl()
555 buf = xmalloc(size); in areadlink()
/freebsd/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c62 xmalloc(size_t size) in xmalloc() function
77 mem = xmalloc(size); in xcalloc()
/freebsd/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c130 xmalloc(size_t size, const char *fn, const char *use) in xmalloc() function
249 if ((shdrp = xmalloc(shdrsize, fn, "section header table")) == NULL) in ELFNAMEEND()
297 layoutp = xmalloc((shnum + 1) * sizeof(struct shlayout), in ELFNAMEEND()
338 if ((shstrtabp = xmalloc(size, fn, "section string table")) == NULL) in ELFNAMEEND()
366 layoutp[i].bufp = xmalloc(size, fn, in ELFNAMEEND()
386 nstrtabp = xmalloc(nstrtab_size, fn, "new string table"); in ELFNAMEEND()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dstack.c55 sp = xmalloc(sizeof (stk_t)); in stack_new()
58 sp->st_data = xmalloc(sizeof (void *) * sp->st_nument); in stack_new()
H A Dctf.c644 outbuf = xmalloc(sizeof (ctf_header_t) + (buf->ctb_ptr - buf->ctb_base) in write_buffer()
667 resbuf.rb_base = xmalloc(resbuf.rb_size); in write_compressed_buffer()
1032 xmalloc(sizeof (tdesc_t *) * ii->ii_nargs); in resurrect_functions()
1136 ip = xmalloc(sizeof (intr_t)); in resurrect_types()
1195 tdp->t_ardef = xmalloc(sizeof (ardef_t)); in resurrect_types()
1215 *mpp = xmalloc(sizeof (mlist_t)); in resurrect_types()
1229 *mpp = xmalloc(sizeof (mlist_t)); in resurrect_types()
1247 *mpp = xmalloc(sizeof (mlist_t)); in resurrect_types()
1261 *mpp = xmalloc(sizeof (mlist_t)); in resurrect_types()
1287 *epp = xmalloc(sizeof (elist_t)); in resurrect_types()
[all …]
H A Diidesc.c127 tgt = xmalloc(sizeof (iidesc_t)); in iidesc_dup()
134 tgt->ii_args = xmalloc(sizeof (tdesc_t *) * tgt->ii_nargs); in iidesc_dup()
/freebsd/contrib/ldns/drill/
H A Dwork.c79 uint8_t *hexbuf = xmalloc(LDNS_MAX_PACKETLEN); in packetbuffromfile()
177 wire = xmalloc(LDNS_MAX_PACKETLEN); in read_hex_buffer()
199 wire = xmalloc(LDNS_MAX_PACKETLEN); in read_hex_pkt()
/freebsd/crypto/openssh/
H A Dxmalloc.c34 xmalloc(size_t size) in xmalloc() function
93 cp = xmalloc(len); in xstrdup()
/freebsd/contrib/xz/src/xz/
H A Doptions.c174 lzma_options_delta *options = xmalloc(sizeof(lzma_options_delta)); in options_delta()
217 lzma_options_bcj *options = xmalloc(sizeof(lzma_options_bcj)); in options_bcj()
351 lzma_options_lzma *options = xmalloc(sizeof(lzma_options_lzma)); in options_lzma()
/freebsd/tests/sys/netinet/
H A Dip6_mrouted.c40 xmalloc(size_t size) in xmalloc() function
147 mif = xmalloc(sizeof(*mif)); in main()
/freebsd/crypto/krb5/src/lib/gssapi/krb5/
H A Dutil_cksum.c51 if ((cksum->contents = (krb5_octet *) xmalloc(cksum->length)) == NULL) { in kg_checksum_channel_bindings()
115 kiov[i].data.data = xmalloc(checksum->length); in kg_make_checksum_iov_v1()
200 kiov = (krb5_crypto_iov *)xmalloc(kiov_count * sizeof(krb5_crypto_iov)); in checksum_iov_v3()

1234567