6 #include "posix-compat.h"
13 char *start = (char *) 0x10000000;
18 printf ("Sorry, this test won't work on POSIX,\n"
19 "because POSIX will accept overlapping mmaps.\n");
23 printf ("(mmap-overlap) begin\n");
25 for (i = 0; i < 2; i++)
27 fd[i] = open ("zeros");
30 printf ("(mmap-overlap) open() failed\n");
33 if (mmap (fd[i], start) == MAP_FAILED)
39 printf ("(mmap-overlap) mmap() failed\n");
46 printf ("(mmap-overlap) fail: mmap of overlapped blocks succeeded\n");
49 printf ("(mmap-overlap) end\n");