Lines Matching refs:alloc_buf
200 void *alloc_buf; in memalign() local
219 alloc_buf = malloc_unlocked(alloc_size, 1); in memalign()
222 if (alloc_buf == NULL) in memalign()
224 fr = (uintptr_t)alloc_buf; in memalign()
228 if (fr == (uintptr_t)alloc_buf) in memalign()
229 return (alloc_buf); in memalign()
231 if ((fr - (uintptr_t)alloc_buf) <= HEADSZ) { in memalign()
238 free(alloc_buf); in memalign()
245 alloc_buf = malloc_unlocked(alloc_size, 1); in memalign()
248 if (alloc_buf == NULL) in memalign()
250 fr = (uintptr_t)alloc_buf; in memalign()
253 if (fr == (uintptr_t)alloc_buf) in memalign()
254 return (alloc_buf); in memalign()
255 if ((fr - (uintptr_t)alloc_buf) <= HEADSZ) { 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()
286 free(alloc_buf); in memalign()