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
;
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 */
57 #define IGNBRK 0000001
58 #define BRKINT 0000002
59 #define IGNPAR 0000004
60 #define PARMRK 0000010
62 #define ISTRIP 0000040
69 /* POSIX.1 doesn't want these... */
70 # define IXANY 0004000
71 # define IUCLC 0010000
72 # define IMAXBEL 0020000
82 #define ONLRET 0000040
84 #define OFILL 00000100
85 #define OFDEL 00000200
86 #define NLDLY 00001400
91 #define TABDLY 00006000
96 #define CRDLY 00030000
101 #define FFDLY 00040000
104 #define BSDLY 00100000
107 #define VTDLY 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 */
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
132 #define CBAUDEX 0000000
134 #define B115200 00021
135 #define B230400 00022
136 #define B460800 00023
138 #define CSIZE 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 */
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'. */
176 /* Values for the QUEUE_SELECTOR argument to `tcflush'. */
181 /* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */
187 #define _IOT_termios /* Hurd ioctl type field. */ \
188 _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)