/freebsd/contrib/bearssl/test/ |
H A D | test_x509.c | 49 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 D | test-ohash.c | 6 static void *xmalloc(size_t, void *); 12 xmalloc(size_t sz, void *arg) { in xmalloc() function 33 i.alloc = xmalloc; in main()
|
/freebsd/contrib/diff/lib/ |
H A D | xmalloc.c | 88 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 D | prepargs.c | 81 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 D | xalloc.h | 51 void *xmalloc (size_t s); 81 # define NEW(type, var) type *var = xmalloc (sizeof (type))
|
/freebsd/contrib/bearssl/tools/ |
H A D | xmem.c | 29 xmalloc(size_t len) in xmalloc() function 64 buf = xmalloc(len); in xblobdup() 82 pk2 = xmalloc(sizeof *pk2); in xpkeydup()
|
H A D | skey.c | 107 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 D | gencat.c | 112 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 D | rpc_scan.c | 323 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 D | rpc_util.h | 66 #define XALLOC(object) (object *) xmalloc(sizeof(object)) 153 void *xmalloc(size_t size);
|
/freebsd/libexec/rtld-elf/ |
H A D | libmap.c | 132 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 D | xmalloc.c | 52 xmalloc(size_t size) in xmalloc() function 72 copy = xmalloc(len); in xstrdup()
|
/freebsd/usr.bin/vtfontcvt/ |
H A D | vtfontcvt.c | 186 xmalloc(size_t size) in xmalloc() function 203 mp = xmalloc(sizeof *mp); in add_mapping() 273 gl = xmalloc(sizeof *gl); in add_glyph() 274 gl->g_data = xmalloc(wbytes * height); in add_glyph() 465 bytes = xmalloc(wbytes * height); in parse_bdf() 466 bytes_r = xmalloc(wbytes * height); in parse_bdf() 467 line = xmalloc(wbytes * 2); in parse_bdf() 567 bytes = xmalloc(wbytes * height); in parse_hex() 568 bytes_r = xmalloc(wbytes * height); in parse_hex() 569 line = xmalloc(wbytes * 2); in parse_hex() [all …]
|
/freebsd/usr.sbin/dumpcis/ |
H A D | readcis.c | 95 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 D | tc.str.c | 175 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 D | sh.misc.c | 66 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 D | memory.c | 62 xmalloc(size_t size) in xmalloc() function 77 mem = xmalloc(size); in xcalloc()
|
/freebsd/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 130 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 D | stack.c | 55 sp = xmalloc(sizeof (stk_t)); in stack_new() 58 sp->st_data = xmalloc(sizeof (void *) * sp->st_nument); in stack_new()
|
H A D | ctf.c | 644 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 D | iidesc.c | 127 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 D | work.c | 79 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 D | xmalloc.c | 34 xmalloc(size_t size) in xmalloc() function 93 cp = xmalloc(len); in xstrdup()
|
/freebsd/contrib/diff/src/ |
H A D | util.c | 109 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 D | io.c | 104 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()
|