Home | History | Annotate | Download | only in libbsdmalloc

Lines Matching defs:malloc

1 /*	$NetBSD: malloc.c,v 1.11 2025/01/20 20:00:52 riastradh Exp $	*/
35 static char sccsid[] = "@(#)malloc.c 8.1 (Berkeley) 6/4/93";
37 __RCSID("$NetBSD: malloc.c,v 1.11 2025/01/20 20:00:52 riastradh Exp $");
42 * malloc.c (Caltech) 2/21/82
163 * might, depending on the implementation, result in another malloc()
178 malloc(size_t nbytes)
188 * First time malloc is called, setup page size and
344 * old malloc man page, it realloc's an already freed block. Usually
365 return (malloc(nbytes));
423 if ((res = malloc(nbytes)) == NULL) {
463 * mstats - print out statistics about malloc
497 * - calloc(n,m) = malloc(n*m) without overflow
500 * These must all be in the same compilation unit as malloc, realloc,
503 * built-in malloc implementation.
506 * already aligned by malloc on multiples of n. Larger alignment is
537 p = malloc(size < alignment ? alignment : size);
553 p = malloc(n);
569 p = malloc(size < alignment ? alignment : size);