lseek64
lseek64 is a Unix-like system call wrapper that repositions the file offset of an open file descriptor using a 64-bit offset. It is designed to support large files whose sizes exceed 2 gigabytes.
Prototype (C): off64_t lseek64(int fd, off64_t offset, int whence); Offsets are interpreted according to whence (SEEK_SET,
On success, it returns the resulting offset from the beginning of the file. On error, it returns
In Linux, lseek64 provides 64-bit offsets for 32-bit applications; on 64-bit systems it is typically equivalent
Related concepts include lseek, which uses the standard offset type, and fseeko/ftello, which use size-related types