__USE_FILE_OFFSET64 vs. _FILE_OFFSET_BITS=64
I am trying to maintain code that compiles on lots of different systems. I've seen a dozen different ways of asking for lseek that takes 64-bits. Some systems use lseek64 , some use lseeko , some require that you define _FILE_OFFSET_BITS=64 , and now I just found a new one that requires that you define __USE_FILE_OFFSET64 . Is there any standard to all of this? Sergey Vlasov There are getconf values in IEEE Std 1003.1-2004 (and a newer set in IEEE Std 1003.1-2008 ; see also the EXAMPLES section in those documents). Actual compiler options (which might not even be defines) are not specified.