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. */
23 typedef unsigned char cc_t
;
24 typedef unsigned int speed_t
;
25 typedef unsigned int tcflag_t
;
30 tcflag_t c_iflag
; /* input mode flags */
31 tcflag_t c_oflag
; /* output mode flags */
32 tcflag_t c_cflag
; /* control mode flags */
33 tcflag_t c_lflag
; /* local mode flags */
34 cc_t c_line
; /* line discipline */
35 cc_t c_cc
[NCCS
]; /* control characters */
36 speed_t c_ispeed
; /* input speed */
37 speed_t c_ospeed
; /* output speed */
60 #define IGNBRK 0000001
61 #define BRKINT 0000002
62 #define IGNPAR 0000004
63 #define PARMRK 0000010
65 #define ISTRIP 0000040
73 #define IMAXBEL 0020000
81 #define ONLRET 0000040
92 #define TABDLY 0014000
101 #define VTDLY 0040000
104 #define FFDLY 0100000
108 /* c_cflag bit meaning */
109 #define CBAUD 0010017
110 #define B0 0000000 /* hang up */
119 #define B1200 0000011
120 #define B1800 0000012
121 #define B2400 0000013
122 #define B4800 0000014
123 #define B9600 0000015
124 #define B19200 0000016
125 #define B38400 0000017
128 #define CSIZE 0000060
133 #define CSTOPB 0000100
134 #define CREAD 0000200
135 #define PARENB 0000400
136 #define PARODD 0001000
137 #define HUPCL 0002000
138 #define CLOCAL 0004000
139 #define CBAUDEX 0010000
140 #define B57600 0010001
141 #define B115200 0010002
142 #define B230400 0010003
143 #define B460800 0010004
144 #define CIBAUD 002003600000 /* input baud rate (not used) */
145 #define CRTSCTS 020000000000 /* flow control */
149 #define ICANON 0000002
150 #define XCASE 0000004
152 #define ECHOE 0000020
153 #define ECHOK 0000040
154 #define ECHONL 0000100
155 #define NOFLSH 0000200
156 #define TOSTOP 0000400
157 #define ECHOCTL 0001000
158 #define ECHOPRT 0002000
159 #define ECHOKE 0004000
160 #define FLUSHO 0010000
161 #define PENDIN 0040000
162 #define IEXTEN 0100000
164 /* tcflow() and TCXONC use these */
170 /* tcflush() and TCFLSH use these */
175 /* tcsetattr uses these */
181 #define _IOT_termios /* Hurd ioctl type field. */ \
182 _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)
184 #endif /* termbits.h */