6 #include "posix-compat.h"
10 #define ACTUAL ((void *) 0x10000000)
18 printf ("(mmap-unmap) begin\n");
20 fd = open ("sample.txt");
23 printf ("(mmap-unmap) open() failed\n");
27 map = mmap (fd, ACTUAL);
28 if (map == MAP_FAILED)
30 printf ("(mmap-unmap) mmap() failed\n");
36 printf ("(mmap-unmap) FAIL: unmapped memory is readable (%d)\n",
40 printf ("(mmap-unmap) end\n");