Failing file stat() system call on files which are >2GB on most Unix (solaris, AIX, HP-UX, Linux) platforms and adding compilation flag as a solution, many more on 32-bit machines



File operations with stat() system call fails on files which are more of 2GB in size when we are on 32-bit systems.

We can overcome this by forcing all file access calls to use the 64 bit variants with following flag on compiler usage.

"gcc -D_FILE_OFFSET_BITS=64"
and offcource there are many multiple options to do it. 

http://users.suse.com/~aj/linux_lfs.html

No comments :

Post a Comment