Re: Processing files larger than 2.2GB.
- From: Jan Panteltje <pNaonStpealmtje@xxxxxxxxx>
- Date: Sat, 19 Jan 2008 11:08:14 GMT
On a sunny day (Sat, 19 Jan 2008 02:37:11 -0800 (PST)) it happened
teuniz@xxxxxxxxx wrote in
<50c7ac32-dcf3-43b1-a39f-09a36e8eeecd@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
I always used the following functions to process files:
fopen()
fclose()
fseek()
ftell()
fwrite()
fread()
fputc()
fgetc()
The limitation of (at least some of) these functions is the maximum
filesize of 2^31 bytes.
So, to solve this I use:
fopen64()
fseeko64()
ftello64()
But for the other functions I can't find theire largefile equivalents.
Can I safely assume that they are compatibel?
You should read libc.info, possibly on your system in
/usr/share/info/libc.info
It describes how the 32 bit interface is automatically replaced by the
64 bit one if you compile with the correct flags, like
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
It also describes all those libc functions in detail.
Unfortunately, I can't find manpages for fopen64(), fseeko64() and.
ftello64();
Where can I find more information about this matter?
- References:
- Processing files larger than 2.2GB.
- From: teuniz
- Processing files larger than 2.2GB.
- Prev by Date: Processing files larger than 2.2GB.
- Next by Date: gtk in cygwin
- Previous by thread: Processing files larger than 2.2GB.
- Next by thread: gtk in cygwin
- Index(es):
Relevant Pages
|