Lines Matching refs:header

68  *		   user.  It has a 3 word header. (See description
71 * requested. It has only a 1 word header, pointing
75 * has a 1 word header, as does 2.
101 * malloc. This block contains a header and ?????? small blocks.
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;
201 struct header *hd;
234 * address is not sufficient to hold 'header' and hence we
281 hd = (struct header *)((char *)fr - minhead);
283 hd->nextblk = ((struct header *)((char *)alloc_buf - minhead))->nextblk;
284 ((struct header *)((char *)alloc_buf - minhead))->nextblk = SETBUSY(hd);
311 struct header *blk;
317 arena[1].nextblk = (struct header *)BUSY;
318 arena[0].nextblk = (struct header *)BUSY;
366 * Note that this uses the absolute min header size (MINHEAD)
397 CLRSMAL(lblk->header.nextfree)) ==
415 lblk->header.holder = (struct holdblk *)SETALL(holdblk);
437 lblk->header.holder = (struct holdblk *)SETALL(newhold);
441 assert(((struct holdblk *)CLRALL(lblk->header.holder))->blksz >=
449 struct header *newblk; /* used for creating a block */
469 struct header *next; /* following block */
470 struct header *nextnext; /* block after next */
501 struct header *newend; /* new end of arena */
513 if ((newblk = (struct header *)sbrk(0)) !=
514 (struct header *)((char *)arenaend + HEADSZ)) {
530 newend = (struct header *)((char *)newblk + nget
561 (struct header *)((char *)arenaend+nget);
581 newend = (struct header *)
590 struct header *nblk; /* next block */
607 newblk = (struct header *)((char *)blk + nb);
631 * input - ptr-1 contains the block header.
632 * If the header points forward, we have a normal
634 * if the header points backward, we have a small
660 if (TESTSMAL(((struct header *)((char *)ptr - MINHEAD))->nextblk)) {
662 ssize_t offset; /* choice of header lists */
665 assert((struct header *)lblk < arenaend);
666 assert((struct header *)lblk > arena);
668 holdblk = lblk->header.holder;
673 lblk->header.nextfree = SETSMAL(holdblk->lfreeq);
690 struct header *blk; /* real start of block */
691 struct header *next; /* next = blk->nextblk */
692 struct header *nextnext; /* block after next */
694 blk = (struct header *)((char *)ptr - minhead);
739 struct header *blk; /* block ptr is contained in */
743 struct header *next; /* block after blk */
754 header.holder)) {
770 CLRALL(lblk->header.holder))->blksz;
776 blk = (struct header *)((char *)ptr - minhead);
807 struct header *newblk; /* remainder */
814 newblk = (struct header *)((char *)blk +
968 struct header *blk, *next; /* ptr to ordinary blocks */
1058 lblk = CLRSMAL(lblk->header.nextfree);
1099 struct header *blk, *prev, *next; /* ptr to ordinary blocks */
1109 blk = (struct header *)CLRALL(blk->nextblk);
1110 next = (struct header *)CLRALL(blk->nextblk);
1115 assert(((uintptr_t)((struct header *)blk->nextblk) &
1123 assert(((uintptr_t)((struct header *)blk->nextfree) &
1125 assert(((uintptr_t)((struct header *)blk->prevfree) &