get_frameoffset64 (3) - Linux Manuals

get_frameoffset64: report or change the frame


get_frameoffset64, dirfile_alter_frameoffset64 --- report or change the frame offset of fields in a dirfile, with largefile support



#include <getdata.h>

off64_t get_frameoffset(DIRFILE *dirfile, int fragment_index);
int dirfile_alter_frameoffset64(DIRFILE *dirfile, off64_t offset, int fragment_index, int move);


These version of get_frameoffset(3) and dirfile_alter_frameoffset(3) use a 64-bit offset type, even if off_t is a 32-bit type. They are only available if the caller defines _LARGEFILE64_SOURCE before including getdata.h.

If off_t is a 64-bit type (i.e. if _FILE_OFFSET_BITS is defined to be 64), these function will be called get_frameoffset() and dirfile_alter_frameoffset(). Otherwise, get_frameoffset() and dirfile_alter_frameoffset() will be versions of these functions which use a 32-bit off_t.