RTEMS 4.6.1 On-Line Library
Device- and Class- Specific Functions Manager tcdrain - Waits for all output to be transmitted to the terminal.
RTEMS POSIX API User's Guide
6.4.8: tcdrain - Waits for all output to be transmitted to the terminal.
CALLING SEQUENCE:
-
#include <termios.h>
#include <unistd.h>
int tcdrain(
int fildes
);
STATUS CODES:
- EBADF
-
Invalid file descriptor
- EINTR
-
Function was interrupted by a signal
- ENOTTY
-
Terminal control function attempted for a file that is not a terminal.
DESCRIPTION:
The tcdrain()
function waits until all output written to
fildes
has been transmitted.
NOTES:
NONE
RTEMS POSIX API User's Guide
Copyright © 1988-2004 OAR Corporation