source: rtems-docs/posix1003_1/device_and_class_specific.rst @ 489740f

4.115
Last change on this file since 489740f was 489740f, checked in by Chris Johns <chrisj@…>, on 05/20/16 at 02:47:09

Set SPDX License Identifier in each source file.

  • Property mode set to 100644
File size: 5.0 KB
Line 
1.. comment SPDX-License-Identifier: CC-BY-SA-4.0
2
3Device- and Class-Specific Functions
4####################################
5
6General Terminal Interface
7==========================
8
9Interface Characteristics
10-------------------------
11
12Opening a Terminal Device File
13~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
15Process Groups (TTY)
16~~~~~~~~~~~~~~~~~~~~
17
18The Controlling Terminal
19~~~~~~~~~~~~~~~~~~~~~~~~
20
21Terminal Access Control
22~~~~~~~~~~~~~~~~~~~~~~~
23
24Input Processing and Reading Data
25~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26
27Canonical Mode Input Processing
28~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29
30Noncanonical Mode Input Processing
31~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
33- Case A - MIN > 0 and TIME > 0
34
35- Case B - MIN > 0 and TIME = 0
36
37- Case C - MIN = 0 and TIME > 0
38
39- Case D - MIN = 0 and TIME = 0
40
41Writing Data and Output Processing
42~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43
44Special Characters
45~~~~~~~~~~~~~~~~~~
46
47.. code:: c
48
49    INTR, Constant, Implemented
50    QUIT, Constant, Implemented
51    ERASE, Constant, Implemented
52    KILL, Constant, Implemented
53    EOF, Constant, Implemented
54    NL, Constant, Implemented
55    EOL, Constant, Implemented
56    SUSP, Constant, Implemented
57    STOP, Constant, Implemented
58    START, Constant, Implemented
59    CR, Constant, Implemented
60
61Modem Disconnect
62~~~~~~~~~~~~~~~~
63
64Closing a Terminal Device File
65~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
67Parameters That Can Be Set
68--------------------------
69
70termios Structure
71~~~~~~~~~~~~~~~~~
72
73.. code:: c
74
75    tcflag_t, Type, Implemented
76    cc_t, Type, Implemented
77    struct termios, Type, Implemented
78
79Input Modes
80~~~~~~~~~~~
81
82.. code:: c
83
84    BRKINT, Constant, Implemented
85    ICRNL, Constant, Implemented
86    IGNBREAK, Constant, Unimplemented
87    IGNCR, Constant, Implemented
88    IGNPAR, Constant, Implemented
89    INLCR, Constant, Implemented
90    INPCK, Constant, Implemented
91    ISTRIP, Constant, Implemented
92    IXOFF, Constant, Implemented
93    IXON, Constant, Implemented
94    PARMRK, Constant, Implemented
95
96Output Modes
97~~~~~~~~~~~~
98
99.. code:: c
100
101    OPOST, Constant, Implemented
102
103Control Modes
104~~~~~~~~~~~~~
105
106.. code:: c
107
108    CLOCAL, Constant, Implemented
109    CREAD, Constant, Implemented
110    CSIZE, Constant, Implemented
111    CS5, Constant, Implemented
112    CS6, Constant, Implemented
113    CS7, Constant, Implemented
114    CS8, Constant, Implemented
115    CSTOPB, Constant, Implemented
116    HUPCL, Constant, Implemented
117    PARENB, Constant, Implemented
118    PARODD, Constant, Implemented
119
120Local Modes
121~~~~~~~~~~~
122
123.. code:: c
124
125    ECHO, Constant, Implemented
126    ECHOE, Constant, Implemented
127    ECHOK, Constant, Implemented
128    ECHONL, Constant, Implemented
129    ICANON, Constant, Implemented
130    IEXTEN, Constant, Implemented
131    ISIG, Constant, Implemented
132    NOFLSH, Constant, Implemented
133    TOSTOP, Constant, Implemented
134
135Special Control Characters
136~~~~~~~~~~~~~~~~~~~~~~~~~~
137
138.. code:: c
139
140    VEOF, Constant, Implemented
141    VEOL, Constant, Implemented
142    VERASE, Constant, Implemented
143    VINTR, Constant, Implemented
144    VKILL, Constant, Implemented
145    VQUIT, Constant, Implemented
146    VSUSP, Constant, Implemented
147    VSTART, Constant, Implemented
148    VSTOP, Constant, Implemented
149    VMIN, Constant, Implemented
150    VTIME, Constant, Implemented
151
152Baud Rate Values
153----------------
154
155.. code:: c
156
157    B0, Constant, Implemented
158    B50, Constant, Implemented
159    B75, Constant, Implemented
160    B110, Constant, Implemented
161    B134, Constant, Implemented
162    B150, Constant, Implemented
163    B200, Constant, Implemented
164    B300, Constant, Implemented
165    B600, Constant, Implemented
166    B1200, Constant, Implemented
167    B1800, Constant, Implemented
168    B2400, Constant, Implemented
169    B4800, Constant, Implemented
170    B9600, Constant, Implemented
171    B19200, Constant, Implemented
172    B38400, Constant, Implemented
173
174Baud Rate Functions
175~~~~~~~~~~~~~~~~~~~
176
177.. code:: c
178
179    cfgetospeed(), Function, Implemented
180    cfsetospeed(), Function, Implemented
181    cfgetispeed(), Function, Implemented
182    cfsetispeed(), Function, Implemented
183    TCIFLUSH, Constant, Implemented
184    TCOFLUSH, Constant, Implemented
185    TCIOFLUSH, Constant, Implemented
186    TCOOFF, Constant, Implemented
187    TCOON, Constant, Implemented
188    TCIOOFF, Constant, Implemented
189    TCIOON, Constant, Implemented
190
191General Terminal Interface Control Functions
192============================================
193
194Get and Set State
195-----------------
196
197.. code:: c
198
199    tcgetattr(), Function, Implemented
200    tcsetattr(), Function, Implemented
201
202Line Control Functions
203----------------------
204
205.. code:: c
206
207    tcsendbreak(), Function, Dummy Implementation
208    tcdrain(), Function, Implemented
209    tcflush(), Function, Dummy Implementation
210    tcflow(), Function, Dummy Implementation
211
212Get Foreground Process Group ID
213-------------------------------
214
215.. code:: c
216
217    tcgetprgrp(), Function, Implemented, SUSP
218
219Set Foreground Process Group ID
220-------------------------------
221
222.. code:: c
223
224    tcsetprgrp(), Function, Dummy Implementation
225
226.. COMMENT: COPYRIGHT (c) 1988-2002.
227
228.. COMMENT: On-Line Applications Research Corporation (OAR).
229
230.. COMMENT: All rights reserved.
231
Note: See TracBrowser for help on using the repository browser.