Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 27) sorted by relevance

12

/mirbsd/src/usr.bin/ssh/
Dxmalloc.c58 size_t new_size = nmemb * size; in xrealloc() local
60 if (new_size == 0) in xrealloc()
65 new_ptr = malloc(new_size); in xrealloc()
67 new_ptr = realloc(ptr, new_size); in xrealloc()
70 (u_long) new_size); in xrealloc()
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dcanonicalize.c221 size_t new_size = rname_limit - rname; in canonicalize_filename_mode() local
224 new_size += end - start + 1; in canonicalize_filename_mode()
226 new_size += PATH_MAX; in canonicalize_filename_mode()
227 rname = xrealloc (rname, new_size); in canonicalize_filename_mode()
228 rname_limit = rname + new_size; in canonicalize_filename_mode()
/mirbsd/src/gnu/usr.bin/binutils/libiberty/
Dobstack.c242 register long new_size; in _obstack_newchunk() local
248 new_size = (obj_size + length) + (obj_size >> 3) + 100; in _obstack_newchunk()
249 if (new_size < h->chunk_size) in _obstack_newchunk()
250 new_size = h->chunk_size; in _obstack_newchunk()
253 new_chunk = CALL_CHUNKFUN (h, new_size); in _obstack_newchunk()
258 new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size; in _obstack_newchunk()
/mirbsd/src/usr.bin/dc/
Dstack.c134 size_t new_size, i; in stack_grow() local
137 new_size = stack->size * 2 + 1; in stack_grow()
139 new_size * sizeof(*stack->stack)); in stack_grow()
140 for (i = stack->size; i < new_size; i++) in stack_grow()
142 stack->size = new_size; in stack_grow()
/mirbsd/src/usr.bin/less/
Dline.c82 int new_size = size_linebuf * 2; in expand_linebuf() local
83 char *new_buf = (char *) realloc(linebuf, new_size); in expand_linebuf()
84 char *new_attr = (char *) realloc(attr, new_size); in expand_linebuf()
93 memset(new_buf + size_linebuf, 0, new_size - size_linebuf); in expand_linebuf()
94 memset(new_attr + size_linebuf, 0, new_size - size_linebuf); in expand_linebuf()
97 size_linebuf = new_size; in expand_linebuf()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dbcache.c155 size_t new_size = new_num_buckets * sizeof (new_buckets[0]); in expand_hash_table() local
156 new_buckets = (struct bstring **) xmalloc (new_size); in expand_hash_table()
157 memset (new_buckets, 0, new_size); in expand_hash_table()
161 bcache->structure_size += new_size; in expand_hash_table()
Dsymmisc.c1254 int new_size; in extend_psymbol_list() local
1257 new_size = 255; in extend_psymbol_list()
1259 xmalloc (new_size * sizeof (struct partial_symbol *)); in extend_psymbol_list()
1263 new_size = listp->size * 2; in extend_psymbol_list()
1266 new_size * sizeof (struct partial_symbol *)); in extend_psymbol_list()
1271 listp->size = new_size; in extend_psymbol_list()
/mirbsd/src/usr.bin/patch/
Dinp.c113 size_t new_size; in reallocate_lines() local
115 new_size = *lines_allocated * 3 / 2; in reallocate_lines()
116 p = realloc(i_ptr, (new_size + 2) * sizeof(char *)); in reallocate_lines()
125 *lines_allocated = new_size; in reallocate_lines()
/mirbsd/src/lib/libc/rpc/
Dsvc.c144 int new_size, *new_freelist; in svc_fd_insert() local
146 new_size = svc_pollfd ? svc_pollfd_size + 128 : FD_SETSIZE; in svc_fd_insert()
147 pfd = realloc(svc_pollfd, sizeof(*svc_pollfd) * new_size); in svc_fd_insert()
150 new_freelist = realloc(svc_pollfd_freelist, new_size / 2); in svc_fd_insert()
156 svc_pollfd_size = new_size; in svc_fd_insert()
/mirbsd/src/gnu/usr.bin/binutils/bfd/
Delf-eh-frame.c1061 unsigned int new_size; in _bfd_elf_write_section_eh_frame() local
1075 new_size = size_of_output_cie_fde (ent, ptr_size); in _bfd_elf_write_section_eh_frame()
1078 if (new_size != ent->size) in _bfd_elf_write_section_eh_frame()
1080 memset (end, 0, new_size - ent->size); in _bfd_elf_write_section_eh_frame()
1081 bfd_put_32 (abfd, new_size - 4, buf); in _bfd_elf_write_section_eh_frame()
1273 unsigned int new_size; in _bfd_elf_write_section_eh_frame() local
1287 new_size = size_of_output_cie_fde (ent, ptr_size); in _bfd_elf_write_section_eh_frame()
1290 memset (buf + new_size, 0, pad); in _bfd_elf_write_section_eh_frame()
1291 bfd_put_32 (abfd, new_size + pad - 4, buf); in _bfd_elf_write_section_eh_frame()
Delf32-xtensa.c8645 long old_size, new_size; in relax_property_section() local
8695 new_size = new_end_offset - new_offset; in relax_property_section()
8697 if (new_size != old_size) in relax_property_section()
8699 bfd_put_32 (abfd, new_size, size_p); in relax_property_section()
8956 bfd_vma new_size = isym->st_size; in relax_section_symbols() local
8962 new_size = new_end - new_address; in relax_section_symbols()
8966 isym->st_size = new_size; in relax_section_symbols()
8986 bfd_vma new_size = sym_hash->size; in relax_section_symbols() local
8993 new_size = new_end - new_address; in relax_section_symbols()
8997 sym_hash->size = new_size; in relax_section_symbols()
/mirbsd/src/gnu/usr.bin/binutils/gas/
Ditbl-ops.c312 int n, id, size, new_size, new_num_opcodes; in append_insns_as_macros() local
330 new_size = sizeof (struct ITBL_OPCODE_STRUCT) * new_num_opcodes; in append_insns_as_macros()
331 ASSERT (new_size > size); in append_insns_as_macros()
335 new_opcodes = (struct ITBL_OPCODE_STRUCT *) malloc (new_size); in append_insns_as_macros()
Das.c888 unsigned long new_size; in parse_args() local
890 new_size = strtoul (optarg, NULL, 0); in parse_args()
891 if (new_size) in parse_args()
892 set_gas_hash_table_size (new_size); in parse_args()
Ddwarf2dbg.c876 int old_size, new_size; in dwarf2dbg_relax_frag() local
879 new_size = dwarf2dbg_estimate_size_before_relax (frag); in dwarf2dbg_relax_frag()
881 return new_size - old_size; in dwarf2dbg_relax_frag()
/mirbsd/src/usr.bin/lex/
Dmisc.c66 int new_size = action_size * 2; local
68 if ( new_size <= 0 )
74 action_size = new_size;
Dinitscan.c2982 int new_size = b->yy_buf_size * 2; in yy_get_next_buffer()
2984 if ( new_size <= 0 ) in yy_get_next_buffer()
3525 yy_size_t new_size; local
3528 new_size = yy_start_stack_depth * sizeof( int );
3531 yy_start_stack = (int *) yy_flex_alloc( new_size );
3535 (void *) yy_start_stack, new_size );
Dflex.skl832 int new_size = b->yy_buf_size * 2;
834 if ( new_size <= 0 )
1410 yy_size_t new_size;
1413 new_size = yy_start_stack_depth * sizeof( int );
1416 yy_start_stack = (int *) yy_flex_alloc( new_size );
1420 (void *) yy_start_stack, new_size );
/mirbsd/src/sys/compat/linux/
Dlinux_misc.c734 size_t old_size, new_size; local
738 new_size = round_page(SCARG(uap, new_size));
743 if (new_size > old_size) {
756 if (new_size < old_size) {
757 SCARG(&mua, addr) = (caddr_t)SCARG(uap, old_address) + new_size;
758 SCARG(&mua, len) = old_size - new_size;
Dlinux_syscallargs.h421 syscallarg(size_t) new_size;
/mirbsd/src/lib/libssl/src/crypto/bio/
Dbss_bio.c527 size_t new_size = num; in bio_ctrl() local
529 if (b->size != new_size) in bio_ctrl()
536 b->size = new_size; in bio_ctrl()
/mirbsd/src/usr.sbin/httpd/src/main/
Dalloc.c1205 int new_size = (arr->nalloc <= 0) ? 1 : arr->nalloc * 2; local
1208 new_data = ap_pcalloc(arr->pool, arr->elt_size * new_size);
1212 arr->nalloc = new_size;
1224 int new_size = (dst->nalloc <= 0) ? 1 : dst->nalloc * 2; local
1227 while (dst->nelts + src->nelts > new_size)
1228 new_size *= 2;
1230 new_data = ap_pcalloc(dst->pool, elt_size * new_size);
1234 dst->nalloc = new_size;
/mirbsd/src/gnu/usr.bin/binutils/ld/
Dlexsup.c1359 bfd_size_type new_size; in parse_args() local
1361 new_size = strtoul (optarg, NULL, 0); in parse_args()
1362 if (new_size) in parse_args()
1363 config.hash_table_size = new_size; in parse_args()
/mirbsd/src/gnu/usr.bin/binutils/ld/emultempl/
Dxtensaelf.em536 size_t new_size;
538 new_size = deps->size * 2;
539 if (new_size == 0)
540 new_size = 20;
542 new_sections = xmalloc (sizeof (asection *) * new_size);
543 memset (new_sections, 0, sizeof (asection *) * new_size);
551 deps->size = new_size;
/mirbsd/src/sbin/disklabel/
Deditor.c791 u_int32_t new_offset, new_size; in next_offset() local
825 new_size = 0; in next_offset()
827 if (chunks[i].stop - chunks[i].start > new_size) { in next_offset()
828 new_size = chunks[i].stop - chunks[i].start; in next_offset()
833 *sizep = new_size; in next_offset()
/mirbsd/src/gnu/usr.bin/binutils/gas/config/
Dobj-coff.c1598 bfd_vma new_size; in coff_frob_section() local
1601 new_size = (size + mask) & ~mask; in coff_frob_section()
1602 bfd_set_section_size (stdoutput, sec, new_size); in coff_frob_section()
1611 fragp->fr_offset += new_size - size; in coff_frob_section()

12