FILEOFFSETBITS
FILEOFFSETBITS is a macro concept used in some C libraries and kernel headers to control the width of file offsets, effectively choosing between 32-bit and 64-bit offsets. In practice, the commonly used form is _FILE_OFFSET_BITS, which, when defined before including standard headers, switches the offset type used by the C library from 32-bit to 64-bit. This enables large-file support (LFS) on systems where 32-bit offsets would limit file sizes to 2 GiB.
How it works: on 32-bit systems, defining _FILE_OFFSET_BITS as 64 causes types such as off_t to become
Usage notes: to enable large-file support in user-space code, place a preprocessor directive such as #define
Variants and naming: the exact macro name can vary by library or platform, with FILE_OFFSET_BITS and FILEOFFSETBITS