summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-15 13:23:33 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-15 13:23:33 +0000
commiteafdf1b819e2211d2dda91661b462640043d879e (patch)
treec6fe5a38f1367f43396f29e10ada3fd6843f3588 /libc/stdlib/malloc/malloc.c
parentc4c3071e279d769beb66f0d6fd0c073a4cbacb1c (diff)
Reduce dependancies -- don't use sysconf() internal to libc.
Diffstat (limited to 'libc/stdlib/malloc/malloc.c')
-rw-r--r--libc/stdlib/malloc/malloc.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index b959d932a..5131fb74a 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -134,45 +134,7 @@ int __malloc_initialized = -1;
#endif
/* guess pagesize */
-#ifndef M_PAGESIZE
-#ifdef _SC_PAGESIZE
-#ifndef _SC_PAGE_SIZE
-#define _SC_PAGE_SIZE _SC_PAGESIZE
-#endif
-#endif
-#ifdef _SC_PAGE_SIZE
-#define M_PAGESIZE sysconf(_SC_PAGE_SIZE)
-#else /* !_SC_PAGESIZE */
-#if defined(BSD) || defined(DGUX) || defined(HAVE_GETPAGESIZE)
-extern size_t getpagesize();
-
#define M_PAGESIZE getpagesize()
-#else /* !HAVE_GETPAGESIZE */
-#include <sys/param.h>
-#ifdef EXEC_PAGESIZE
-#define M_PAGESIZE EXEC_PAGESIZE
-#else /* !EXEC_PAGESIZE */
-#ifdef NBPG
-#ifndef CLSIZE
-#define M_PAGESIZE NBPG
-#else /* !CLSIZE */
-#define M_PAGESIZE (NBPG*CLSIZE)
-#endif /* CLSIZE */
-#else
-#ifdef NBPC
-#define M_PAGESIZE NBPC
-#else /* !NBPC */
-#ifdef PAGESIZE
-#define M_PAGESIZE PAGESIZE
-#else /* !PAGESIZE */
-#define M_PAGESIZE 4096
-#endif /* PAGESIZE */
-#endif /* NBPC */
-#endif /* NBPG */
-#endif /* EXEC_PAGESIZE */
-#endif /* HAVE_GETPAGESIZE */
-#endif /* _SC_PAGE_SIZE */
-#endif /* defined(M_PAGESIZE) */
/* HUNK MANAGER */