summaryrefslogtreecommitdiff
path: root/physmem/malloc-wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'physmem/malloc-wrap.c')
-rw-r--r--physmem/malloc-wrap.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/physmem/malloc-wrap.c b/physmem/malloc-wrap.c
index 5197941..9371b2d 100644
--- a/physmem/malloc-wrap.c
+++ b/physmem/malloc-wrap.c
@@ -1,4 +1,4 @@
-/* malloc-wrap.c: Doug Lea's malloc for the physical memory server.
+/* malloc-wrap.c - Doug Lea's malloc for the physical memory server.
Copyright (C) 2003 Free Software Foundation, Inc.
Written by Marcus Brinkmann.
@@ -34,7 +34,6 @@
#define __STD_C 1
#define LACKS_UNISTD_H
#define LACKS_SYS_PARAM_H
-#define LACKS_SYS_MMAN_H
#define LACKS_FCNTL_H
/* We want to use optimized versions of memset and memcpy. */
@@ -44,20 +43,11 @@
#define MORECORE(x) MORECORE_FAILURE
#define HAVE_MMAP 1
#define HAVE_MREMAP 0
-#define MUNMAP_FAILURE (-1)
#define MMAP_CLEARS 1
#define malloc_getpagesize l4_min_page_size ()
-#define mmap(addr, size, p, f, fd, o) (zalloc (size) ?: MUNMAP_FAILURE)
-#define munmap(addr, size) (zfree ((l4_word_t) addr, size), 0)
#define MMAP_AS_MORECORE_SIZE (16 * malloc_getpagesize)
#define DEFAULT_MMAP_THRESHOLD (4 * malloc_getpagesize)
-/* These values don't really matter in mmap emulation */
-#define MAP_PRIVATE 1
-#define MAP_ANONYMOUS 2
-#define PROT_READ 1
-#define PROT_WRITE 2
-
/* Suppress debug output in mstats(). */
#define fprintf(...)