update from main archive 960105
[glibc/history.git] / sysdeps / unix / sysv / linux / alpha / termbits.h
blob6cb729f7f8d9171ab7b0c8c45c5e5c5234e6ec73
1 /* termios type and macro definitions. Linux version.
2 Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 typedef unsigned char cc_t;
21 typedef unsigned int speed_t;
22 typedef unsigned int tcflag_t;
24 #define NCCS 32
25 struct termios
27 tcflag_t c_iflag; /* input mode flags */
28 tcflag_t c_oflag; /* output mode flags */
29 tcflag_t c_cflag; /* control mode flags */
30 tcflag_t c_lflag; /* local mode flags */
31 cc_t c_cc[NCCS]; /* control characters */
32 cc_t c_line; /* line discipline (== c_cc[19]) */
33 speed_t c_ispeed; /* input speed */
34 speed_t c_ospeed; /* output speed */
37 /* c_cc characters */
38 #define VEOF 0
39 #define VEOL 1
40 #define VEOL2 2
41 #define VERASE 3
42 #define VWERASE 4
43 #define VKILL 5
44 #define VREPRINT 6
45 #define VSWTC 7
46 #define VINTR 8
47 #define VQUIT 9
48 #define VSUSP 10
49 #define VSTART 12
50 #define VSTOP 13
51 #define VLNEXT 14
52 #define VDISCARD 15
53 #define VMIN 16
54 #define VTIME 17
56 /* c_iflag bits */
57 #define IGNBRK 0000001
58 #define BRKINT 0000002
59 #define IGNPAR 0000004
60 #define PARMRK 0000010
61 #define INPCK 0000020
62 #define ISTRIP 0000040
63 #define INLCR 0000100
64 #define IGNCR 0000200
65 #define ICRNL 0000400
66 #define IXON 0001000
67 #define IXOFF 0002000
68 #ifdef __USE_BSD
69 /* POSIX.1 doesn't want these... */
70 # define IXANY 0004000
71 # define IUCLC 0010000
72 # define IMAXBEL 0020000
73 #endif
75 /* c_oflag bits */
76 #define OPOST 0000001
77 #define ONLCR 0000002
78 #define OLCUC 0000004
80 #define OCRNL 0000010
81 #define ONOCR 0000020
82 #define ONLRET 0000040
84 #define OFILL 00000100
85 #define OFDEL 00000200
86 #define NLDLY 00001400
87 #define NL0 00000000
88 #define NL1 00000400
89 #define NL2 00001000
90 #define NL3 00001400
91 #define TABDLY 00006000
92 #define TAB0 00000000
93 #define TAB1 00002000
94 #define TAB2 00004000
95 #define TAB3 00006000
96 #define CRDLY 00030000
97 #define CR0 00000000
98 #define CR1 00010000
99 #define CR2 00020000
100 #define CR3 00030000
101 #define FFDLY 00040000
102 #define FF0 00000000
103 #define FF1 00040000
104 #define BSDLY 00100000
105 #define BS0 00000000
106 #define BS1 00100000
107 #define VTDLY 00200000
108 #define VT0 00000000
109 #define VT1 00200000
110 #define XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */
112 /* c_cflag bit meaning */
113 #define CBAUD 0000037
114 #define B0 0000000 /* hang up */
115 #define B50 0000001
116 #define B75 0000002
117 #define B110 0000003
118 #define B134 0000004
119 #define B150 0000005
120 #define B200 0000006
121 #define B300 0000007
122 #define B600 0000010
123 #define B1200 0000011
124 #define B1800 0000012
125 #define B2400 0000013
126 #define B4800 0000014
127 #define B9600 0000015
128 #define B19200 0000016
129 #define B38400 0000017
130 #define EXTA B19200
131 #define EXTB B38400
132 #define CBAUDEX 0000000
133 #define B57600 00020
134 #define B115200 00021
135 #define B230400 00022
136 #define B460800 00023
138 #define CSIZE 00001400
139 #define CS5 00000000
140 #define CS6 00000400
141 #define CS7 00001000
142 #define CS8 00001400
144 #define CSTOPB 00002000
145 #define CREAD 00004000
146 #define PARENB 00010000
147 #define PARODD 00020000
148 #define HUPCL 00040000
150 #define CLOCAL 00100000
151 #define CRTSCTS 020000000000 /* flow control */
153 /* c_lflag bits */
154 #define ISIG 0x00000080
155 #define ICANON 0x00000100
156 #define XCASE 0x00004000
157 #define ECHO 0x00000008
158 #define ECHOE 0x00000002
159 #define ECHOK 0x00000004
160 #define ECHONL 0x00000010
161 #define NOFLSH 0x80000000
162 #define TOSTOP 0x00400000
163 #define ECHOCTL 0x00000040
164 #define ECHOPRT 0x00000020
165 #define ECHOKE 0x00000001
166 #define FLUSHO 0x00800000
167 #define PENDIN 0x20000000
168 #define IEXTEN 0x00000400
170 /* Values for the ACTION argument to `tcflow'. */
171 #define TCOOFF 0
172 #define TCOON 1
173 #define TCIOFF 2
174 #define TCION 3
176 /* Values for the QUEUE_SELECTOR argument to `tcflush'. */
177 #define TCIFLUSH 0
178 #define TCOFLUSH 1
179 #define TCIOFLUSH 2
181 /* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */
182 #define TCSANOW 0
183 #define TCSADRAIN 1
184 #define TCSAFLUSH 2
187 #define _IOT_termios /* Hurd ioctl type field. */ \
188 _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)