| /freebsd-12-stable/contrib/binutils/ld/ |
| D | pe-dll.c | 439 new_exclude = xmalloc (sizeof (struct exclude_list_struct)); in pe_dll_add_excludes() 440 new_exclude->string = xmalloc (strlen (exclude_string) + 1); in pe_dll_add_excludes() 584 char *buf = xmalloc (size); in process_def_file() 607 symbols = xmalloc (symsize); in process_def_file() 627 name = xmalloc (strlen ("__imp_") + strlen (sn) + 1); in process_def_file() 706 exported_symbol_offsets = xmalloc (NE * sizeof (bfd_vma)); in process_def_file() 707 exported_symbol_sections = xmalloc (NE * sizeof (struct bfd_section *)); in process_def_file() 781 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in process_def_file() 931 exported_symbols = xmalloc (export_table_size * sizeof (int)); in generate_edata() 1000 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in fill_exported_offsets() [all …]
|
| 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() 724 def->section_defs = xmalloc (max_sections * sizeof (def_file_import)); in def_section() 806 buf = xmalloc (strlen (module) + strlen (ext) + 2); in def_import() [all …]
|
| /freebsd-12-stable/contrib/binutils/opcodes/ |
| 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-stable/contrib/bearssl/test/ |
| 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-12-stable/contrib/binutils/binutils/ |
| D | wrstabs.c | 401 s = (struct stab_type_stack *) xmalloc (sizeof *s); in stab_push_string() 475 info.symbols = (bfd_byte *) xmalloc (info.symbols_alloc); in write_stabs_in_sections_debugging_info() 528 *pstrings = (bfd_byte *) xmalloc (info.strings_size); in write_stabs_in_sections_debugging_info() 793 buf = (char *) xmalloc (10 + strlen (tag)); in stab_enum_type() 808 buf = (char *) xmalloc (len); in stab_enum_type() 866 buf = (char *) xmalloc (strlen (s) + 2); in stab_modify_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() 1032 buf = (char *) xmalloc (strlen (range) + strlen (element) + 100); in stab_array_type() [all …]
|
| D | dlltool.c | 932 struct export *p = (struct export *) xmalloc (sizeof (*p)); in def_exports() 997 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in def_description() 1006 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in new_directive() 1048 q->functail->next = xmalloc (sizeof (ifunctype)); in append_import() 1058 q = xmalloc (sizeof (iheadtype)); in append_import() 1061 q->funchead = xmalloc (sizeof (ifunctype)); in append_import() 1256 buf = xmalloc (size); in scan_drectve_symbols() 1282 c = xmalloc (p - name + 1); in scan_drectve_symbols() 1375 xmalloc (sizeof (struct string_list))); in add_excludes() 1376 new_exclude->string = (char *) xmalloc (strlen (exclude_string) + 2); in add_excludes() [all …]
|
| D | objcopy.c | 595 copy = xmalloc (len + 1); in parse_flags() 624 p = xmalloc (sizeof (struct section_list)); in find_section_list() 649 tmp_list = xmalloc (sizeof (struct symlist)); in add_specific_symbol() 676 buffer = xmalloc (size + 2); in add_specific_symbols() 972 ptr = n = xmalloc (1 + strlen (prefix_symbols_string) in filter_symbols() 1123 new_node = xmalloc (sizeof (struct redefine_node)); in redefine_list_append() 1151 buf = xmalloc (bufsize); in add_redefine_syms_file() 1279 cbuf = xmalloc (BUFSIZE); in copy_unknown_object() 1413 osympp = isympp = xmalloc (symsize); in copy_object() 1563 osections = xmalloc (c * sizeof (asection *)); in copy_object() [all …]
|
| 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-stable/contrib/gdb/gdb/mi/ |
| 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-stable/gnu/usr.bin/grep/ |
| 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()
|
| 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-stable/contrib/mandoc/ |
| 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-stable/contrib/gdb/gdb/ |
| 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-stable/libexec/rtld-elf/ |
| D | xmalloc.c | 53 xmalloc(size_t size) in xmalloc() function 73 copy = xmalloc(len); in xstrdup() 88 mem = xmalloc(size + 3 * align + offset); in malloc_aligned()
|
| /freebsd-12-stable/usr.bin/vtfontcvt/ |
| 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-stable/usr.bin/mklocale/ |
| 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-stable/contrib/gdb/gdb/cli/ |
| 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() 1017 result = (struct command_line *) xmalloc (sizeof (struct command_line)); in copy_command_lines() 1028 xmalloc (sizeof (struct command_line *) * cmds->body_count); in copy_command_lines() [all …]
|
| /freebsd-12-stable/contrib/amd/amd/ |
| 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-stable/contrib/diff/lib/ |
| 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-stable/contrib/bearssl/tools/ |
| 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-stable/usr.bin/gencat/ |
| 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-stable/contrib/dtc/ |
| 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 …]
|
| 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-stable/contrib/binutils/include/ |
| 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-stable/contrib/gcclibs/include/ |
| 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)))
|