Skip to content

Commit

Permalink
sys/vfs: Point user to simplified functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed May 16, 2022
1 parent df1c3ce commit 0aa4fd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/include/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ int vfs_open(const char *name, int flags, mode_t mode);
*
* @return number of bytes read on success
* @return <0 on error
*
* For simple cases of only a single read from a file, the @ref
* vfs_file_to_buffer function can be used.
*/
ssize_t vfs_read(int fd, void *dest, size_t count);

Expand All @@ -806,6 +809,9 @@ ssize_t vfs_read(int fd, void *dest, size_t count);
*
* @return number of bytes written on success
* @return <0 on error
*
* For simple cases of only a single write to a file, the @ref
* vfs_file_from_buffer function can be used.
*/
ssize_t vfs_write(int fd, const void *src, size_t count);

Expand Down

0 comments on commit 0aa4fd4

Please sign in to comment.