open(2) file descriptors
More...
#include <sys.h>
|
| File (File &&)=default |
|
| File (const File &)=delete |
|
| File (const std::string &pathname, int flags, mode_t mode=0777) |
| Wrapper around open(2)
|
|
| ~File () |
| The destructor closes the file descriptor, but does not check errors on close().
|
|
File & | operator= (const File &)=delete |
|
File & | operator= (File &&)=default |
|
| NamedFileDescriptor (int fd, const std::string &pathname) |
|
| NamedFileDescriptor (NamedFileDescriptor &&) |
|
| NamedFileDescriptor (int fd, const std::string &pathname) |
|
| NamedFileDescriptor (NamedFileDescriptor &&) |
|
NamedFileDescriptor & | operator= (NamedFileDescriptor &&) |
|
virtual void | throw_error (const char *desc) |
| Throw an exception based on errno and the given message.
|
|
const std::string & | name () const |
| Return the file pathname.
|
|
| FileDescriptor () |
|
| FileDescriptor (FileDescriptor &&o) |
|
| FileDescriptor (int fd) |
|
virtual | ~FileDescriptor () |
|
virtual void | throw_error (const char *desc) |
| Throw an exception based on errno and the given message.
|
|
void | close () |
|
void | fstat (struct stat &st) |
|
void | fchmod (mode_t mode) |
|
size_t | write (const void *buf, size_t count) |
|
void | write_all (const void *buf, size_t count) |
| Write all the data in buf, retrying partial writes.
|
|
MMap | mmap (size_t length, int prot, int flags, off_t offset=0) |
|
| operator int () const |
|
◆ File() [1/3]
ept::sys::File::File |
( |
File && |
| ) |
|
|
default |
◆ File() [2/3]
ept::sys::File::File |
( |
const File & |
| ) |
|
|
delete |
◆ File() [3/3]
ept::sys::File::File |
( |
const std::string & |
pathname, |
|
|
int |
flags, |
|
|
mode_t |
mode = 0777 |
|
) |
| |
◆ ~File()
ept::sys::File::~File |
( |
| ) |
|
◆ mkstemp()
File ept::sys::File::mkstemp |
( |
const std::string & |
prefix | ) |
|
|
static |
◆ NamedFileDescriptor() [1/2]
ept::sys::NamedFileDescriptor::NamedFileDescriptor |
( |
int |
fd, |
|
|
const std::string & |
pathname |
|
) |
| |
◆ NamedFileDescriptor() [2/2]
◆ operator=() [1/2]
File & ept::sys::File::operator= |
( |
const File & |
| ) |
|
|
delete |
◆ operator=() [2/2]
File & ept::sys::File::operator= |
( |
File && |
| ) |
|
|
default |
The documentation for this class was generated from the following files: