#include <file.h>
Public Types | |
using | value_type = T |
Types & Constants | |
enum class | type : type_t { unknown = 0 , not_set = 1 << 0 , char_device = 1 << 1 , block_device = 1 << 2 , tty = 1 << 3 , file = 1 << 4 , socket = 1 << 5 } |
using | type_t = unsigned int |
Public Member Functions | |
Constructors & Destructor | |
file_implementable (file_system &fs) | |
virtual | ~file_implementable () override |
Public Member Functions | |
value_type & | impl (void) const |
Public Member Functions | |
virtual int | close (void) override |
virtual int | ftruncate (off_t length) |
virtual int | fsync (void) |
virtual int | fstatvfs (struct statvfs *buf) |
class file_system & | get_file_system (void) |
Public Member Functions | |
virtual ssize_t | read (void *buf, std::size_t nbyte) |
virtual ssize_t | write (const void *buf, std::size_t nbyte) |
virtual ssize_t | writev (const iovec *iov, int iovcnt) |
int | fcntl (int cmd,...) |
virtual int | vfcntl (int cmd, std::va_list args) |
int | isatty (void) |
virtual int | fstat (struct stat *buf) |
virtual off_t | lseek (off_t offset, int whence) |
type_t | get_type (void) const |
file_descriptor_t | file_descriptor (void) const |
bool | is_opened (void) |
Protected Member Functions | |
Private Member Functions | |
void | file_descriptor (file_descriptor_t fildes) |
void | clear_file_descriptor (void) |
io * | alloc_file_descriptor (void) |
|
inherited |
using os::posix::file_implementable< T >::value_type = T |
|
stronginherited |
os::posix::file_implementable< T >::file_implementable | ( | file_system & | fs | ) |
|
overridevirtual |
|
protectedinherited |
|
inlineprotectedinherited |
|
overridevirtualinherited |
Reimplemented from os::posix::io.
Reimplemented in os::posix::file_lockable< T, L >.
|
inlineprotectedinherited |
|
inlineinherited |
|
virtualinherited |
Reimplemented in os::posix::file_lockable< T, L >.
|
virtualinherited |
|
virtualinherited |
Reimplemented in os::posix::file_lockable< T, L >.
|
virtualinherited |
Reimplemented in os::posix::file_lockable< T, L >.
|
inlineinherited |
|
inlineinherited |
file_implementable< T >::value_type & os::posix::file_implementable< T >::impl | ( | void | ) | const |
|
virtualinherited |
Reimplemented in os::posix::block_device_lockable< T, L >, and os::posix::file_lockable< T, L >.
|
virtualinherited |
Reimplemented in os::posix::block_device_lockable< T, L >, and os::posix::file_lockable< T, L >.
|
virtualinherited |
Reimplemented in os::posix::block_device_lockable< T, L >, and os::posix::file_lockable< T, L >.
|
virtualinherited |
Reimplemented in os::posix::block_device_lockable< T, L >, and os::posix::file_lockable< T, L >.
|
virtualinherited |
Reimplemented in os::posix::block_device_lockable< T, L >, and os::posix::file_lockable< T, L >.