Rename read syscall, vfs_read and so to xxx_read_file
This commit is contained in:
@@ -164,8 +164,8 @@ int fatfs_describe (struct vfs_volume* volume, const char* path, struct desc* de
|
||||
return ST_OK;
|
||||
}
|
||||
|
||||
int fatfs_read (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size) {
|
||||
int fatfs_read_file (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size) {
|
||||
struct fatfs_ctx* fatfs_ctx = volume->udata;
|
||||
|
||||
FL_FILE* file = fl_fopen (fatfs_ctx, path, "wb+");
|
||||
@@ -181,8 +181,8 @@ int fatfs_read (struct vfs_volume* volume, const char* path, uint8_t* buffer, si
|
||||
return ST_OK;
|
||||
}
|
||||
|
||||
int fatfs_write (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size) {
|
||||
int fatfs_write_file (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size) {
|
||||
struct fatfs_ctx* fatfs_ctx = volume->udata;
|
||||
|
||||
FL_FILE* file = fl_fopen (fatfs_ctx, path, "wb+");
|
||||
|
||||
Reference in New Issue
Block a user