TCSENDBREAK(3) | Library Functions Manual | TCSENDBREAK(3) |
tcdrain
, tcflow
,
tcflush
, tcsendbreak
— line control functions
Standard C Library (libc, -lc)
#include
<termios.h>
int
tcdrain
(int fildes);
int
tcflow
(int fildes,
int action);
int
tcflush
(int fildes,
int action);
int
tcsendbreak
(int fildes,
int duration);
The
tcdrain
()
function waits until all output written to the terminal referenced by
fildes has been transmitted to the terminal.
The
tcflow
()
function suspends transmission of data to, or the reception of data from,
the terminal referenced by fildes, depending on the
value of action. The value of
action must be one of the following:
Input Modes
’ section of
termios(4)).Input Modes
’ section of
termios(4)).The
tcflush
()
function discards any data written to the terminal referenced by
fildes which has not been transmitted to the terminal,
or any data received from the terminal but not yet read, depending on the
value of action. The value of
action must be one of the following:
The
tcsendbreak
()
function transmits a continuous stream of zero-valued bits for four-tenths
of a second to the terminal referenced by fildes. The
duration parameter is ignored in this
implementation.
Upon successful completion, all of these functions return a value of zero.
If any error occurs, a value of -1 is returned and the global variable errno is set to indicate the error, as follows:
The tcsendbreak
(),
tcdrain
(), tcflush
() and
tcflow
() functions are expected to be compliant with
the IEEE Std 1003.1-1988 (“POSIX.1”)
specification.
June 4, 1993 | macOS 14.6 |