#include <tty.h>
Definition at line 134 of file tty.h.
◆ tty_impl()
| os::posix::tty_impl::tty_impl |
( |
void |
| ) |
|
Definition at line 83 of file tty.cpp.
84 {
85#if defined(OS_TRACE_POSIX_IO_TTY)
87#endif
88 }
int printf(const char *format,...)
Write a formatted string to the trace device.
References os::trace::printf().
◆ ~tty_impl()
| os::posix::tty_impl::~tty_impl |
( |
| ) |
|
|
overridevirtual |
◆ do_close()
| virtual int os::posix::io_impl::do_close |
( |
void |
| ) |
|
|
pure virtualinherited |
◆ do_deallocate()
| void os::posix::io_impl::do_deallocate |
( |
void |
| ) |
|
|
virtualinherited |
◆ do_fstat()
| int os::posix::io_impl::do_fstat |
( |
struct stat * |
buf | ) |
|
|
virtualinherited |
◆ do_is_connected()
| bool os::posix::io_impl::do_is_connected |
( |
void |
| ) |
|
|
virtualinherited |
Definition at line 496 of file io.cpp.
497 {
498 return true;
499 }
◆ do_is_opened()
| bool os::posix::device_impl::do_is_opened |
( |
void |
| ) |
|
|
overridevirtualinherited |
◆ do_isatty()
| int os::posix::tty_impl::do_isatty |
( |
void |
| ) |
|
|
finalvirtual |
◆ do_lseek()
| off_t os::posix::char_device_impl::do_lseek |
( |
off_t |
offset, |
|
|
int |
whence |
|
) |
| |
|
overridevirtualinherited |
◆ do_read()
| virtual ssize_t os::posix::io_impl::do_read |
( |
void * |
buf, |
|
|
std::size_t |
nbyte |
|
) |
| |
|
pure virtualinherited |
◆ do_sync()
| void os::posix::char_device_impl::do_sync |
( |
void |
| ) |
|
|
overridevirtualinherited |
◆ do_tcdrain()
| virtual int os::posix::tty_impl::do_tcdrain |
( |
void |
| ) |
|
|
pure virtual |
◆ do_tcflush()
| virtual int os::posix::tty_impl::do_tcflush |
( |
int |
queue_selector | ) |
|
|
pure virtual |
◆ do_tcgetattr()
| virtual int os::posix::tty_impl::do_tcgetattr |
( |
termios * |
ptio | ) |
|
|
pure virtual |
◆ do_tcsendbreak()
| virtual int os::posix::tty_impl::do_tcsendbreak |
( |
int |
duration | ) |
|
|
pure virtual |
◆ do_tcsetattr()
| virtual int os::posix::tty_impl::do_tcsetattr |
( |
int |
options, |
|
|
const termios * |
ptio |
|
) |
| |
|
pure virtual |
◆ do_vfcntl()
| int os::posix::io_impl::do_vfcntl |
( |
int |
cmd, |
|
|
std::va_list |
args |
|
) |
| |
|
virtualinherited |
◆ do_vioctl()
| virtual int os::posix::device_impl::do_vioctl |
( |
int |
request, |
|
|
std::va_list |
args |
|
) |
| |
|
pure virtualinherited |
◆ do_vopen()
| virtual int os::posix::device_impl::do_vopen |
( |
const char * |
path, |
|
|
int |
oflag, |
|
|
std::va_list |
args |
|
) |
| |
|
pure virtualinherited |
◆ do_write()
| virtual ssize_t os::posix::io_impl::do_write |
( |
const void * |
buf, |
|
|
std::size_t |
nbyte |
|
) |
| |
|
pure virtualinherited |
◆ do_writev()
| ssize_t os::posix::io_impl::do_writev |
( |
const iovec * |
iov, |
|
|
int |
iovcnt |
|
) |
| |
|
virtualinherited |
Definition at line 502 of file io.cpp.
503 {
504 ssize_t total = 0;
505
506#pragma GCC diagnostic push
507#if defined(__clang__)
508#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
509#endif
510 const iovec* p = iov;
511 for (int i = 0; i < iovcnt; ++i, ++p)
512 {
514 if (ret < 0)
515 {
516 return ret;
517 }
518 total += ret;
519 }
520#pragma GCC diagnostic pop
521 return total;
522 }
virtual ssize_t do_write(const void *buf, std::size_t nbyte)=0
References os::posix::io_impl::do_write(), iovec::iov_base, and iovec::iov_len.
Referenced by os::posix::io::writev().
◆ offset() [1/2]
| void os::posix::io_impl::offset |
( |
off_t |
offset | ) |
|
|
inlineinherited |
◆ offset() [2/2]
| off_t os::posix::io_impl::offset |
( |
void |
| ) |
|
|
inlineinherited |
◆ open_count()
| int os::posix::device_impl::open_count |
( |
void |
| ) |
|
|
inlineinherited |
Definition at line 324 of file device.h.
325 {
326 return open_count_;
327 }
◆ tty
The documentation for this class was generated from the following files: