#include <file.h>
Inheritance diagram for os::posix::file_lockable< T, L >: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 |
| Enumerator | |
|---|---|
| unknown | |
| not_set | |
| char_device | |
| block_device | |
| tty | |
| file | |
| socket | |
Definition at line 126 of file io.h.
| os::posix::file_lockable< T, L >::file_lockable | ( | file_system & | fs, |
| lockable_type & | locker | ||
| ) |
Definition at line 533 of file file.h.
References os::trace::printf().
|
overridevirtual |
Definition at line 550 of file file.h.
References os::trace::printf().
|
protectedinherited |
Definition at line 189 of file io.cpp.
References os::posix::file_descriptors_manager::allocate(), os::posix::io::clear_file_descriptor(), os::posix::io_impl::do_close(), os::posix::io::impl(), and os::trace::printf().
Referenced by os::posix::socket::accept(), os::posix::socket(), os::posix::device::vopen(), and os::posix::file_system::vopen().
|
inlineprotectedinherited |
Definition at line 446 of file io.h.
References os::posix::no_file_descriptor.
Referenced by os::posix::io::alloc_file_descriptor().
|
overridevirtual |
Reimplemented from os::posix::file.
Definition at line 562 of file file.h.
References os::posix::file::close().
|
inherited |
Definition at line 363 of file io.cpp.
References os::posix::io::vfcntl().
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 452 of file io.h.
Referenced by os::posix::file_descriptors_manager::allocate(), os::posix::file_descriptors_manager::assign(), os::posix::device::vopen(), and os::posix::vopen().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 612 of file file.h.
References os::posix::io::fstat().
|
virtualinherited |
Definition at line 104 of file file.cpp.
References os::posix::file::get_file_system(), os::trace::printf(), and os::posix::file_system::statvfs().
|
overridevirtual |
Reimplemented from os::posix::file.
Definition at line 640 of file file.h.
References os::posix::file::fsync().
|
overridevirtual |
Reimplemented from os::posix::file.
Definition at line 631 of file file.h.
References os::posix::file::ftruncate().
|
inlineinherited |
Definition at line 478 of file file.h.
References os::posix::file_impl::get_file_system(), and os::posix::file::impl().
Referenced by os::posix::file::close(), and os::posix::file::fstatvfs().
|
inlineinherited |
Definition at line 434 of file io.h.
Referenced by os::posix::file_descriptors_manager::socket().
| file_lockable< T, L >::value_type & os::posix::file_lockable< T, L >::impl | ( | void | ) | const |
|
inlineinherited |
Definition at line 458 of file io.h.
References os::posix::io_impl::do_is_opened(), and os::posix::io::impl().
|
inherited |
Definition at line 406 of file io.cpp.
References os::posix::io_impl::do_isatty(), and os::posix::io::impl().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 622 of file file.h.
References os::posix::io::lseek().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 571 of file file.h.
References os::posix::io::read().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 598 of file file.h.
References os::posix::io::vfcntl().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 580 of file file.h.
References os::posix::io::write().
|
overridevirtual |
Reimplemented from os::posix::io.
Definition at line 589 of file file.h.
References os::posix::io::writev().