Lines Matching refs:op

98 	union overhead *op;  in malloc()  local
109 op = sbrk(0); in malloc()
110 n = pagesz - sizeof (*op) - ((uintptr_t)op & (pagesz - 1)); in malloc()
123 op = sbrk(0); in malloc()
124 sbrk_adjust = (uintptr_t)(op + 1) & (pagesz - 1); in malloc()
141 if (nbytes <= (n = pagesz - sizeof (*op))) { in malloc()
144 n = -(ssize_t)(sizeof (*op)); in malloc()
159 if ((op = nextf[bucket]) == NULL) { in malloc()
161 if ((op = nextf[bucket]) == NULL) in malloc()
165 nextf[bucket] = op->ov_next; in malloc()
166 op->ov_magic = MAGIC; in malloc()
167 op->ov_index = (uchar_t)bucket; in malloc()
168 return (op + 1); in malloc()
177 union overhead *op; in morecore() local
200 op = sbrk(0); in morecore()
204 if (op != sbrk(0)) in morecore()
213 op = sbrk(amt); in morecore()
215 if (op == (union overhead *)-1) in morecore()
218 op = (union overhead *)((caddr_t)op - sbrk_adjust); in morecore()
223 nextf[bucket] = op; in morecore()
226 op->ov_next = (union overhead *)((caddr_t)op + sz); in morecore()
228 op = (union overhead *)((caddr_t)op + sz); in morecore()
236 union overhead *op; in free() local
241 op = (union overhead *)((caddr_t)cp - sizeof (union overhead)); in free()
242 if (op->ov_magic != MAGIC) in free()
244 size = op->ov_index; in free()
245 op->ov_next = nextf[size]; /* also clobbers ov_magic */ in free()
246 nextf[size] = op; in free()
267 union overhead *op; in realloc() local
274 op = (union overhead *)((caddr_t)cp - sizeof (union overhead)); in realloc()
275 if (op->ov_magic == MAGIC) { in realloc()
277 i = op->ov_index; in realloc()
289 if ((i = findbucket(op, 1)) < 0 && in realloc()
290 (i = findbucket(op, realloc_srchlen)) < 0) { in realloc()
298 onb -= sizeof (*op); in realloc()
300 onb += pagesz - sizeof (*op); in realloc()
307 sz -= sizeof (*op); in realloc()
309 sz += pagesz - sizeof (*op); in realloc()