#include <tty.h>
|
int | open (const char *path=nullptr, int oflag=0,...) |
|
int | vopen (const char *path, int oflag, std::va_list args) |
|
virtual int | close (void) override |
|
int | ioctl (int request,...) |
|
virtual int | vioctl (int request, std::va_list args) |
|
virtual void | sync (void) |
|
virtual bool | match_name (const char *name) const |
|
const char * | name (void) const |
|
static const char * | device_prefix (void) |
|
Definition at line 55 of file tty.h.
◆ type_t
Definition at line 127 of file io.h.
◆ type
Enumerator |
---|
unknown | |
not_set | |
char_device | |
block_device | |
tty | |
file | |
socket | |
Definition at line 128 of file io.h.
◆ tty()
os::posix::tty::tty |
( |
tty_impl & |
impl, |
|
|
const char * |
name |
|
) |
| |
◆ ~tty()
◆ alloc_file_descriptor()
io * os::posix::io::alloc_file_descriptor |
( |
void |
| ) |
|
|
protectedinherited |
◆ clear_file_descriptor()
void os::posix::io::clear_file_descriptor |
( |
void |
| ) |
|
|
inlineprotectedinherited |
Definition at line 450 of file io.h.
◆ close()
int os::posix::device::close |
( |
void |
| ) |
|
|
overridevirtualinherited |
◆ device_prefix()
const char * os::posix::device::device_prefix |
( |
void |
| ) |
|
|
inlinestaticinherited |
◆ fcntl()
int os::posix::io::fcntl |
( |
int |
cmd, |
|
|
|
... |
|
) |
| |
|
inherited |
◆ file_descriptor() [1/2]
Definition at line 444 of file io.h.
◆ file_descriptor() [2/2]
Definition at line 456 of file io.h.
◆ fstat()
int os::posix::io::fstat |
( |
struct stat * |
buf | ) |
|
|
virtualinherited |
◆ get_type()
Definition at line 438 of file io.h.
◆ impl()
tty_impl & os::posix::tty::impl |
( |
void |
| ) |
const |
|
inline |
◆ ioctl()
int os::posix::device::ioctl |
( |
int |
request, |
|
|
|
... |
|
) |
| |
|
inherited |
◆ is_opened()
bool os::posix::io::is_opened |
( |
void |
| ) |
|
|
inlineinherited |
Definition at line 462 of file io.h.
◆ isatty()
int os::posix::io::isatty |
( |
void |
| ) |
|
|
inherited |
◆ lseek()
off_t os::posix::io::lseek |
( |
off_t |
offset, |
|
|
int |
whence |
|
) |
| |
|
virtualinherited |
◆ match_name()
bool os::posix::device::match_name |
( |
const char * |
name | ) |
const |
|
virtualinherited |
◆ name()
const char * os::posix::device::name |
( |
void |
| ) |
const |
|
inlineinherited |
◆ open()
int os::posix::device::open |
( |
const char * |
path = nullptr , |
|
|
int |
oflag = 0 , |
|
|
|
... |
|
) |
| |
|
inherited |
- Parameters
-
path | May be nullptr. |
oflag | Output flags |
- Returns
- non-negative file descriptor, -1 on failure
Definition at line 64 of file device.cpp.
◆ read()
ssize_t os::posix::io::read |
( |
void * |
buf, |
|
|
std::size_t |
nbyte |
|
) |
| |
|
virtualinherited |
◆ sync()
void os::posix::device::sync |
( |
void |
| ) |
|
|
virtualinherited |
◆ tcdrain()
int os::posix::tty::tcdrain |
( |
void |
| ) |
|
|
inlinevirtual |
◆ tcflush()
int os::posix::tty::tcflush |
( |
int |
queue_selector | ) |
|
|
inlinevirtual |
◆ tcgetattr()
int os::posix::tty::tcgetattr |
( |
termios * |
ptio | ) |
|
|
inlinevirtual |
◆ tcsendbreak()
int os::posix::tty::tcsendbreak |
( |
int |
duration | ) |
|
|
inlinevirtual |
◆ tcsetattr()
int os::posix::tty::tcsetattr |
( |
int |
options, |
|
|
const termios * |
ptio |
|
) |
| |
|
inlinevirtual |
◆ vfcntl()
int os::posix::io::vfcntl |
( |
int |
cmd, |
|
|
std::va_list |
args |
|
) |
| |
|
virtualinherited |
◆ vioctl()
int os::posix::device::vioctl |
( |
int |
request, |
|
|
std::va_list |
args |
|
) |
| |
|
virtualinherited |
◆ vopen()
int os::posix::device::vopen |
( |
const char * |
path, |
|
|
int |
oflag, |
|
|
std::va_list |
args |
|
) |
| |
|
inherited |
- Parameters
-
path | May be nullptr. |
oflag | Output flags |
args | Arguments |
- Returns
- non-negative file descriptor, -1 on failure
Definition at line 76 of file device.cpp.
◆ write()
ssize_t os::posix::io::write |
( |
const void * |
buf, |
|
|
std::size_t |
nbyte |
|
) |
| |
|
virtualinherited |
◆ writev()
ssize_t os::posix::io::writev |
( |
const iovec * |
iov, |
|
|
int |
iovcnt |
|
) |
| |
|
virtualinherited |
The documentation for this class was generated from the following files: