14 #define _LARGEFILE64_SOURCE
18 #include <fmt/format.h>
25 typedef off_t off64_t;
39 for (fileNum = 1; fileNum <
argc; fileNum++) {
40 uLong adlerCksum = adler32(0,
nullptr, 0);
43 int myFD = open(
argv[fileNum], O_RDONLY | O_LARGEFILE);
45 std::cout << basename(
argv[0]) <<
": failed to open file " <<
argv[fileNum] <<
".\n";
49 lseek(myFD, 0, SEEK_SET);
53 adlerCksum = adler32(adlerCksum,
buffer.get(), readSize);