1 /* termios type and macro definitions. Linux version.
2 Copyright (C) 1993-2019 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, see
17 <https://www.gnu.org/licenses/>. */
20 # error "Never include <bits/termios.h> directly; use <termios.h> instead."
23 typedef unsigned char cc_t;
24 typedef unsigned int speed_t;
25 typedef unsigned int tcflag_t;
27 #include <bits/termios-struct.h>
28 #include <bits/termios-c_cc.h>
29 #include <bits/termios-c_iflag.h>
30 #include <bits/termios-c_oflag.h>
32 /* c_cflag bit meaning */
33 #define B0 0000000 /* hang up */
47 #define B19200 0000016
48 #define B38400 0000017
53 #include <bits/termios-baud.h>
55 #include <bits/termios-c_cflag.h>
56 #include <bits/termios-c_lflag.h>
59 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
60 # define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
63 /* tcflow() and TCXONC use these */
69 /* tcflush() and TCFLSH use these */
74 #include <bits/termios-tcflow.h>
76 #include <bits/termios-misc.h>