Home
last modified time | relevance | path

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

12345678910>>...68

/netbsd-src/external/gpl3/gdb/dist/readline/readline/shlib/
H A DMakefile.in132 $(topdir)/callback.c $(topdir)/terminal.c $(topdir)/xmalloc.c $(topdir)/xfree.c \
146 $(topdir)/xmalloc.h $(topdir)/rlprivate.h $(topdir)/rlshell.h \
159 xmalloc.so xfree.so compat.so
179 $(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so xfree.so
181 …$(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so xfree.so $(SHLIB…
341 xmalloc.so: ${BUILD_DIR}/config.h
342 xmalloc.so: $(topdir)/ansi_stdlib.h
386 bind.so: $(topdir)/xmalloc.h
387 callback.so: $(topdir)/xmalloc.h
388 complete.so: $(topdir)/xmalloc.h
[all …]
/netbsd-src/external/gpl3/gdb/dist/readline/readline/
H A DMakefile.in118 $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c $(srcdir)/xfree.c \
131 $(srcdir)/xmalloc.h $(srcdir)/rlprivate.h $(srcdir)/rlshell.h \
142 xmalloc.o xfree.o compat.o
179 libhistory.a: $(HISTOBJ) xmalloc.o xfree.o
181 $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o xfree.o
460 xmalloc.o: ${BUILD_DIR}/config.h
461 xmalloc.o: ansi_stdlib.h
503 bind.o: xmalloc.h
504 callback.o: xmalloc.h
505 complete.o: xmalloc.h
[all …]
H A Dtilde.c53 static void *xmalloc (), *xrealloc ();
68 #define savestring(x) strcpy ((char *)xmalloc (1 + strlen (x)), (x))
196 result = (char *)xmalloc (result_size = (strlen (string) + 16)); in tilde_expand()
198 result = (char *)xmalloc (result_size = (strlen (string) + 1)); in tilde_expand()
229 tilde_word = (char *)xmalloc (1 + end); in tilde_expand()
271 ret = (char *)xmalloc (strlen (fname)); in isolate_tilde_prefix()
304 r = (char *)xmalloc (1 + x);
325 ret = (char *)xmalloc (plen + slen + 1); in glue_prefix_and_suffix()
456 xmalloc (size_t bytes) in xmalloc() function
/netbsd-src/external/gpl2/texinfo/dist/makeinfo/
H A Dindex.c91 user_command_array = xmalloc (1 * sizeof (COMMAND *)); in define_user_command()
96 user_command_array[slot] = xmalloc (sizeof (COMMAND)); in define_user_command()
163 char *index_line = xmalloc (strlen (index_entry) + 2); in index_add_arg()
176 INDEX_ELT *new = xmalloc (sizeof (INDEX_ELT)); in index_add_arg()
309 name_index_alist[slot] = xmalloc (sizeof (INDEX_ALIST)); in defindex()
324 temp = xmalloc (1 + strlen (name) + strlen ("index")); in top_defindex()
342 the_indices = xmalloc ((1 + defined_indices) * sizeof (INDEX_ELT *)); in init_indices()
345 name_index_alist = xmalloc ((1 + defined_indices) in init_indices()
418 char *temp = xmalloc (strlen (name) + sizeof ("index")); in gen_defindex()
550 copy = xmalloc ((1 + count) * sizeof (INDEX_ELT *)); in make_index_entries_unique()
[all …]
H A Dfiles.c76 value = xmalloc (1 + (i - start)); in extract_colon_unit()
119 fullpath = xmalloc (2 + strlen (dir) + strlen (filename)); in get_file_info_in_path()
180 tmp = (char *) xmalloc (strlen (include_files_path) - i); in pop_path_from_include_path()
218 result = xmalloc (file_size + 2); in find_and_load()
287 FSTACK *newstack = xmalloc (sizeof (FSTACK)); in pushfile()
401 result = xmalloc (1 + i); in pathname_part()
430 char *localdir = xmalloc (1025); in full_pathname()
459 result = xmalloc (strlen (&filename[1]) in full_pathname()
473 char *username = xmalloc (257); in full_pathname()
490 result = xmalloc (1 + strlen (user_entry->pw_dir) in full_pathname()
[all …]
H A Dmacro.c118 macro_list[macro_list_len] = xmalloc (sizeof (MACRO_DEF)); in add_macro()
199 word = xmalloc (1 + len); in get_brace_args()
275 arglist = xmalloc (2 * sizeof (char *)); in get_macro_args()
305 new_body = xmalloc (1 + new_body_size); in apply()
325 param = xmalloc (1 + len); in apply()
335 text = xmalloc (1 + len); in apply()
360 text = xmalloc (1 + len); in apply()
485 name = xmalloc (1 + len); in define_macro()
527 word = xmalloc (1 + len); in define_macro()
752 name = xmalloc (i + 1); in cm_unmacro()
[all …]
H A Dfloat.c39 FLOAT_ELT *new = xmalloc (sizeof (FLOAT_ELT)); in add_new_float()
62 char *s = xmalloc (len + 1); in add_new_float()
148 char *s = xmalloc (strlen (temp->type) + strlen (temp->number) + 2); in get_float_ref()
195 char *list_command = xmalloc (command_len + 1); in cm_listoffloats()
289 raw_entry = (char *) xmalloc (strlen (float_type) in cm_listoffloats()
335 entry = xmalloc (len + aux_chars_len); in cm_listoffloats()
350 entry = xmalloc (len + aux_chars_len); in cm_listoffloats()
H A Dfootnote.c104 FN *temp = xmalloc (sizeof (FN)); in remember_note()
182 note = xmalloc (len + 1); in cm_footnote()
224 marker = xmalloc (10); in cm_footnote()
261 temp_string = xmalloc (strlen (current_node) in cm_footnote()
338 FN **array = xmalloc ((footnote_count + 1) * sizeof (FN *)); in output_pending_notes()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/root/
H A Drmem.c35 void *Mem::xmalloc(size_t size) in xmalloc() function
43 p = ::xmalloc(size); in xmalloc()
83 p = ::xmalloc(size); in xrealloc()
120 p = ::xmalloc(size); in xmallocdup()
168 void *p = xmalloc(m_size); in allocmemory()
181 heapp = xmalloc(CHUNK_SIZE); in allocmemory()
/netbsd-src/external/gpl2/gmake/dist/
H A Drule.c127 name = (char *) xmalloc (namelen + 1); in count_implicit_rule_limits()
183 targname = xmalloc (1 + len + 1); in convert_suffix_rule()
189 names = (char **) xmalloc (2 * sizeof (char *)); in convert_suffix_rule()
201 depname = xmalloc (1 + len + 1); in convert_suffix_rule()
365 r = (struct rule *) xmalloc (sizeof (struct rule)); in install_pattern_rule()
367 r->targets = (char **) xmalloc (2 * sizeof (char *)); in install_pattern_rule()
368 r->suffixes = (char **) xmalloc (2 * sizeof (char *)); in install_pattern_rule()
369 r->lens = (unsigned int *) xmalloc (2 * sizeof (unsigned int)); in install_pattern_rule()
394 r->cmds = (struct commands *) xmalloc (sizeof (struct commands)); in install_pattern_rule()
477 struct rule *r = (struct rule *) xmalloc (sizeof (struct rule)); in create_pattern_rule()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/info/
H A Dtilde.c30 static void *xmalloc (), *xrealloc ();
156 tilde_word = (char *)xmalloc (1 + end); in tilde_expand()
204 temp_name = xmalloc (1 + strlen (&dirname[1]) in tilde_expand_word()
218 char *username = xmalloc (257); in tilde_expand_word()
241 temp_name = xmalloc (1 + strlen (expansion) in tilde_expand_word()
253 temp_name = xmalloc (1 + strlen (user_entry->pw_dir) in tilde_expand_word()
309 xmalloc (bytes) in xmalloc() function
H A Dfilesys.c192 temp = (char *)xmalloc (30 + strlen (temp_dirname) + strlen (filename)); in info_file_in_path()
294 char *value = xmalloc ((i - start) + 1); in extract_colon_unit()
350 new = (FILENAME_LIST *)xmalloc (sizeof (FILENAME_LIST)); in remember_info_filename()
364 xmalloc (infopath_size = (1 + strlen (DEFAULT_INFOPATH))); in maybe_initialize_infopath()
379 infopath = (char *)xmalloc (infopath_size = 200 + strlen (path)); in info_add_path()
485 contents = (char *)xmalloc (1 + st_size); in filesys_read_info_file()
531 command = (char *)xmalloc (15 + strlen (pathname) + strlen (decompressor)); in filesys_read_compressed()
542 temp = (char *)xmalloc (5 + strlen (command)); in filesys_read_compressed()
559 chunk = (char *)xmalloc (FILESYS_PIPE_BUFFER_SIZE); in filesys_read_compressed()
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dwrstabs.c401 s = (struct stab_type_stack *) xmalloc (sizeof *s); in stab_push_string()
476 info.symbols = (bfd_byte *) xmalloc (info.symbols_alloc); in write_stabs_in_sections_debugging_info()
530 *pstrings = (bfd_byte *) xmalloc (info.strings_size); in write_stabs_in_sections_debugging_info()
796 buf = (char *) xmalloc (10 + strlen (tag)); in stab_enum_type()
811 buf = (char *) xmalloc (len); in stab_enum_type()
870 buf = (char *) xmalloc (strlen (s) + 2); in stab_modify_type()
913 buf = (char *) xmalloc (strlen (s) + 20); in stab_modify_type()
963 buf = (char *) xmalloc (strlen (s) + 3); in stab_function_type()
1004 buf = (char *) xmalloc (strlen (s) + 100); in stab_range_type()
1036 buf = (char *) xmalloc (strlen (range) + strlen (element) + 100); in stab_array_type()
[all …]
H A Ddlltool.c1005 struct export *p = (struct export *) xmalloc (sizeof (*p)); in def_exports()
1039 dll_name = xmalloc (strlen (image_basename) + strlen (suffix) + 1); in set_dll_name_from_def()
1091 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in def_description()
1100 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in new_directive()
1143 q->functail->next = xmalloc (sizeof (ifunctype)); in append_import()
1154 q = xmalloc (sizeof (iheadtype)); in append_import()
1157 q->funchead = xmalloc (sizeof (ifunctype)); in append_import()
1282 argv = xmalloc (sizeof (char *) * (i + 3)); in run()
1352 buf = xmalloc (size); in scan_drectve_symbols()
1389 c = xmalloc (p - name + 1); in scan_drectve_symbols()
[all …]
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dwrstabs.c392 s = xmalloc (sizeof *s); in stab_push_string()
475 info.symbols = xmalloc (info.symbols_alloc); in write_stabs_in_sections_debugging_info()
521 *pstrings = xmalloc (info.strings_size); in write_stabs_in_sections_debugging_info()
820 buf = xmalloc (4 + strlen (tag)); in stab_enum_type()
832 buf = xmalloc (len); in stab_enum_type()
885 buf = xmalloc (strlen (s) + 2); in stab_modify_type()
925 buf = xmalloc (strlen (s) + 23); in stab_modify_type()
970 buf = xmalloc (strlen (s) + 3); in stab_function_type()
1008 buf = xmalloc (strlen (s) + 45); in stab_range_type()
1035 buf = xmalloc (strlen (range) + strlen (element) + 70); in stab_array_type()
[all …]
H A Ddlltool.c1057 struct export *p = (struct export *) xmalloc (sizeof (*p)); in def_exports()
1091 dll_name = xmalloc (strlen (image_basename) + strlen (suffix) + 1); in set_dll_name_from_def()
1143 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in def_description()
1152 dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type)); in new_directive()
1195 q->functail->next = xmalloc (sizeof (ifunctype)); in append_import()
1206 q = xmalloc (sizeof (iheadtype)); in append_import()
1209 q->funchead = xmalloc (sizeof (ifunctype)); in append_import()
1334 argv = xmalloc (sizeof (char *) * (i + 3)); in run()
1404 buf = xmalloc (size); in scan_drectve_symbols()
1441 c = xmalloc (p - name + 1); in scan_drectve_symbols()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/driver/
H A Dpath.c64 path = xmalloc(sysroot_len + value_len); in expand_sysroot()
85 f = xmalloc(lp + lf + need_sep + 1); in find_file()
117 name = xmalloc(lf + ls + 1); in output_name()
136 path = xmalloc(template_len + need_sep + 6 + 1); in output_name()
150 name = xmalloc(len); in output_name()
/netbsd-src/external/gpl2/grep/dist/lib/
H A Dexclude.c36 void *xmalloc PARAMS ((size_t));
51 struct exclude *ex = (struct exclude *) xmalloc (sizeof (struct exclude)); in new_exclude()
54 ex->exclude = (char const **) xmalloc (ex->exclude_alloc * sizeof (char *)); in new_exclude()
103 buf = xmalloc (buf_alloc); in add_exclude_file()
/netbsd-src/external/gpl3/binutils.old/dist/ld/
H A Dpe-dll.c535 new_exclude = xmalloc (sizeof (struct exclude_list_struct)); in pe_dll_add_excludes()
536 new_exclude->string = xmalloc (strlen (exclude_string) + 1); in pe_dll_add_excludes()
691 char *buf = xmalloc (size); in process_def_file_and_drectve()
768 name = xmalloc (strlen ("__imp_") + strlen (sn) + 1); in process_def_file_and_drectve()
909 exported_symbol_offsets = xmalloc (NE * sizeof (bfd_vma)); in process_def_file_and_drectve()
910 exported_symbol_sections = xmalloc (NE * sizeof (struct bfd_section *)); in process_def_file_and_drectve()
927 name = xmalloc (strlen (int_name) + 2); in process_def_file_and_drectve()
1088 exported_symbols = xmalloc (export_table_size * sizeof (int)); in generate_edata()
1166 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in fill_exported_offsets()
1197 edata_d = xmalloc (edata_sz); in fill_edata()
[all …]
/netbsd-src/external/gpl3/binutils/dist/ld/
H A Dpe-dll.c546 new_exclude = xmalloc (sizeof (struct exclude_list_struct)); in pe_dll_add_excludes()
547 new_exclude->string = xmalloc (strlen (exclude_string) + 1); in pe_dll_add_excludes()
703 char *buf = xmalloc (size); in process_def_file_and_drectve()
789 name = xmalloc (strlen ("__imp_") + strlen (sn) + 1); in process_def_file_and_drectve()
930 exported_symbol_offsets = xmalloc (NE * sizeof (bfd_vma)); in process_def_file_and_drectve()
931 exported_symbol_sections = xmalloc (NE * sizeof (struct bfd_section *)); in process_def_file_and_drectve()
948 name = xmalloc (strlen (int_name) + 2); in process_def_file_and_drectve()
1110 exported_symbols = xmalloc (export_table_size * sizeof (int)); in generate_edata()
1188 name = xmalloc (strlen (pe_def_file->exports[i].internal_name) + 2); in fill_exported_offsets()
1219 edata_d = xmalloc (edata_sz); in fill_edata()
[all …]
/netbsd-src/external/bsd/mdocml/dist/
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()
/netbsd-src/external/gpl3/binutils/dist/gprof/
H A Dcorefile.c124 xmalloc (count * sizeof (struct function_map))); in read_function_mappings()
150 symbol_map[count].file_name = (char *) xmalloc (strlen (dummy) + 1); in read_function_mappings()
158 symbol_map[count].function_name = (char *) xmalloc (strlen (tmp) + 1); in read_function_mappings()
223 core_syms = (asymbol **) xmalloc (core_sym_bytes); in core_init()
545 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_syms_from()
569 symtab.limit->name = (char *) xmalloc (strlen (name) + 1); in core_create_syms_from()
646 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_function_syms()
790 prev_name = (char *) xmalloc (prev_name_len); in core_create_line_syms()
791 prev_filename = (char *) xmalloc (prev_filename_len); in core_create_line_syms()
815 prev_name = (char *) xmalloc (prev_name_len); in core_create_line_syms()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprof/
H A Dcorefile.c124 xmalloc (count * sizeof (struct function_map))); in read_function_mappings()
150 symbol_map[count].file_name = (char *) xmalloc (strlen (dummy) + 1); in read_function_mappings()
158 symbol_map[count].function_name = (char *) xmalloc (strlen (tmp) + 1); in read_function_mappings()
223 core_syms = (asymbol **) xmalloc (core_sym_bytes); in core_init()
545 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_syms_from()
567 symtab.limit->name = (char *) xmalloc (strlen (name) + 1); in core_create_syms_from()
644 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_function_syms()
788 prev_name = (char *) xmalloc (prev_name_len); in core_create_line_syms()
789 prev_filename = (char *) xmalloc (prev_filename_len); in core_create_line_syms()
813 prev_name = (char *) xmalloc (prev_name_len); in core_create_line_syms()
[all …]
/netbsd-src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
H A Dlinux-dp.c47 xmalloc (size_t n) in xmalloc() function
173 fork_mutex = xmalloc (num_philosophers * sizeof (fork_mutex[0])); in main()
182 int *numbers = xmalloc (num_philosophers * sizeof (*numbers)); in main()
185 philosophers = xmalloc (num_philosophers * sizeof (*philosophers)); in main()
/netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/
H A Dlinux-dp.c47 xmalloc (size_t n) in xmalloc() function
173 fork_mutex = xmalloc (num_philosophers * sizeof (fork_mutex[0])); in main()
182 int *numbers = xmalloc (num_philosophers * sizeof (*numbers)); in main()
185 philosophers = xmalloc (num_philosophers * sizeof (*philosophers)); in main()

12345678910>>...68