off_t lseek(int fildes, off_t offset, int whence);
off64_t lseek64(int fildes, off64_t offset, int whence);
- If whence is SEEK_SET, the offset is set to offset bytes.
- If whence is SEEK_CUR, the offset is set to its current value plus offset bytes.
- If whence is SEEK_END, the offset is set to the size of the file plus offset bytes.
Some devices cannot seek. The value of the file pointer associated with a non-seeking device is undefined.
Is the file descriptor of an open file.
Specifies the number of bytes to offset the file pointer from a specified file origin.
Specifies the location from which to start seeking.
fildes is not a valid file descriptor.
whence is not a proper value (SEEK_SET, SEEK_CUR, or SEEK_END), or the resulting file offset would be invalid.
fildes is associated with a directory.
The resulting file offset would be a value which cannot be represented correctly in an object of type off_t.
fildes is associated with a pipe or FIFO.
When performing I/O to text mode files, the return value from
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.1 patch 1 Documentation Build 2.