Redhat7.1 supports large file(>2GB), but you have to add -D_FILE_OFFSET_BITS=64 to gcc The following is a very simple program: include <sys/types.h> #include <stdio.h> #include <dirent.h> int main()
Redhat7.1 supports large file(>2GB), but you have to add -D_FILE_OFFSET_BITS=64 to gcc The following is a very simple program: include <sys/types.h> #include <stdio.h> #include <dirent.h> int main()
Your program has a bug in it. ;) When compiled with -D_FILE_OFFSET_BITS=64 you need to change the line: printf("inode:%d and d_name:%s\n", dent->d_ino, dent->d_name); ^^ to: printf("inode:%lld and d
Redhat7.1 supports large file(>2GB), but you have to add -D_FILE_OFFSET_BITS=64 to gcc The following is a very simple program: include <sys/types.h> #include <stdio.h> #include <dirent.h> int main()
Redhat7.1 supports large file(>2GB), but you have to add -D_FILE_OFFSET_BITS=64 to gcc The following is a very simple program: include <sys/types.h> #include <stdio.h> #include <dirent.h> int main()
Your program has a bug in it. ;) When compiled with -D_FILE_OFFSET_BITS=64 you need to change the line: printf("inode:%d and d_name:%s\n", dent->d_ino, dent->d_name); ^^ to: printf("inode:%lld and d