Lines Matching refs:size

37   size_t size;                  /* Exact size requested by user.  */  member
58 flood (void *ptr, int val, size_t size) in flood() argument
61 while (size--) in flood()
86 if (((char *) &hdr[1])[hdr->size] != MAGICBYTE) in checkhdr()
181 flood (ptr, FREEFLOOD, hdr->size); in free_mcheck()
190 size_t size = *sizep; in malloc_mcheck_before() local
195 if (size > ~((size_t) 0) - (sizeof (struct hdr) + 1)) in malloc_mcheck_before()
202 *sizep = sizeof (struct hdr) + size + 1; in malloc_mcheck_before()
207 malloc_mcheck_after (void *mem, size_t size) in malloc_mcheck_after() argument
214 hdr->size = size; in malloc_mcheck_after()
218 ((char *) &hdr[1])[size] = MAGICBYTE; in malloc_mcheck_after()
219 flood ((void *) (hdr + 1), MALLOCFLOOD, size); in malloc_mcheck_after()
227 size_t slop, size = *sizep; in memalign_mcheck_before() local
232 *victimp = __debug_malloc (size); in memalign_mcheck_before()
241 if (size > ~((size_t) 0) - (slop + 1)) in memalign_mcheck_before()
248 *sizep = slop + size + 1; in memalign_mcheck_before()
253 memalign_mcheck_after (void *block, size_t alignment, size_t size) in memalign_mcheck_after() argument
265 hdr->size = size; in memalign_mcheck_after()
269 ((char *) &hdr[1])[size] = MAGICBYTE; in memalign_mcheck_after()
270 flood ((void *) (hdr + 1), MALLOCFLOOD, size); in memalign_mcheck_after()
278 size_t size = *sizep; in realloc_mcheck_before() local
283 *victimp = __debug_malloc (size); in realloc_mcheck_before()
288 if (size == 0) in realloc_mcheck_before()
295 if (size > ~((size_t) 0) - (sizeof (struct hdr) + 1)) in realloc_mcheck_before()
312 osize = hdr->size; in realloc_mcheck_before()
316 if (size < osize) in realloc_mcheck_before()
317 flood ((char *) ptr + size, FREEFLOOD, osize - size); in realloc_mcheck_before()
320 *sizep = sizeof (struct hdr) + size + 1; in realloc_mcheck_before()
325 realloc_mcheck_after (void *ptr, void *oldptr, size_t size, size_t osize) in realloc_mcheck_after() argument
336 hdr->size = size; in realloc_mcheck_after()
340 ((char *) &hdr[1])[size] = MAGICBYTE; in realloc_mcheck_after()
341 if (size > osize) in realloc_mcheck_after()
342 flood ((char *) (hdr + 1) + osize, MALLOCFLOOD, size - osize); in realloc_mcheck_after()
410 return (h - 1)->size; in mcheck_usable_size()