Function riot_sys::vfs_lseek

source ·
pub unsafe extern "C" fn vfs_lseek(
    fd: c_int,
    off: off_t,
    whence: c_int
) -> off_t
Expand description

@brief Seek to position in file

@p whence determines the function of the seek and should be set to one of the following values:

  • @c SEEK_SET: Seek to absolute offset @p off
  • @c SEEK_CUR: Seek to current location + @p off
  • @c SEEK_END: Seek to end of file + @p off

@param[in] fd fd number obtained from vfs_open @param[in] off seek offset @param[in] whence determines the seek method, see detailed description

@return the new seek location in the file on success @return <0 on error