Implement flush()

This commit is contained in:
Sebastian Messmer 2014-11-21 01:11:24 +01:00
parent 193b2b1b88
commit 74cf914f1e
2 changed files with 5 additions and 1 deletions

View File

@ -19,10 +19,13 @@ CryOpenFile::CryOpenFile(const CryDevice *device, const bf::path &path, int flag
}
CryOpenFile::~CryOpenFile() {
int retval = close(_descriptor);
int retval = ::close(_descriptor);
CHECK_RETVAL(retval);
}
void CryOpenFile::flush() {
}
void CryOpenFile::stat(struct ::stat *result) const {
int retval = ::fstat(_descriptor, result);
CHECK_RETVAL(retval);

View File

@ -17,6 +17,7 @@ public:
void truncate(off_t size) const override;
int read(void *buf, size_t count, off_t offset) override;
void write(const void *buf, size_t count, off_t offset) override;
void flush() override;
void fsync() override;
void fdatasync() override;