]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/termbits.h
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_line
; /* line discipline */
32 cc_t c_cc
[NCCS
]; /* control characters */
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
70 #define IMAXBEL 0020000
78 #define ONLRET 0000040
89 #define TABDLY 0014000
101 #define FFDLY 0100000
105 /* c_cflag bit meaning */
106 #define CBAUD 0010017
107 #define B0 0000000 /* hang up */
116 #define B1200 0000011
117 #define B1800 0000012
118 #define B2400 0000013
119 #define B4800 0000014
120 #define B9600 0000015
121 #define B19200 0000016
122 #define B38400 0000017
125 #define CSIZE 0000060
130 #define CSTOPB 0000100
131 #define CREAD 0000200
132 #define PARENB 0000400
133 #define PARODD 0001000
134 #define HUPCL 0002000
135 #define CLOCAL 0004000
136 #define CBAUDEX 0010000
137 #define B57600 0010001
138 #define B115200 0010002
139 #define B230400 0010003
140 #define B460800 0010004
141 #define CIBAUD 002003600000 /* input baud rate (not used) */
142 #define CRTSCTS 020000000000 /* flow control */
146 #define ICANON 0000002
147 #define XCASE 0000004
149 #define ECHOE 0000020
150 #define ECHOK 0000040
151 #define ECHONL 0000100
152 #define NOFLSH 0000200
153 #define TOSTOP 0000400
154 #define ECHOCTL 0001000
155 #define ECHOPRT 0002000
156 #define ECHOKE 0004000
157 #define FLUSHO 0010000
158 #define PENDIN 0040000
159 #define IEXTEN 0100000
161 /* tcflow() and TCXONC use these */
167 /* tcflush() and TCFLSH use these */
172 /* tcsetattr uses these */
178 #define _IOT_termios /* Hurd ioctl type field. */ \
179 _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)