Base for UNIX file system implementations. More...
#include <ufs_file_base.h>
Public Member Functions | |
offset_type | size () |
Returns size of the file. | |
void | set_size (offset_type newsize) |
Changes the size of the file. | |
void | lock () |
Locks file for reading and writing (acquires a lock in the file system). | |
const char * | io_type () const |
Identifies the type of I/O implementation. | |
void | remove () |
Protected Member Functions | |
ufs_file_base (const std::string &filename, int mode) | |
offset_type | _size () |
void | close () |
Protected Attributes | |
mutex | fd_mutex |
int | file_des |
int | mode_ |
const std::string | filename |
Base for UNIX file system implementations.
__STXXL_BEGIN_NAMESPACE const char * ufs_file_base::io_type | ( | ) | const [virtual] |
Identifies the type of I/O implementation.
Reimplemented from file.
void ufs_file_base::lock | ( | ) | [virtual] |
Locks file for reading and writing (acquires a lock in the file system).
Implements file.
void ufs_file_base::set_size | ( | offset_type | newsize | ) | [virtual] |
file::offset_type ufs_file_base::size | ( | ) | [virtual] |