|
|
HP-UX Reference > Ttccontrol(3C)HP-UX 11i Version 2: December 2007 Update |
|
NAMEtcsendbreak(), tcdrain(), tcflush(), tcflow() — tty line control functions SYNOPSIS#include <termios.h> int tcsendbreak(int fildes, int duration); int tcdrain(int fildes); int tcflush(int fildes, int queue_selector); int tcflow(int fildes, int action); DESCRIPTIONIf the terminal is using asynchronous serial data transmission, tcsendbreak() causes transmission of a continuous stream of zero-valued bits for a specific duration. If duration is zero, it causes transmission of zero-valued bits for at least 0.25 seconds, but not more than 0.5 seconds. If duration is not zero, zero-valued bits are not transmitted. tcdrain() waits until all output written to fildes has been transmitted. tcflush() discards data written to fildes but not transmitted, or data received but not read, depending on the value of queue_selector:
tcflow() suspends transmission of data to fildes or reception of data from fildes, depending on the value of action:
RETURN VALUEUpon successful completion, a value of zero is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. |
|