Manual Pages for UNIX Darwin command on man tcflow
MyWebUniversity

Manual Pages for UNIX Darwin command on man tcflow

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

NAME

ttccsseennddbbrreeaakk, ttccddrraaiinn, ttccfflluusshh, ttccffllooww - line control functions

LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

int ttccddrraaiinn(int fd); int ttccffllooww(int fd, int action); int ttccfflluusshh(int fd, int action); int ttccsseennddbbrreeaakk(int fd, int len);

DESCRIPTION

The ttccddrraaiinn() function waits until all output written to the terminal referenced by fd has been transmitted to the terminal. The ttccffllooww() function suspends transmission of data to or the reception of data from the terminal referenced by fd 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 termi-

nal to stop transmitting data to the system. (See the descrip-

tion of IXOFF in the `Input Modes' section of termios(4)).

TCION Transmit a START character, which is intended to cause the termi-

nal to start transmitting data to the system. (See the descrip-

tion of IXOFF in the `Input Modes' section of termios(4)).

The ttccfflluusshh() function discards any data written to the terminal refer-

enced by fd 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 ttccsseennddbbrreeaakk() function transmits a continuous stream of zero-valued

bits for four-tenths of a second to the terminal referenced by fd. The

len parameter is ignored in this implementation.

RETURN VALUES

Upon successful completion, all of these functions return a value of zero. EERRRROORRSS

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 fd argument is not a valid file descriptor. [EINVAL] The action argument is not a proper value. [ENOTTY] The file associated with fd is not a terminal. [EINTR] A signal interrupted the ttccddrraaiinn() function.

SEE ALSO

tcsetattr(3), termios(4) STANDARDS The ttccsseennddbbrreeaakk(), ttccddrraaiinn(), ttccfflluusshh() and ttccffllooww() functions are

expected to be compliant with the IEEE Std 1003.1-1988 (``POSIX.1'')

specification. BSD June 4, 1993 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™