9.8 seek

off_t seek(int fd, off_t offset, int whence);

This syscall repositions the file offset of the passed file description to the passed offset according to the directive whence as follows:

This syscall returns the resulting offset, or -1 on failure. errno is to be set to: