|
@ -8,7 +8,7 @@ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
#if defined(LIBC_SCCS) && !defined(lint) |
|
|
static char rcsid[] = "$OpenBSD: malloc.c,v 1.47 2002/02/16 21:27:24 millert Exp $"; |
|
|
|
|
|
|
|
|
static char rcsid[] = "$OpenBSD: malloc.c,v 1.48 2002/05/27 03:13:23 deraadt Exp $"; |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
#endif /* LIBC_SCCS and not lint */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -186,10 +186,10 @@ static int fdzero; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/* Set when initialization has been done */ |
|
|
/* Set when initialization has been done */ |
|
|
static unsigned malloc_started; |
|
|
|
|
|
|
|
|
static unsigned int malloc_started; |
|
|
|
|
|
|
|
|
/* Number of free pages we cache */ |
|
|
/* Number of free pages we cache */ |
|
|
static unsigned malloc_cache = 16; |
|
|
|
|
|
|
|
|
static unsigned int malloc_cache = 16; |
|
|
|
|
|
|
|
|
/* The offset from pagenumber to index into the page directory */ |
|
|
/* The offset from pagenumber to index into the page directory */ |
|
|
static u_long malloc_origo; |
|
|
static u_long malloc_origo; |
|
|