Lines Matching refs:header

116 static struct header arena[4] = {
130 static struct header *arenaend; /* ptr to block marking high end of arena */
131 static struct header *lastblk; /* the highest block in the arena */
155 register struct header *p; in checkq()
201 struct header *hd; in memalign()
281 hd = (struct header *)((char *)fr - minhead); in memalign()
283 hd->nextblk = ((struct header *)((char *)alloc_buf - minhead))->nextblk; in memalign()
284 ((struct header *)((char *)alloc_buf - minhead))->nextblk = SETBUSY(hd); in memalign()
311 struct header *blk; in malloc_unlocked()
317 arena[1].nextblk = (struct header *)BUSY; in malloc_unlocked()
318 arena[0].nextblk = (struct header *)BUSY; in malloc_unlocked()
397 CLRSMAL(lblk->header.nextfree)) == in malloc_unlocked()
415 lblk->header.holder = (struct holdblk *)SETALL(holdblk); in malloc_unlocked()
437 lblk->header.holder = (struct holdblk *)SETALL(newhold); in malloc_unlocked()
441 assert(((struct holdblk *)CLRALL(lblk->header.holder))->blksz >= in malloc_unlocked()
449 struct header *newblk; /* used for creating a block */ in malloc_unlocked()
469 struct header *next; /* following block */ in malloc_unlocked()
470 struct header *nextnext; /* block after next */ in malloc_unlocked()
501 struct header *newend; /* new end of arena */ in malloc_unlocked()
513 if ((newblk = (struct header *)sbrk(0)) != in malloc_unlocked()
514 (struct header *)((char *)arenaend + HEADSZ)) { in malloc_unlocked()
530 newend = (struct header *)((char *)newblk + nget in malloc_unlocked()
561 (struct header *)((char *)arenaend+nget); in malloc_unlocked()
581 newend = (struct header *) in malloc_unlocked()
590 struct header *nblk; /* next block */ in malloc_unlocked()
607 newblk = (struct header *)((char *)blk + nb); in malloc_unlocked()
660 if (TESTSMAL(((struct header *)((char *)ptr - MINHEAD))->nextblk)) { in free_unlocked()
665 assert((struct header *)lblk < arenaend); in free_unlocked()
666 assert((struct header *)lblk > arena); in free_unlocked()
668 holdblk = lblk->header.holder; in free_unlocked()
673 lblk->header.nextfree = SETSMAL(holdblk->lfreeq); in free_unlocked()
690 struct header *blk; /* real start of block */ in free_unlocked()
691 struct header *next; /* next = blk->nextblk */ in free_unlocked()
692 struct header *nextnext; /* block after next */ in free_unlocked()
694 blk = (struct header *)((char *)ptr - minhead); in free_unlocked()
739 struct header *blk; /* block ptr is contained in */ in realloc_unlocked()
743 struct header *next; /* block after blk */ in realloc_unlocked()
754 header.holder)) { in realloc_unlocked()
770 CLRALL(lblk->header.holder))->blksz; in realloc_unlocked()
776 blk = (struct header *)((char *)ptr - minhead); in realloc_unlocked()
807 struct header *newblk; /* remainder */ in realloc_unlocked()
814 newblk = (struct header *)((char *)blk + in realloc_unlocked()
968 struct header *blk, *next; /* ptr to ordinary blocks */ in mallinfo()
1058 lblk = CLRSMAL(lblk->header.nextfree); in freespace()
1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */ in check_arena()
1109 blk = (struct header *)CLRALL(blk->nextblk); in check_arena()
1110 next = (struct header *)CLRALL(blk->nextblk); in check_arena()
1115 assert(((uintptr_t)((struct header *)blk->nextblk) & in check_arena()
1123 assert(((uintptr_t)((struct header *)blk->nextfree) & in check_arena()
1125 assert(((uintptr_t)((struct header *)blk->prevfree) & in check_arena()