10 try to determine if the filesystem supports large files
12 static int large_file_support(const char *path)
18 fd = open(path, O_RDWR|O_CREAT, 0600);
21 /* have to assume large files are OK */
24 ret = pread(fd, &c, 1, ((unsigned long long)1)<<32);
29 int main(int argc, const char *argv[])
31 int s = large_file_support(argv[1]);
32 printf("sizeof(off_t)=%d s=%d\n", sizeof(off_t), s);