Re: Large File Support Standards

From: QNils_O=2E_Sel=E5sdal=22?= (NOS_at_Utel.no)
Date: 08/31/04


Date: Tue, 31 Aug 2004 13:50:21 +0200

Michael B Allen wrote:
> On Linux the macros -D_FILE_OFFSET_BITS=64 is required to trigger 64bit
> off_t. But what does -D_LARGEFILE_SOURCE do? It doesn't need to be defined
> on my system to trigger 64but off_t and unlike _FILE_OFFSET_BITS it is
> not defined in the code.
>
> Also, if I need to conditionally compile something based on 64bit
> off_t would I check for _FILE_OFFSET_BITS, or _FILE_OFFSET_BITS > 64,
> or .. what?

http://www.suse.de/~aj/linux_lfs.html
might be helpful.