| /freebsd-12.1/contrib/binutils/ld/ |
| H A D | pe-dll.c | 1692 oname = xmalloc (20); in make_head() 1718 d2 = xmalloc (20); in make_head() 1767 oname = xmalloc (20); in make_tail() 1799 d7 = xmalloc (len); in make_tail() 1919 oname = xmalloc (20); in make_one() 2006 d7 = xmalloc (4); in make_one() 2089 oname = xmalloc (20); in make_singleton_name_thunk() 2181 oname = xmalloc (20); in make_import_fixup_entry() 2201 d2 = xmalloc (20); in make_import_fixup_entry() 2233 oname = xmalloc (20); in make_runtime_pseudo_reloc() [all …]
|
| H A D | deffilep.y | 216 char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1); 240 char *name = xmalloc (strlen ($1) + 1 + strlen ($3) + 1); 271 def_file *rv = xmalloc (sizeof (def_file)); in def_file_empty() 486 def->exports = xmalloc (max_exports * sizeof (def_file_export)); in def_file_add_export() 520 s = xmalloc (sizeof (def_file_module) + strlen (name)); in def_stash_module() 546 def->imports = xmalloc (max_imports * sizeof (def_file_import)); in def_file_add_import() 666 def->name = xmalloc (strlen (image_name) + strlen (suffix) + 1); in def_image_name() 691 def->description = xmalloc (len); in def_description() 806 buf = xmalloc (strlen (module) + strlen (ext) + 2); in def_import() 825 struct directive *d = xmalloc (sizeof (struct directive)); in def_directive() [all …]
|
| /freebsd-12.1/contrib/binutils/opcodes/ |
| H A D | arc-ext.c | 182 char * insn_name = (char *) xmalloc(( (int)*p-5) * sizeof(char)); in arcExtMap_add() 184 (struct ExtInstruction *) xmalloc(sizeof(struct ExtInstruction)); in arcExtMap_add() 199 char * core_name = (char *) xmalloc(((int)*p-3) * sizeof(char)); in arcExtMap_add() 208 char * cc_name = (char *) xmalloc( ((int)*p-3) * sizeof(char)); in arcExtMap_add() 219 char * aux_name = (char *) xmalloc ( ((int)*p-6) * sizeof(char)); in arcExtMap_add() 253 arcExtMap = (char *) xmalloc (count);
|
| /freebsd-12.1/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() 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-12.1/contrib/binutils/binutils/ |
| H A D | wrstabs.c | 808 buf = (char *) xmalloc (len); in stab_enum_type() 909 buf = (char *) xmalloc (strlen (s) + 20); in stab_modify_type() 959 buf = (char *) xmalloc (strlen (s) + 3); in stab_function_type() 1000 buf = (char *) xmalloc (strlen (s) + 100); in stab_range_type() 1079 buf = (char *) xmalloc (strlen (s) + 30); in stab_set_type() 1210 buf = (char *) xmalloc (len); in stab_method_type() 1316 buf = (char *) xmalloc (40); in stab_start_struct_type() 1472 vtable = (char *) xmalloc (20); in stab_start_class_type() 1563 buf = (char *) xmalloc (strlen (s) + 25); in stab_class_baseclass() 1805 buf = (char *) xmalloc (len); in stab_end_class_type() [all …]
|
| H A D | dlltool.c | 1256 buf = xmalloc (size); in scan_drectve_symbols() 1282 c = xmalloc (p - name + 1); in scan_drectve_symbols() 1994 copy = xmalloc (numbytes); in gen_exp_file() 2206 copy = xmalloc (len + 1); in make_imp_label() 2213 copy = xmalloc (len + 1); in make_imp_label() 2437 si->data = xmalloc (8); in make_one_lib_file() 2466 si->data = xmalloc (4); in make_one_lib_file() 2509 si->data = xmalloc (4); in make_one_lib_file() 2605 si->data = xmalloc (8); in make_one_lib_file() 3023 ptr = (char *) xmalloc (size); in fill_ordinals() [all …]
|
| H A D | objcopy.c | 595 copy = xmalloc (len + 1); in parse_flags() 676 buffer = xmalloc (size + 2); in add_specific_symbols() 1151 buf = xmalloc (bufsize); in add_redefine_syms_file() 1279 cbuf = xmalloc (BUFSIZE); in copy_unknown_object() 1723 buf = xmalloc (max_gap); in copy_object() 2368 relpp = xmalloc (relsize); in copy_section() 2553 relpp = xmalloc (relsize); in mark_symbols_used_in_relocations() 2970 name = xmalloc (len + 1); in copy_main() 3037 name = xmalloc (len + 1); in copy_main() 3135 source = xmalloc (len + 1); in copy_main() [all …]
|
| H A D | coffgrok.c | 150 relpp = (arelent **) xmalloc (relsize); in do_sections_p1() 204 (struct coff_where *) (xmalloc (sizeof (struct coff_where))); in do_where() 311 (struct coff_type *) xmalloc (sizeof (struct coff_type)); in do_type() 430 xmalloc (sizeof (struct coff_type))); in do_type() 445 (struct coff_type *) xmalloc (sizeof (struct coff_type)); in do_type() 455 = (struct coff_type *) xmalloc (sizeof (struct coff_type)); in do_type() 476 (struct coff_visible *) (xmalloc (sizeof (struct coff_visible))); in do_visible() 601 (struct coff_ofile *) xmalloc (sizeof (struct coff_ofile)); in doit() 620 (struct coff_sfile *) xmalloc (sizeof (struct coff_sfile)); in doit() 733 syms = (asymbol **) xmalloc (storage); in coff_grok()
|
| /freebsd-12.1/contrib/gdb/gdb/mi/ |
| H A D | mi-parse.c | 36 char **argv = xmalloc ((argc + 1) * sizeof (char *)); in mi_parse_argv() 88 arg = xmalloc ((len + 1) * sizeof (char)); in mi_parse_argv() 118 arg = xmalloc ((len + 1) * sizeof (char)); in mi_parse_argv() 163 parse->token = xmalloc ((chp - cmd + 1) * sizeof (char *)); in mi_parse() 182 parse->command = xmalloc ((chp - tmp + 1) * sizeof (char *)); in mi_parse()
|
| /freebsd-12.1/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-12.1/gnu/usr.bin/grep/ |
| H A D | exclude.c | 34 void *xmalloc PARAMS ((size_t)); 49 struct exclude *ex = (struct exclude *) xmalloc (sizeof (struct exclude)); in new_exclude() 52 ex->exclude = (char const **) xmalloc (ex->exclude_alloc * sizeof (char *)); in new_exclude() 101 buf = xmalloc (buf_alloc); in add_exclude_file()
|
| H A D | xalloc.h | 59 void *xmalloc PARAMS ((size_t n)); 64 # define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items))) 81 (memcpy (xmalloc (sizeof (*Src) * (Num)), (Src), sizeof (*Src) * (Num)))
|
| /freebsd-12.1/libexec/rtld-elf/ |
| H A D | xmalloc.c | 52 xmalloc(size_t size) in xmalloc() function 72 copy = xmalloc(len); in xstrdup() 85 mem = xmalloc(size + sizeof(void *) + align - 1); in malloc_aligned()
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | environ.c | 36 e = (struct environ *) xmalloc (sizeof (struct environ)); in make_environ() 39 e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *)); in make_environ() 84 char *new = (char *) xmalloc (len + 1); in init_environ() 143 s = (char *) xmalloc (len + strlen (value) + 2); in set_in_environ()
|
| /freebsd-12.1/usr.bin/vtfontcvt/ |
| H A D | vtfontcvt.c | 102 xmalloc(size_t size) in xmalloc() function 119 mp = xmalloc(sizeof *mp); in add_mapping() 189 gl = xmalloc(sizeof *gl); in add_glyph() 190 gl->g_data = xmalloc(wbytes * height); in add_glyph() 355 bytes = xmalloc(wbytes * height); in parse_bdf() 356 bytes_r = xmalloc(wbytes * height); in parse_bdf() 357 line = xmalloc(wbytes * 2); in parse_bdf() 455 bytes = xmalloc(wbytes * height); in parse_hex() 456 bytes_r = xmalloc(wbytes * height); in parse_hex() 457 line = xmalloc(wbytes * 2); in parse_hex()
|
| /freebsd-12.1/usr.bin/mklocale/ |
| H A D | yacc.y | 59 static void *xmalloc(unsigned int sz); 132 variable = xmalloc(new_locale.variable_len); 149 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 156 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 163 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 170 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 179 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 187 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 195 $$ = (rune_list *)xmalloc(sizeof(rune_list)); 203 $$ = (rune_list *)xmalloc(sizeof(rune_list)); [all …]
|
| /freebsd-12.1/contrib/gdb/gdb/cli/ |
| H A D | cli-script.c | 81 cmd = (struct command_line *) xmalloc (sizeof (struct command_line)); in build_command_line() 87 = (struct command_line **) xmalloc (sizeof (struct command_line *) in build_command_line() 498 args = (struct user_args *) xmalloc (sizeof (struct user_args)); in setup_user_args() 615 new_line = (char *) xmalloc (len + 1); in insert_args() 666 xmalloc (sizeof (struct command_line *) * new_length); in realloc_body_list() 736 xmalloc (sizeof (struct command_line)); in read_next_line() 746 xmalloc (sizeof (struct command_line)); in read_next_line() 757 xmalloc (sizeof (struct command_line)); in read_next_line() 1028 xmalloc (sizeof (struct command_line *) * cmds->body_count); in copy_command_lines() 1203 c->doc = (char *) xmalloc (len + 1); in document_command() [all …]
|
| /freebsd-12.1/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()
|
| /freebsd-12.1/contrib/amd/amd/ |
| H A D | info_union.c | 83 *pval = xmalloc(l); in union_search() 124 val = xmalloc(l); in union_reload() 136 char *val = xmalloc(l); in union_reload()
|
| /freebsd-12.1/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()
|
| /freebsd-12.1/usr.bin/gencat/ |
| H A D | gencat.c | 114 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-12.1/contrib/dtc/ |
| H A D | livetree.c | 38 new = xmalloc(sizeof(*new)); in add_label() 55 struct property *new = xmalloc(sizeof(*new)); in build_property() 67 struct property *new = xmalloc(sizeof(*new)); in build_property_delete() 102 struct node *new = xmalloc(sizeof(*new)); in build_node() 119 struct node *new = xmalloc(sizeof(*new)); in build_node_delete() 318 struct reserve_info *new = xmalloc(sizeof(*new)); in build_reserve_entry() 361 dti = xmalloc(sizeof(*dti)); in build_dt_info() 627 tbl = xmalloc(n * sizeof(*tbl)); in sort_reserve_entries() 665 tbl = xmalloc(n * sizeof(*tbl)); in sort_properties() 701 tbl = xmalloc(n * sizeof(*tbl)); in sort_subnodes() [all …]
|
| H A D | srcpos.c | 43 char *dir = xmalloc(len + 1); in get_dirname() 150 srcfile = xmalloc(sizeof(*srcfile)); in srcfile_push() 188 node = xmalloc(sizeof(*node)); in srcfile_add_search_path() 243 pos_new = xmalloc(sizeof(struct srcpos)); in srcpos_copy()
|
| /freebsd-12.1/contrib/binutils/include/ |
| H A D | libiberty.h | 285 extern void *xmalloc (size_t) ATTRIBUTE_MALLOC; 323 #define XNEW(T) ((T *) xmalloc (sizeof (T))) 329 #define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N))) 336 #define XNEWVAR(T, S) ((T *) xmalloc ((S)))
|
| /freebsd-12.1/contrib/gcclibs/include/ |
| H A D | libiberty.h | 274 extern void *xmalloc (size_t) ATTRIBUTE_MALLOC; 316 #define XNEW(T) ((T *) xmalloc (sizeof (T))) 322 #define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N))) 329 #define XNEWVAR(T, S) ((T *) xmalloc ((S)))
|