7 #ifndef __GU_FDESC_HPP__
8 #define __GU_FDESC_HPP__
10 #include "gu_exception.hpp"
11 #include "gu_types.hpp"
34 int get()
const {
return fd_; }
35 const std::string& name()
const {
return name_; }
36 off_t size()
const {
return size_; }
40 void unlink()
const { ::unlink (name_.c_str()); }
44 std::string
const name_;
49 bool write_byte (off_t offset);
50 void write_file (off_t start = 0);
51 void prealloc (off_t start = 0);
53 void constructor_common();
Definition: gu_fdesc.hpp:18