Implement flush()
This commit is contained in:
parent
193b2b1b88
commit
74cf914f1e
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user