Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 116) sorted by relevance

12345

/mirbsd/src/gnu/usr.bin/binutils/binutils/
Dbudemang.c41 char *res, *alloc; in demangle() local
57 alloc = NULL; in demangle()
61 alloc = xmalloc (suf - name + 1); in demangle()
62 memcpy (alloc, name, suf - name); in demangle()
63 alloc[suf - name] = '\0'; in demangle()
64 name = alloc; in demangle()
77 if (alloc != NULL) in demangle()
78 free (alloc); in demangle()
96 if (alloc != NULL) in demangle()
97 free (alloc); in demangle()
Drdcoff.c377 int alloc; in parse_coff_struct_type() local
384 alloc = 10; in parse_coff_struct_type()
385 fields = (debug_field *) xmalloc (alloc * sizeof *fields); in parse_coff_struct_type()
457 if (count + 1 >= alloc) in parse_coff_struct_type()
459 alloc += 10; in parse_coff_struct_type()
461 xrealloc (fields, alloc * sizeof *fields)); in parse_coff_struct_type()
484 int alloc; in parse_coff_enum_type() local
492 alloc = 10; in parse_coff_enum_type()
493 names = (const char **) xmalloc (alloc * sizeof *names); in parse_coff_enum_type()
494 vals = (bfd_signed_vma *) xmalloc (alloc * sizeof *vals); in parse_coff_enum_type()
[all …]
Dieee.c91 unsigned int alloc; member
117 unsigned int alloc; member
783 if (indx >= info->types.alloc) in ieee_alloc_type()
785 nalloc = info->types.alloc; in ieee_alloc_type()
795 memset (info->types.types + info->types.alloc, 0, in ieee_alloc_type()
796 (nalloc - info->types.alloc) * sizeof *info->types.types); in ieee_alloc_type()
799 for (t = info->types.types + info->types.alloc; t < tend; t++) in ieee_alloc_type()
802 info->types.alloc = nalloc; in ieee_alloc_type()
869 info.vars.alloc = 0; in parse_ieee()
872 info.types.alloc = 0; in parse_ieee()
[all …]
Daddr2line.c193 char *alloc = NULL; in translate_addresses() local
200 alloc = demangle (abfd, name); in translate_addresses()
201 name = alloc; in translate_addresses()
206 if (alloc != NULL) in translate_addresses()
207 free (alloc); in translate_addresses()
Dstabs.c1456 unsigned int alloc; in parse_stab_type() local
1476 alloc = 10; in parse_stab_type()
1477 args = (debug_type *) xmalloc (alloc * sizeof *args); in parse_stab_type()
1488 if (n + 1 >= alloc) in parse_stab_type()
1490 alloc += 10; in parse_stab_type()
1492 xrealloc (args, alloc * sizeof *args)); in parse_stab_type()
1933 unsigned int alloc; in parse_stab_enum_type() local
1951 alloc = 10; in parse_stab_enum_type()
1952 names = (const char **) xmalloc (alloc * sizeof *names); in parse_stab_enum_type()
1953 values = (bfd_signed_vma *) xmalloc (alloc * sizeof *values); in parse_stab_enum_type()
[all …]
Dwrstabs.c876 size_t alloc; in stab_modify_type() local
878 alloc = *cache_alloc; in stab_modify_type()
879 if (alloc == 0) in stab_modify_type()
880 alloc = 10; in stab_modify_type()
881 while ((size_t) targindex >= alloc) in stab_modify_type()
882 alloc *= 2; in stab_modify_type()
883 *cache = (long *) xrealloc (*cache, alloc * sizeof (long)); in stab_modify_type()
885 (alloc - *cache_alloc) * sizeof (long)); in stab_modify_type()
886 *cache_alloc = alloc; in stab_modify_type()
1265 size_t alloc; in stab_get_struct_index() local
[all …]
/mirbsd/src/usr.bin/ssh/
Dbuffer.c36 buffer->alloc = 0; in buffer_init()
38 buffer->alloc = len; in buffer_init()
48 if (buffer->alloc > 0) { in buffer_free()
49 memset(buffer->buf, 0, buffer->alloc); in buffer_free()
50 buffer->alloc = 0; in buffer_free()
84 if (buffer->offset > MIN(buffer->alloc, BUFFER_MAX_CHUNK)) { in buffer_compact()
116 if (buffer->end + len < buffer->alloc) { in buffer_append_space()
127 newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ); in buffer_append_space()
132 buffer->alloc = newlen; in buffer_append_space()
149 if (buffer->end + len < buffer->alloc) in buffer_check_alloc()
[all …]
/mirbsd/src/gnu/usr.bin/binutils/libiberty/testsuite/
Dtest-demangle.c57 size_t alloc = buf->alloced; local
64 alloc = LINELEN;
78 if (count + 1 >= alloc)
80 alloc *= 2;
81 data = xrealloc (data, alloc);
90 buf->alloced = alloc;
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dregex_internal.c865 set->alloc = size; in re_node_set_alloc()
877 set->alloc = 1; in re_node_set_init_1()
882 set->alloc = set->nelem = 0; in re_node_set_init_1()
893 set->alloc = 2; in re_node_set_init_2()
926 dest->alloc = dest->nelem; in re_node_set_init_copy()
927 dest->elems = re_malloc (Idx, dest->alloc); in re_node_set_init_copy()
930 dest->alloc = dest->nelem = 0; in re_node_set_init_copy()
955 if (src1->nelem + src2->nelem + dest->nelem > dest->alloc) in re_node_set_add_intersect()
957 Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; in re_node_set_add_intersect()
960 && (new_alloc < dest->alloc in re_node_set_add_intersect()
[all …]
/mirbsd/src/gnu/usr.bin/binutils/bfd/
Daix5ppc-core.c241 size_t alloc; local
256 alloc = 100;
257 path = bfd_malloc (alloc);
271 if (s == path + alloc)
275 alloc *= 2;
276 n = bfd_realloc (path, alloc);
Drs6000-core.c643 size_t alloc; local
664 alloc = 100;
665 path = bfd_malloc ((bfd_size_type) alloc);
680 if (s == path + alloc)
684 alloc *= 2;
685 n = bfd_realloc (path, (bfd_size_type) alloc);
Dhash.c313 unsigned int alloc; in bfd_hash_table_init_n() local
315 alloc = size * sizeof (struct bfd_hash_entry *); in bfd_hash_table_init_n()
323 table->table = objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n()
329 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n()
Dm68klinux.c453 char *alloc = NULL; local
458 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1);
460 if (p == NULL || alloc == NULL)
465 strcpy (alloc, name);
466 p = strrchr (alloc, '_');
470 alloc, p);
471 free (alloc);
Dsparclinux.c450 char *alloc = NULL; local
455 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1);
457 if (p == NULL || alloc == NULL)
462 strcpy (alloc, name);
463 p = strrchr (alloc, '_');
467 alloc, p);
468 free (alloc);
Di386linux.c449 char *alloc = NULL; local
454 alloc = (char *) bfd_malloc ((bfd_size_type) strlen (name) + 1);
456 if (p == NULL || alloc == NULL)
461 strcpy (alloc, name);
462 p = strrchr (alloc, '_');
466 alloc, p);
467 free (alloc);
/mirbsd/src/sys/lib/libsa/
Dlmbmfs.c75 allitems = alloc(lmbm_num * sizeof(struct lmbm_item)); in lmbmfs_init()
86 allitems[i].name = alloc(cp - bp); in lmbmfs_init()
89 allitems[i].name = alloc(8); in lmbmfs_init()
132 ff = alloc(sizeof(struct lmbmfs_file)); in lmbmfs_open()
Dufs.c120 buf = alloc(fs->fs_bsize); in read_inode()
225 alloc(fs->fs_bsize); in block_map()
276 fp->f_buf = alloc(fs->fs_bsize); in buf_read_file()
369 namebuf = alloc(MAXPATHLEN + 1); in ufs_open()
372 fp = alloc(sizeof(struct file)); in ufs_open()
377 fs = alloc(SBSIZE); in ufs_open()
494 buf = alloc(fs->fs_bsize); in ufs_open()
Dcd9660.c143 buf = alloc(buf_size = ISO_DEFAULT_BLOCK_SIZE); in cd9660_open()
173 buf = alloc(buf_size = roundup(psize, ISO_DEFAULT_BLOCK_SIZE)); in cd9660_open()
260 fp = alloc(sizeof(struct file)); in cd9660_open()
306 buf = alloc(ISO_DEFAULT_BLOCK_SIZE); in cd9660_read()
/mirbsd/src/share/doc/papers/kernmalloc/
DMakefile7 EXTRA= alloc.fig usage.tbl
9 paper.ps: ${SRCS} alloc.fig usage.tbl
/mirbsd/src/usr.bin/rpcgen/
Drpc_scan.c333 *val = alloc(size + 1);
361 *val = alloc(size + 1);
389 *val = alloc(size + 1);
445 tokp->str = alloc(len + 1);
499 p = file = alloc(strlen(line) + 1);
/mirbsd/src/sys/arch/i386/stand/libsa/
Ddiskprobe.c73 dip = alloc(sizeof(struct diskinfo)); in floppyprobe()
130 dip = alloc(sizeof(struct diskinfo)); in hardprobe_one()
235 bios_diskinfo = alloc(++i * sizeof(bios_diskinfo_t)); in diskprobe()
285 buf = alloc(DEV_BSIZE); in disksum()
/mirbsd/src/lib/libc/ohash/
Dohash_init.c36 h->info.alloc = info->alloc; in ohash_init()
/mirbsd/src/usr.sbin/config/
Dhash.c99 size_t alloc; in poolalloc() local
109 alloc = ROUND(size + 32, 16384) - 32; in poolalloc()
110 p = emalloc(alloc); in poolalloc()
111 nleft = alloc - size; in poolalloc()
/mirbsd/src/sys/arch/i386/stand/boot/
Dconf.c196 start_dip = alloc(sizeof (struct diskinfo)); in pxecheck()
223 start_dip = alloc(sizeof (struct diskinfo)); in lmbmfs_check()
243 start_dip = alloc(sizeof (struct diskinfo)); in dosfs_check()
/mirbsd/src/gnu/usr.bin/rcs/src/
Drcsutil.c201 void *alloc; member
242 return q->alloc = ptr;
260 tfree(p->alloc); in ffree()
273 while ((p = *a)->alloc != f)
276 tfree(p->alloc);

12345