Home
last modified time | relevance | path

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

1234567

/freebsd-13.1/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()
118 nbuf = xmalloc(nlen); in SB_expand()
409 buf = xmalloc(blen); in read_all()
418 buf2 = xmalloc(blen); in read_all()
427 buf3 = xmalloc(ptr); in read_all()
1022 buf = xmalloc(ptr); in parse_hex()
1836 oid = xmalloc(5); in test_name_extraction()
1843 oid = xmalloc(13); in test_name_extraction()
[all …]
/freebsd-13.1/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-13.1/libexec/rtld-elf/
H A Dxmalloc.c54 xmalloc(size_t size) in xmalloc() function
74 copy = xmalloc(len); in xstrdup()
89 mem = xmalloc(size + 3 * align + offset); in malloc_aligned()
H A Dlibmap.c133 lm_map = xmalloc(st.st_size); in lmc_parse_file()
148 p = xmalloc(sizeof(struct lmc)); in lmc_parse_file()
174 p = xmalloc(sizeof(struct lmc)); in lmc_parse_dir()
373 lm = xmalloc(sizeof(struct lm)); in lm_add()
418 s = xmalloc(n + 1); in lm_findn()
470 lmp = xmalloc(sizeof(struct lmp)); in lmp_init()
/freebsd-13.1/contrib/diff/lib/
H A Dxmalloc.c88 xmalloc (size_t n) in xmalloc() function
230 return memset (xmalloc (s), 0, s); in xzalloc()
254 return memcpy (xmalloc (s), p, s); in xclone()
H A Dprepargs.c81 char *buf = xmalloc (strlen (options) + 1); in prepend_default_options()
85 char **pp = (char **) xmalloc ((prepended + argc + 1) * sizeof *pp); in prepend_default_options()
H A Dxalloc.h51 void *xmalloc (size_t s);
81 # define NEW(type, var) type *var = xmalloc (sizeof (type))
/freebsd-13.1/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-13.1/usr.bin/gencat/
H A Dgencat.c114 static void *xmalloc(size_t);
208 xmalloc(size_t len) function
244 curline = xmalloc(curlen);
319 msg = xmalloc(clen);
523 msgcat = xmalloc(msgcat_size);
602 p = xmalloc(sizeof(struct _setT));
642 p = xmalloc(sizeof(struct _msgT));
/freebsd-13.1/usr.bin/rpcgen/
H A Drpc_scan.c333 tmp = xmalloc(size); in findstrconst()
358 tmp = xmalloc(size); in findchrconst()
383 tmp = xmalloc(size); in findconst()
437 tmp = xmalloc(len + 1); in findkind()
483 p = file = xmalloc(strlen(line) + 1); in docppline()
H A Drpc_util.h71 #define XALLOC(object) (object *) xmalloc(sizeof(object))
158 void *xmalloc(size_t size);
/freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c48 xmalloc(size_t size) in xmalloc() function
63 mem = xmalloc(size); in xcalloc()
/freebsd-13.1/usr.bin/vtfontcvt/
H A Dvtfontcvt.c189 xmalloc(size_t size) in xmalloc() function
206 mp = xmalloc(sizeof *mp); in add_mapping()
276 gl = xmalloc(sizeof *gl); in add_glyph()
277 gl->g_data = xmalloc(wbytes * height); in add_glyph()
468 bytes = xmalloc(wbytes * height); in parse_bdf()
469 bytes_r = xmalloc(wbytes * height); in parse_bdf()
470 line = xmalloc(wbytes * 2); in parse_bdf()
570 bytes = xmalloc(wbytes * height); in parse_hex()
571 bytes_r = xmalloc(wbytes * height); in parse_hex()
572 line = xmalloc(wbytes * 2); in parse_hex()
[all …]
/freebsd-13.1/usr.sbin/dumpcis/
H A Dreadcis.c97 xmalloc(int sz) in xmalloc() function
262 tl = xmalloc(sizeof(*tl)); in read_one_tuplelist()
277 tp = xmalloc(sizeof(*tp)); in read_one_tuplelist()
315 tp->data = xmalloc(length); in read_one_tuplelist()
/freebsd-13.1/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-13.1/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 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-13.1/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c132 xmalloc(size_t size, const char *fn, const char *use) in xmalloc() function
251 if ((shdrp = xmalloc(shdrsize, fn, "section header table")) == NULL) in ELFNAMEEND()
299 layoutp = xmalloc((shnum + 1) * sizeof(struct shlayout), in ELFNAMEEND()
340 if ((shstrtabp = xmalloc(size, fn, "section string table")) == NULL) in ELFNAMEEND()
368 layoutp[i].bufp = xmalloc(size, fn, in ELFNAMEEND()
388 nstrtabp = xmalloc(nstrtab_size, fn, "new string table"); in ELFNAMEEND()
/freebsd-13.1/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-13.1/crypto/openssh/
H A Dxmalloc.c34 xmalloc(size_t size) in xmalloc() function
93 cp = xmalloc(len); in xstrdup()
/freebsd-13.1/contrib/xz/src/xz/
H A Doptions.c173 lzma_options_delta *options = xmalloc(sizeof(lzma_options_delta)); in options_delta()
216 lzma_options_bcj *options = xmalloc(sizeof(lzma_options_bcj)); in options_bcj()
348 lzma_options_lzma *options = xmalloc(sizeof(lzma_options_lzma)); in options_lzma()
/freebsd-13.1/contrib/diff/src/
H A Dutil.c109 new = xmalloc (total_size); in message5()
180 name = xmalloc (strlen (current_name0) + strlen (current_name1) in begin_output()
228 char *command = xmalloc (sizeof pr_program - 1 + 7 in begin_output()
733 char *new = xmalloc (strlen (s1) + strlen (s2) + strlen (s3) + 1); in concat()
743 void *p = xmalloc (size); in zalloc()
H A Dio.c104 current->buffer = xmalloc (current->bufsize); in sip()
111 current->buffer = xmalloc (current->bufsize); in sip()
230 lin *cureqs = xmalloc (alloc_lines * sizeof *cureqs); in find_and_hash_each_line()
726 linbuf0 = xmalloc (alloc_lines0 * sizeof *linbuf0); in find_identical_ends()
760 linbuf1 = xmalloc (alloc_lines1 * sizeof *linbuf1); in find_identical_ends()
834 equivs = xmalloc (equivs_alloc * sizeof *equivs); in read_files()

1234567