COHERENT manpages
This page displays the COHERENT manpage for tcdrain() [Drain output to a device].
List of available manpages
Index
tcdrain() -- termios Macro (termios.h) Drain output to a device #include <termios.h> int tcdrain(fd) int fd; The termios macro tcdrain() waits until all output written to device fd has been transmitted. fd must have returned by a call to open(), and must describe a terminal device. If all goes well, tcdrain() returns zero. If something goes wrong, it returns -1 and sets errno to an appropriate value, as follows: EBADF fd is not a valid file descriptor. EINTR A signal interrupted tcdrain(). ENOTTY fd does not describe a terminal device. See Also termios POSIX Standard, §7.2.2