6 #include "posix-compat.h"
10 #define ACTUAL ((void *) 0x10000000)
17 printf ("(mmap-unmap) begin\n");
19 fd = open ("sample.txt");
22 printf ("(mmap-unmap) open() failed\n");
26 if (!mmap (fd, ACTUAL, strlen (sample)))
28 printf ("(mmap-unmap) mmap() failed\n");
32 munmap (ACTUAL, strlen (sample));
34 printf ("(mmap-unmap) FAIL: unmapped memory is readable (%d)\n",
38 printf ("(mmap-unmap) end\n");