X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a18d9b180e14763a93c3e41555a3407510d73127..6cf6f6913a06a9b7e64923042e25049b529e5cdc:/src/surf/FileImpl.hpp?ds=sidebyside diff --git a/src/surf/FileImpl.hpp b/src/surf/FileImpl.hpp index eea45fccd2..0150b5cb74 100644 --- a/src/surf/FileImpl.hpp +++ b/src/surf/FileImpl.hpp @@ -26,22 +26,8 @@ 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); private: std::string path_;