pub unsafe extern "C" fn vfs_readdir(
dirp: *mut vfs_DIR,
entry: *mut vfs_dirent_t,
) -> c_int
Expand description
@brief Read a single entry from the open directory dirp and advance the read position by one
@p entry will be populated with information about the next entry in the directory stream @p dirp
@attention Calling vfs_readdir on an uninitialized @c vfs_DIR is forbidden and may lead to file system corruption and random system failures.
@param[in] dirp pointer to open directory @param[out] entry directory entry information
@return 1 if @p entry was updated @return 0 if @p dirp has reached the end of the directory index @return <0 on error