Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
This commit is contained in:
Roland McGrath 1995-12-11 10:00:21 +00:00
parent 787e4db95c
commit 25b86c05c3
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* locale/error.c, locale/error.h: Files removed.

View File

@ -60,7 +60,8 @@ malloc (size_t n)
/* Insufficient space left; allocate another page. */
caddr_t page;
assert (n <= pagesize);
page = mmap (0, pagesize, PROT_READ|PROT_WRITE, MAP_ANON, _dl_zerofd, 0);
page = mmap (0, pagesize, PROT_READ|PROT_WRITE,
MAP_ANON|MAP_PRIVATE, _dl_zerofd, 0);
assert (page != (caddr_t) -1);
if (page != alloc_end)
alloc_ptr = page;

1
error.h Normal file
View File

@ -0,0 +1 @@
#include <misc/error.h>