File class. More...
#include <cmsis-plus/posix-io/file.h>
Public Types | |
Types & Constants | |
enum | 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 (file_impl &impl) | |
virtual | ~file () override |
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 & | file_system (void) |
file_impl & | impl (void) const |
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 struct 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 |
|
inherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
overridevirtual |
Reimplemented from os::posix::io.
Reimplemented in os::posix::file_lockable< T, L >.
|
inlineprotectedinherited |
|
inlineinherited |
|
inline |
|
virtualinherited |
Reimplemented in os::posix::file_lockable< T, L >.
|
virtual |
|
virtual |
Reimplemented in os::posix::file_lockable< T, L >.
|
virtual |
Reimplemented in os::posix::file_lockable< T, L >.
|
inlineinherited |
|
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 >.