3 #include "tests/sys_mman.h"
5 int main(int argc
, char **argv
)
9 if ((a1
= mmap((void *)0x200000, 4096, PROT_READ
|PROT_WRITE
, MAP_PRIVATE
|MAP_FIXED
|MAP_ANONYMOUS
, -1, 0)) == MAP_FAILED
)
15 if (munmap(a1
, 4096) < 0)
21 if (mmap((void *)0x100000, 4096, PROT_READ
|PROT_WRITE
, MAP_PRIVATE
|MAP_FIXED
|MAP_ANONYMOUS
, -1, 0) == MAP_FAILED
)
27 if (mmap((void *)0x100000, 4096, PROT_READ
|PROT_WRITE
, MAP_PRIVATE
|MAP_ANONYMOUS
, -1, 0) == MAP_FAILED
)