mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-01 18:22:27 +00:00
Simplify memory manager
This commit is contained in:
parent
5a9a08d1cf
commit
01587de761
40 changed files with 451 additions and 311 deletions
|
@ -75,7 +75,7 @@ TEST(sigbus, test) {
|
|||
|
||||
// map two pages of the file into memory
|
||||
char *map;
|
||||
long pagesz = getauxval(AT_PAGESZ);
|
||||
long pagesz = getpagesize();
|
||||
ASSERT_NE(MAP_FAILED,
|
||||
(map = mmap(0, pagesz * 2, PROT_READ, MAP_PRIVATE, 3, 0)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue