Large Files
In order to be able to work with large (>2Gb) files under Linux any program needs the following:
- The Linux kernel 2.4.x.
- The C system library glibc 2.x.
In principle, having the above kernel and glibc should allow C programs to work with LFS.
Before recompiling any C programs make sure that:
- the program #includes <stdio.h> and <unistd.h>
- any variables used to hold the file offset values are of the type off_t or fpos_t (neither int nor long)
- the program uses fseeko and ftello instead of fseek and ftell
- the program is compiled with gcc -D_GNU_SOURCE -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
For example the default unzip program supplied with Red Hat 3 & 4 and
CentOS 3 & 4 do not seem to be compiled with these flags
HowToUnzipLargeFiles
REFERRERS
FileSystem
TarUnzip
There are no comments on this page. [Add comment]