18 #ifndef FOXXLL_IO_UFS_FILE_BASE_HEADER 19 #define FOXXLL_IO_UFS_FILE_BASE_HEADER 51 const
char *
io_type() const override;
63 #endif // !FOXXLL_IO_UFS_FILE_BASE_HEADER
Base for UNIX file system implementations.
void close_remove() final
close and remove file
request::offset_type offset_type
the offset of a request, also the size of the file
bool is_device_
is special device node
void set_size(offset_type newsize) final
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
bool is_device() const
return true if file is special device node
ufs_file_base(const std::string &filename, int mode)
const char * io_type() const override
void lock() final
Locks file for reading and writing (acquires a lock in the file system).
const std::string filename_
void _set_size(offset_type newsize)
void unlink()
unlink file without closing it.