#include <file.h>
Public Types | |
using | lockable_type = L |
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_lockable (file_system &fs, lockable_type &locker) | |
virtual | ~file_lockable () override |
Public Member Functions | |
virtual int | close (void) override |
virtual ssize_t | read (void *buf, std::size_t nbyte) override |
virtual ssize_t | write (const void *buf, std::size_t nbyte) override |
virtual ssize_t | writev (const iovec *iov, int iovcnt) override |
virtual int | vfcntl (int cmd, std::va_list args) override |
virtual int | fstat (struct stat *buf) override |
virtual off_t | lseek (off_t offset, int whence) override |
virtual int | ftruncate (off_t length) override |
virtual int | fsync (void) override |
value_type & | impl (void) const |
Public Member Functions | |
virtual int | fstatvfs (struct statvfs *buf) |
class file_system & | get_file_system (void) |
Public Member Functions | |
int | fcntl (int cmd,...) |
int | isatty (void) |
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) |
using os::posix::file_lockable< T, L >::lockable_type = L |
|
inherited |
using os::posix::file_lockable< T, L >::value_type = T |
|
stronginherited |
os::posix::file_lockable< T, L >::file_lockable | ( | file_system & | fs, |
lockable_type & | locker | ||
) |
|
overridevirtual |
|
protectedinherited |
|
inlineprotectedinherited |
|
overridevirtual |
Reimplemented from os::posix::file.
|
inlineprotectedinherited |
|
inlineinherited |
|
overridevirtual |
Reimplemented from os::posix::io.
|
virtualinherited |
|
overridevirtual |
Reimplemented from os::posix::file.
|
overridevirtual |
Reimplemented from os::posix::file.
|
inlineinherited |
|
inlineinherited |
file_lockable< T, L >::value_type & os::posix::file_lockable< T, L >::impl | ( | void | ) | const |
|
overridevirtual |
Reimplemented from os::posix::io.
|
overridevirtual |
Reimplemented from os::posix::io.
|
overridevirtual |
Reimplemented from os::posix::io.
|
overridevirtual |
Reimplemented from os::posix::io.
|
overridevirtual |
Reimplemented from os::posix::io.