1 /* termios type and macro definitions. Linux version.
2 Copyright (C) 1993-1999, 2003, 2005, 2010 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 Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the 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 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 # error "Never include <bits/termios.h> directly; use <termios.h> instead."
24 typedef unsigned char cc_t
;
25 typedef unsigned int speed_t
;
26 typedef unsigned int tcflag_t
;
31 tcflag_t c_iflag
; /* input mode flags */
32 tcflag_t c_oflag
; /* output mode flags */
33 tcflag_t c_cflag
; /* control mode flags */
34 tcflag_t c_lflag
; /* local mode flags */
35 cc_t c_line
; /* line discipline */
36 cc_t c_cc
[NCCS
]; /* control characters */
37 speed_t c_ispeed
; /* input speed */
38 speed_t c_ospeed
; /* output speed */
39 #define _HAVE_STRUCT_TERMIOS_C_ISPEED 1
40 #define _HAVE_STRUCT_TERMIOS_C_OSPEED 1
63 #define IGNBRK 0000001
64 #define BRKINT 0000002
65 #define IGNPAR 0000004
66 #define PARMRK 0000010
68 #define ISTRIP 0000040
76 #define IMAXBEL 0020000
85 #define ONLRET 0000040
88 #if defined __USE_MISC || defined __USE_XOPEN
89 # define NLDLY 0000400
92 # define CRDLY 0003000
97 # define TABDLY 0014000
100 # define TAB2 0010000
101 # define TAB3 0014000
102 # define BSDLY 0020000
105 # define FFDLY 0100000
110 #define VTDLY 0040000
115 # define XTABS 0014000
118 /* c_cflag bit meaning */
120 # define CBAUD 0010017
122 #define B0 0000000 /* hang up */
131 #define B1200 0000011
132 #define B1800 0000012
133 #define B2400 0000013
134 #define B4800 0000014
135 #define B9600 0000015
136 #define B19200 0000016
137 #define B38400 0000017
142 #define CSIZE 0000060
147 #define CSTOPB 0000100
148 #define CREAD 0000200
149 #define PARENB 0000400
150 #define PARODD 0001000
151 #define HUPCL 0002000
152 #define CLOCAL 0004000
154 # define CBAUDEX 0010000
156 #define B57600 0010001
157 #define B115200 0010002
158 #define B230400 0010003
159 #define B460800 0010004
160 #define B500000 0010005
161 #define B576000 0010006
162 #define B921600 0010007
163 #define B1000000 0010010
164 #define B1152000 0010011
165 #define B1500000 0010012
166 #define B2000000 0010013
167 #define B2500000 0010014
168 #define B3000000 0010015
169 #define B3500000 0010016
170 #define B4000000 0010017
171 #define __MAX_BAUD B4000000
173 # define CIBAUD 002003600000 /* input baud rate (not used) */
174 # define CMSPAR 010000000000 /* mark or space (stick) parity */
175 # define CRTSCTS 020000000000 /* flow control */
180 #define ICANON 0000002
181 #if defined __USE_MISC || defined __USE_XOPEN
182 # define XCASE 0000004
185 #define ECHOE 0000020
186 #define ECHOK 0000040
187 #define ECHONL 0000100
188 #define NOFLSH 0000200
189 #define TOSTOP 0000400
191 # define ECHOCTL 0001000
192 # define ECHOPRT 0002000
193 # define ECHOKE 0004000
194 # define FLUSHO 0010000
195 # define PENDIN 0040000
197 #define IEXTEN 0100000
199 # define EXTPROC 0200000
202 /* tcflow() and TCXONC use these */
208 /* tcflush() and TCFLSH use these */
213 /* tcsetattr uses these */
219 #define _IOT_termios /* Hurd ioctl type field. */ \
220 _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)