vfs,fat: add fsync to VFS interface, implement it for fatfs

This commit is contained in:
Ivan Grokhotkov
2017-10-17 14:00:01 +08:00
parent 90bf40587e
commit 502c3d0243
3 changed files with 36 additions and 0 deletions

View File

@@ -162,6 +162,10 @@ typedef struct
int (*ioctl_p)(void* ctx, int fd, int cmd, va_list args);
int (*ioctl)(int fd, int cmd, va_list args);
};
union {
int (*fsync_p)(void* ctx, int fd);
int (*fsync)(int fd);
};
} esp_vfs_t;