Lines Matching defs:ptr
130 static struct header *arenaend; /* ptr to block marking high end of arena */
344 * space for an extra ptr so that an index
346 * ptr unused.
629 * free(ptr) - free block that user thinks starts at ptr
631 * input - ptr-1 contains the block header.
640 free(void *ptr)
643 free_unlocked(ptr);
648 * free_unlocked(ptr) - Do the real work for free()
652 free_unlocked(void *ptr)
658 if (ptr == NULL)
660 if (TESTSMAL(((struct header *)((char *)ptr - MINHEAD))->nextblk)) {
664 lblk = (struct lblk *)CLRBUSY((char *)ptr - MINHEAD);
694 blk = (struct header *)((char *)ptr - minhead);
716 * realloc(ptr, size) - give the user a block of size "size", with
717 * the contents pointed to by ptr. Free ptr.
721 realloc(void *ptr, size_t size)
726 retval = realloc_unlocked(ptr, size);
733 * realloc_unlocked(ptr) - Do the real work for realloc()
737 realloc_unlocked(void *ptr, size_t size)
739 struct header *blk; /* block ptr is contained in */
745 if (ptr == NULL)
749 free_unlocked(ptr);
753 if (TESTSMAL(((struct lblk *)((char *)ptr - MINHEAD))->
766 if ((char *)ptr != newptr) {
768 lblk = (struct lblk *)((char *)ptr - MINHEAD);
772 (void) memcpy(newptr, ptr, cpysize);
773 free_unlocked(ptr);
776 blk = (struct header *)((char *)ptr - minhead);
824 newptr = ptr;
831 (void) memcpy(newptr, ptr, cpysize);
832 free_unlocked(ptr);
968 struct header *blk, *next; /* ptr to ordinary blocks */
969 struct holdblk *hblk; /* ptr to holding blocks */
1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */