Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcsendbreak(3c) [hpux man page]

tccontrol(3C)															     tccontrol(3C)

NAME
tcsendbreak(), tcdrain(), tcflush(), tcflow() - tty line control functions SYNOPSIS
DESCRIPTION
If the terminal is using asynchronous serial data transmission, causes transmission of a continuous stream of zero-valued bits for a spe- cific 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. waits until all output written to fildes has been transmitted. discards data written to fildes but not transmitted, or data received but not read, depending on the value of queue_selector: o If queue_selector is data received but not read is flushed. o If queue_selector is data written but not transmitted is flushed. o If queue_selector is both data received but not read, and data written but not transmitted is flushed. suspends transmission of data to fildes or reception of data from fildes, depending on the value of action: o If action is output is suspended. o If action is suspended output is restarted. o If action is a STOP character is transmitted which is intended to cause the terminal to stop transmitting data to the system. o If action is a START character is transmitted which is intended to cause the terminal to start transmitting data to the system. RETURN VALUE
Upon successful completion, a value of zero is returned. Otherwise, a value of -1 is returned and is set to indicate the error. ERRORS
These functions fail if one or more of the following is true: [EBADF] fildes is not a valid file descriptor. [EINTR] A signal was received during [EINVAL] The queue_selector or the action argument is not a proper value. [ENOTTY] The file associated with fildes is not a terminal. SEE ALSO
tcattribute(3C), tccontrol(3C), thread_safety(5), termio(7). STANDARDS CONFORMANCE
tccontrol(3C)

Check Out this Related Man Page

TCSENDBREAK(3)						   BSD Library Functions Manual 					    TCSENDBREAK(3)

NAME
tcdrain, tcflow, tcflush, tcsendbreak -- line control functions LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#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); DESCRIPTION
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: TCOOFF Suspend output. TCOON Restart suspended output. TCIOFF Transmit a STOP character, which is intended to cause the terminal to stop transmitting data to the system. (See the description of IXOFF in the 'Input Modes' section of termios(4)). TCION Transmit a START character, which is intended to cause the terminal to start transmitting data to the system. (See the description of IXOFF in the '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: TCIFLUSH Flush data received but not read. TCOFLUSH Flush data written but not transmitted. TCIOFLUSH Flush both data received but not read and data written but not transmitted. 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. RETURN VALUES
Upon successful completion, all of these functions return a value of zero. ERRORS
If any error occurs, a value of -1 is returned and the global variable errno is set to indicate the error, as follows: [EBADF] The fildes argument is not a valid file descriptor. [EINTR] A signal interrupted the tcdrain() function. [EINVAL] The action argument is not a proper value. [ENOTTY] The file associated with fildes is not a terminal. SEE ALSO
tcsetattr(3), termios(4) STANDARDS
The tcsendbreak(), tcdrain(), tcflush() and tcflow() functions are expected to be compliant with the IEEE Std 1003.1-1988 (``POSIX.1'') spec- ification. BSD
June 4, 1993 BSD
Man Page