Lines Matching refs:size
52 size_t size; /* Space available for user */
60 size_t size; /* Total page size (incl. header) */
87 scribble(ulong_t *membgn, int pattern, size_t size)
89 size_t memsize = size / sizeof (ulong_t);
119 block->size += block2->size + HDR_BLOCK;
135 split(struct block *block, size_t size)
137 if (block->size > size + sizeof (struct block)) {
141 ((char *)block + HDR_BLOCK + size);
146 newblock->size = block->size - size - HDR_BLOCK;
147 block->size = size;
159 malloc(size_t size)
164 size = S_DROUND(size);
171 if ((block->status == FREE) && (block->size >= size))
180 size_t totsize = size + HDR_PAGE;
190 page->size = totpage;
194 block->size = totpage - HDR_PAGE;
198 split(block, size);
200 scribble((ulong_t *)&block->memstart, NEWMEM, block->size);
207 calloc(size_t num, size_t size)
211 num *= size;
219 realloc(void *ptr, size_t size)
226 return (malloc(size));
230 size = S_DROUND(size);
231 osize = block->size;
237 block->size += block->next->size + HDR_BLOCK;
241 if (size <= block->size) {
242 split(block, size);
244 if (block->size > osize)
246 (block->size - osize));
251 if ((newptr = malloc(size)) == NULL)
288 scribble((ulong_t *)&block->memstart, FREMEM, block->size);
295 lfree(void *ptr, size_t size)
315 page->size = bytes;
319 block->size = bytes - HDR_PAGE;