X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e2680c4776709548e15f400af83ffe4a2cf5eb49..827b5fc241bd5cd1c65354d0566197196179ab84:/src/surf/FileImpl.hpp diff --git a/src/surf/FileImpl.hpp b/src/surf/FileImpl.hpp index eea45fccd2..98cb3433fa 100644 --- a/src/surf/FileImpl.hpp +++ b/src/surf/FileImpl.hpp @@ -26,22 +26,9 @@ public: void setPosition(sg_size_t size) { current_position_ = size; } void incrPosition(sg_size_t incr) { current_position_ += incr; } sg_size_t tell() { return current_position_; } - int seek(sg_offset_t offset, int origin) - { - switch (origin) { - case SEEK_SET: - current_position_ = offset; - return 0; - case SEEK_CUR: - current_position_ += offset; - return 0; - case SEEK_END: - current_position_ = size_ + offset; - return 0; - default: - return -1; - } - } + int seek(sg_offset_t offset, int origin); + int unlink(sg_host_t host); + void move(sg_host_t host, const char* fullpath); private: std::string path_;