1TCFLOW(P) POSIX Programmer's Manual TCFLOW(P)
2
3
4
6 tcflow - suspend or restart the transmission or reception of data
7
9 #include <termios.h>
10
11 int tcflow(int fildes, int action);
12
13
15 The tcflow() function shall suspend or restart transmission or recep‐
16 tion of data on the object referred to by fildes, depending on the
17 value of action. The fildes argument is an open file descriptor associ‐
18 ated with a terminal.
19
20 * If action is TCOOFF, output shall be suspended.
21
22 * If action is TCOON, suspended output shall be restarted.
23
24 * If action is TCIOFF, the system shall transmit a STOP character,
25 which is intended to cause the terminal device to stop transmitting
26 data to the system.
27
28 * If action is TCION, the system shall transmit a START character,
29 which is intended to cause the terminal device to start transmitting
30 data to the system.
31
32 The default on the opening of a terminal file is that neither its input
33 nor its output are suspended.
34
35 Attempts to use tcflow() from a process which is a member of a back‐
36 ground process group on a fildes associated with its controlling termi‐
37 nal, shall cause the process group to be sent a SIGTTOU signal. If the
38 calling process is blocking or ignoring SIGTTOU signals, the process
39 shall be allowed to perform the operation, and no signal is sent.
40
42 Upon successful completion, 0 shall be returned. Otherwise, -1 shall be
43 returned and errno set to indicate the error.
44
46 The tcflow() function shall fail if:
47
48 EBADF The fildes argument is not a valid file descriptor.
49
50 EINVAL The action argument is not a supported value.
51
52 ENOTTY The file associated with fildes is not a terminal.
53
54
55 The tcflow() function may fail if:
56
57 EIO The process group of the writing process is orphaned, and the
58 writing process is not ignoring or blocking SIGTTOU.
59
60
61 The following sections are informative.
62
64 None.
65
67 None.
68
70 None.
71
73 None.
74
76 tcsendbreak() , the Base Definitions volume of IEEE Std 1003.1-2001,
77 Chapter 11, General Terminal Interface, <termios.h>, <unistd.h>
78
80 Portions of this text are reprinted and reproduced in electronic form
81 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
82 -- Portable Operating System Interface (POSIX), The Open Group Base
83 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
84 Electrical and Electronics Engineers, Inc and The Open Group. In the
85 event of any discrepancy between this version and the original IEEE and
86 The Open Group Standard, the original IEEE and The Open Group Standard
87 is the referee document. The original Standard can be obtained online
88 at http://www.opengroup.org/unix/online.html .
89
90
91
92IEEE/The Open Group 2003 TCFLOW(P)