Wednesday, September 15, 2010

Large File Support in Linux for C/C++ operations

In a C/C++ application the file operations can be handled using the fcntl.h header file.


It provides operations for opening, writing to a file and many more. The size of every file is stored in a variable of type off_t. For 32-bit systems the maximum value for off_t is 231 thus limiting the maximal file size to 231 bytes (2 GiB). For 64 bit systems like x86-64 this maximum value is much greater and they have support for large files with size up to 263 bytes.

No comments:

Post a Comment