size_t i;
int fd[2];
+#ifndef PINTOS
+ printf ("Sorry, this test won't work on POSIX,\n"
+ "because POSIX will accept overlapping mmaps.\n");
+ abort ();
+#endif
+
printf ("(mmap-overlap) begin\n");
for (i = 0; i < 2; i++)
printf ("(mmap-overlap) open() failed\n");
return 1;
}
- if (!mmap (fd[i], start, 8192))
+ if (mmap (fd[i], start) == MAP_FAILED)
{
if (i == 1)
return 0;