Home
last modified time | relevance | path

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

12345678910>>...24

/freebsd-11-stable/contrib/libreadline/shlib/
HDMakefile.in130 $(topdir)/callback.c $(topdir)/terminal.c $(topdir)/xmalloc.c \
140 ansi_stdlib.h tcap.h xmalloc.h rlprivate.h rlshell.h rlmbutil.h
148 text.so nls.so misc.so xmalloc.so $(SHARED_HISTOBJ) $(SHARED_TILDEOBJ) \
169 $(SHARED_HISTORY): $(SHARED_HISTOBJ) xmalloc.so
171 $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so $(SHLIB_LIBS)
317 xmalloc.so: ${BUILD_DIR}/config.h
318 xmalloc.so: $(topdir)/ansi_stdlib.h
350 bind.so: $(topdir)/xmalloc.h
351 complete.so: $(topdir)/xmalloc.h
352 display.so: $(topdir)/xmalloc.h
[all …]
/freebsd-11-stable/contrib/libreadline/
HDMakefile.in108 $(srcdir)/callback.c $(srcdir)/terminal.c $(srcdir)/xmalloc.c \
118 ansi_stdlib.h tcap.h rlstdc.h xmalloc.h rlprivate.h rlshell.h \
126 text.o nls.o misc.o compat.o xmalloc.o $(HISTOBJ) $(TILDEOBJ)
157 libhistory.a: $(HISTOBJ) xmalloc.o
159 $(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
399 xmalloc.o: ${BUILD_DIR}/config.h
400 xmalloc.o: ansi_stdlib.h
432 bind.o: xmalloc.h
433 complete.o: xmalloc.h
434 display.o: xmalloc.h
[all …]
HDtilde.c53 static void *xmalloc (), *xrealloc ();
68 #define savestring(x) strcpy ((char *)xmalloc (1 + strlen (x)), (x))
200 result = (char *)xmalloc (result_size = (strlen (string) + 16));
202 result = (char *)xmalloc (result_size = (strlen (string) + 1));
233 tilde_word = (char *)xmalloc (1 + end);
273 ret = (char *)xmalloc (strlen (fname));
308 r = (char *)xmalloc (1 + x);
332 ret = (char *)xmalloc (plen + slen + 1);
462 xmalloc (bytes) in xmalloc() function
HDshell.c100 result = (char *)xmalloc (3 + (4 * strlen (string)));
131 b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1);
136 b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1);
142 b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("LINES=") + 1);
146 b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("COLUMNS=") + 1);
HDhistexpand.c235 temp = (char *)xmalloc (1 + which);
337 r = ret = (char *)xmalloc (len);
402 temp = (char *)xmalloc (ll + elen + 3);
458 s = (char *)xmalloc (si - i + 1);
485 new = (char *)xmalloc (new_size = subst_rhs_len + subst_lhs_len); in postproc_subst_rhs()
533 result = (char *)xmalloc (result_len = 128);
802 new_event = (char *)xmalloc (1 + len);
953 result = (char *)xmalloc (result_len = 256);
970 string = (char *)xmalloc (l + 5);
1136 temp = (char *)xmalloc (slen);
[all …]
/freebsd-11-stable/contrib/binutils/ld/
HDpe-dll.c439 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 …]
HDdeffilep.y216 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-11-stable/contrib/binutils/opcodes/
HDarc-ext.c182 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-11-stable/usr.bin/xlint/xlint/
HDxlint.c210 s = xmalloc(strlen(s1) + strlen(s2) + 1); in concat2()
222 s = xmalloc(strlen(s1) + strlen(s2) + strlen(s3) + 1); in concat3()
314 s = xmalloc(len + 2); in main()
319 cppout = xmalloc(strlen(tmpdir) + sizeof ("lint0.XXXXXX")); in main()
461 p2out = xmalloc(sizeof ("llib-l.ln") + strlen(optarg)); in main()
633 ofn = xmalloc(strlen(bn) + (bn == suff ? 4 : 2)); in fname()
638 ofn = xmalloc(strlen(tmpdir) + sizeof ("lint1.XXXXXX")); in fname()
655 pathname = xmalloc(strlen(PATH_USRBIN) + sizeof ("/cc")); in fname()
685 pathname = xmalloc(strlen(PATH_LIBEXEC) + sizeof ("/lint1") + in fname()
694 pathname = xmalloc(strlen(libexec_path) + sizeof ("/lint1")); in fname()
[all …]
/freebsd-11-stable/contrib/binutils/binutils/
HDwrstabs.c401 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 …]
HDdlltool.c932 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 …]
HDobjcopy.c595 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 …]
HDcoffgrok.c150 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-11-stable/contrib/gdb/gdb/mi/
HDmi-parse.c36 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-11-stable/gnu/usr.bin/grep/
HDexclude.c34 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()
HDxalloc.h59 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-11-stable/contrib/mdocml/
HDtest-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-11-stable/contrib/gdb/gdb/
HDenviron.c36 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-11-stable/libexec/rtld-elf/
HDxmalloc.c49 xmalloc(size_t size) in xmalloc() function
66 copy = xmalloc(len); in xstrdup()
79 mem = xmalloc(size + sizeof(void *) + align - 1); in malloc_aligned()
/freebsd-11-stable/usr.bin/vtfontcvt/
HDvtfontcvt.c102 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-11-stable/contrib/gdb/gdb/cli/
HDcli-script.c81 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-11-stable/usr.bin/mklocale/
HDyacc.y57 static void *xmalloc(unsigned int sz);
130 variable = xmalloc(new_locale.variable_len);
147 $$ = (rune_list *)xmalloc(sizeof(rune_list));
154 $$ = (rune_list *)xmalloc(sizeof(rune_list));
161 $$ = (rune_list *)xmalloc(sizeof(rune_list));
168 $$ = (rune_list *)xmalloc(sizeof(rune_list));
177 $$ = (rune_list *)xmalloc(sizeof(rune_list));
185 $$ = (rune_list *)xmalloc(sizeof(rune_list));
193 $$ = (rune_list *)xmalloc(sizeof(rune_list));
201 $$ = (rune_list *)xmalloc(sizeof(rune_list));
[all …]
/freebsd-11-stable/contrib/amd/amd/
HDinfo_union.c83 *pval = xmalloc(l); in union_search()
124 val = xmalloc(l); in union_reload()
136 char *val = xmalloc(l); in union_reload()
/freebsd-11-stable/contrib/diff/lib/
HDxmalloc.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()
/freebsd-11-stable/usr.bin/gencat/
HDgencat.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));

12345678910>>...24