3 #include "../lib/arc4.h"
8 #include "posix-compat.h"
11 #define ACTUAL ((void *) 0x10000000)
18 printf ("(mmap-close) begin\n");
20 fd = open ("sample.txt");
23 printf ("(mmap-close) open() failed\n");
27 if (!mmap (fd, ACTUAL, strlen (sample)))
29 printf ("(mmap-close) mmap() failed\n");
35 if (memcmp (ACTUAL, sample, strlen (sample)))
37 printf ("(mmap-close) read of mmap'd file reported bad data\n");
41 munmap (ACTUAL, strlen (sample));
44 printf ("(mmap-close) end\n");