Changes the current offset in an open file.
Item | Description |
---|---|
fp | Points to a file structure returned by the fp_open kernel service. |
offset | Specifies the number of bytes (positive or negative) to move the file pointer. |
whence | Indicates how to use the offset value:
|
The fp_lseek and fp_llseek kernel services are internal interfaces to the function provided by the lseek and llseek subroutines.
The fp_lseek and fp_llseek kernel services can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates a successful operation. |
ERRNO | Returns an error number from the /usr/include/sys/errno.h file on failure. |