|
|
HP-UX Reference Volume 4 of 5 > ttccontrol(3C) |
|
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. For all HP-UX implementations, duration is ignored. 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:
APPLICATION USAGEtcsendbreak(), tcdrain(), tcflush() and tcflow() are thread-safe. These interfaces are async-cancel-safe. A cancellation point may occur when a thread is executing tcdrain(). 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. |
|