RTEMS Logo

RTEMS 4.10.2 On-Line Library


Device- and Class- Specific Functions Manager tcdrain - Waits for all output to be transmitted to the terminal.

PREV UP NEXT Bookshelf 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


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation