This commit is contained in:
Sebastian Messmer 2014-11-25 18:05:30 +01:00
parent 1197990539
commit 62b0d0fc08

View File

@ -18,8 +18,8 @@ public:
virtual void closeFile(int descriptor) = 0; virtual void closeFile(int descriptor) = 0;
virtual void lstat(const boost::filesystem::path &path, struct ::stat *stbuf) = 0; virtual void lstat(const boost::filesystem::path &path, struct ::stat *stbuf) = 0;
virtual void fstat(int descriptor, struct ::stat *stbuf) = 0; virtual void fstat(int descriptor, struct ::stat *stbuf) = 0;
//TODO Unit-Tests for all functions below
virtual void truncate(const boost::filesystem::path &path, off_t size) = 0; virtual void truncate(const boost::filesystem::path &path, off_t size) = 0;
//TODO Unit-Tests for all functions below
virtual void ftruncate(int descriptor, off_t size) = 0; virtual void ftruncate(int descriptor, off_t size) = 0;
virtual int read(int descriptor, void *buf, size_t count, off_t offset) = 0; virtual int read(int descriptor, void *buf, size_t count, off_t offset) = 0;
virtual void write(int descriptor, const void *buf, size_t count, off_t offset) = 0; virtual void write(int descriptor, const void *buf, size_t count, off_t offset) = 0;