summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorRon Alder <alder@lineo.com>2000-06-13 21:32:34 +0000
committerRon Alder <alder@lineo.com>2000-06-13 21:32:34 +0000
commitbc5ac6bc3d6454b1a3191f3dd7e5e9218b591efd (patch)
tree22a053052f2a036148be2e7049749a2608bd2524 /libc
parentfbd5e30d8783e0a7ebabdc1b0110c285504c0bbe (diff)
Fixed the parameters to mmap in malloc.
malloc now works, but wastes alot of memory with the minimum amount of memory used for each allocation being 4k.
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/malloc/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/alloc.c b/libc/stdlib/malloc/alloc.c
index b92cb7c69..5282c140a 100644
--- a/libc/stdlib/malloc/alloc.c
+++ b/libc/stdlib/malloc/alloc.c
@@ -62,7 +62,7 @@ void *
malloc(size_t len)
{
void * result = mmap((void *)0, len, PROT_READ | PROT_WRITE,
- MAP_SHARED | MAP_ANONYMOUS, 0, 0);
+ MAP_PRIVATE | MAP_ANONYMOUS, 0, 0);
if (result == (void*)-1)
return 0;