#include #include #include #include #include #include #include #include #include #define SIZE 20000 static void test(char *map, int fd, int line) { unsigned char buf1[SIZE], buf2[SIZE]; memcpy(buf1, map, SIZE); lseek(fd, 0, SEEK_SET); read(fd, buf2, SIZE); if (memcmp(buf1, buf2, SIZE) != 0) { int i; for (i=0;i