Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tcflow(3c) [sunos man page]

tcflow(3C)						   Standard C Library Functions 						tcflow(3C)

NAME
tcflow - suspend or restart the transmission or reception of data SYNOPSIS
#include <termios.h> int tcflow(int fildes, int action); DESCRIPTION
The tcflow() function suspends transmission or reception of data on the object referred to by fildes, depending on the value of action. The fildes argument is an open file descriptor associated with a terminal. o If action is TCOOFF, output is suspended. o If action is TCOON, suspended output is restarted. o If action is TCIOFF, the system transmits a STOP character, which is intended to cause the terminal device to stop transmitting data to the system. o If action is TCION, the system transmits a START character, which is intended to cause the terminal device to start transmitting data to the system. The default on the opening of a terminal file is that neither its input nor its output are suspended. Attempts to use tcflow() from a process which is a member of a background process group on a fildes associated with its controlling termi- nal, will cause the process group to be sent a SIGTTOU signal. If the calling process is blocking or ignoring SIGTTOU signals, the process is allowed to perform the operation, and no signal is sent. RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The tcflow() function will fail if: EBADF The fildes argument is not a valid file descriptor. EINVAL The action argument is not a supported value. ENOTTY The file associated with fildes is not a terminal. The tcflow() function may fail if: EIO The process group of the writing process is orphaned, and the writing process is not ignoring or blocking SIGTTOU. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-------------------------------+ |Interface Stability |Standard | +-----------------------------+-------------------------------+ |MT-Level |MT-Safe, and Async-Signal-Safe | +-----------------------------+-------------------------------+ SEE ALSO
tcsendbreak(3C), attributes(5), standards(5), termio(7I) SunOS 5.10 14 Aug 2002 tcflow(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