Implement fs::sync (Linux/POSIX)

This commit is contained in:
Nekotekina 2021-02-23 13:09:20 +03:00
parent 014846cf31
commit 090a769bf6
3 changed files with 14 additions and 0 deletions

View file

@ -193,6 +193,9 @@ namespace fs
// Set file access/modification time
bool utime(const std::string& path, s64 atime, s64 mtime);
// Synchronize filesystems (TODO)
void sync();
class file final
{
std::unique_ptr<file_base> m_file;