Lines Matching refs:newp
3404 void *newp; /* chunk to return */ in libc_hidden_def() local
3457 newp = mremap_chunk (oldp, nb); in libc_hidden_def()
3458 if (newp) in libc_hidden_def()
3460 void *newmem = chunk2mem_tag (newp); in libc_hidden_def()
3485 newp = _int_realloc (ar_ptr, oldp, oldsize, nb); in libc_hidden_def()
3486 assert (!newp || chunk_is_mmapped (mem2chunk (newp)) || in libc_hidden_def()
3487 ar_ptr == arena_for_chunk (mem2chunk (newp))); in libc_hidden_def()
3489 return newp; in libc_hidden_def()
3494 newp = _int_realloc (ar_ptr, oldp, oldsize, nb); in libc_hidden_def()
3497 assert (!newp || chunk_is_mmapped (mem2chunk (newp)) || in libc_hidden_def()
3498 ar_ptr == arena_for_chunk (mem2chunk (newp))); in libc_hidden_def()
3500 if (newp == NULL) in libc_hidden_def()
3504 newp = __libc_malloc (bytes); in libc_hidden_def()
3505 if (newp != NULL) in libc_hidden_def()
3508 memcpy (newp, oldmem, sz); in libc_hidden_def()
3514 return newp; in libc_hidden_def()
4819 mchunkptr newp; /* chunk to return */ in _int_realloc() local
4847 newp = oldp; in _int_realloc()
4871 newp = oldp; in _int_realloc()
4882 newp = mem2chunk (newmem); in _int_realloc()
4883 newsize = chunksize (newp); in _int_realloc()
4888 if (newp == next) in _int_realloc()
4891 newp = oldp; in _int_realloc()
4901 check_inuse_chunk (av, newp); in _int_realloc()
4915 set_head_size (newp, newsize | (av != &main_arena ? NON_MAIN_ARENA : 0)); in _int_realloc()
4916 set_inuse_bit_at_offset (newp, newsize); in _int_realloc()
4920 remainder = chunk_at_offset (newp, nb); in _int_realloc()
4923 set_head_size (newp, nb | (av != &main_arena ? NON_MAIN_ARENA : 0)); in _int_realloc()
4931 check_inuse_chunk (av, newp); in _int_realloc()
4932 return tag_new_usable (chunk2mem (newp)); in _int_realloc()
4946 mchunkptr newp; /* chunk to return */ in _int_memalign() local
4989 newp = (mchunkptr) brk; in _int_memalign()
4996 set_prev_size (newp, prev_size (p) + leadsize); in _int_memalign()
4997 set_head (newp, newsize | IS_MMAPPED); in _int_memalign()
4998 return chunk2mem (newp); in _int_memalign()
5002 set_head (newp, newsize | PREV_INUSE | in _int_memalign()
5004 set_inuse_bit_at_offset (newp, newsize); in _int_memalign()
5007 p = newp; in _int_memalign()