3 #include "../lib/arc4.h"
8 #include "posix-compat.h"
11 #define ACTUAL ((void *) 0x10000000)
19 printf ("(mmap-close) begin\n");
21 fd = open ("sample.txt");
24 printf ("(mmap-close) open() failed\n");
28 map = mmap (fd, ACTUAL);
29 if (map == MAP_FAILED)
31 printf ("(mmap-close) mmap() failed\n");
37 if (memcmp (ACTUAL, sample, strlen (sample)))
39 printf ("(mmap-close) read of mmap'd file reported bad data\n");
46 printf ("(mmap-close) end\n");