]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/bits/termios.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / bits / termios.h
CommitLineData
d2f5be2a 1/* termios type and macro definitions. Linux version.
2b778ceb 2 Copyright (C) 1993-2021 Free Software Foundation, Inc.
54d79e99 3 This file is part of the GNU C Library.
d2f5be2a 4
54d79e99 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
d2f5be2a 9
54d79e99
UD
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
41bdb6e2 13 Lesser General Public License for more details.
d2f5be2a 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
d2f5be2a 18
f4017d20
UD
19#ifndef _TERMIOS_H
20# error "Never include <bits/termios.h> directly; use <termios.h> instead."
21#endif
33a934a3 22
df4ef2ab
UD
23typedef unsigned char cc_t;
24typedef unsigned int speed_t;
25typedef unsigned int tcflag_t;
26
e5a50db3 27#include <bits/termios-struct.h>
48c1dd96 28#include <bits/termios-c_cc.h>
3127003e 29#include <bits/termios-c_iflag.h>
7b832018 30#include <bits/termios-c_oflag.h>
df4ef2ab
UD
31
32/* c_cflag bit meaning */
df4ef2ab
UD
33#define B0 0000000 /* hang up */
34#define B50 0000001
35#define B75 0000002
36#define B110 0000003
37#define B134 0000004
38#define B150 0000005
39#define B200 0000006
40#define B300 0000007
41#define B600 0000010
42#define B1200 0000011
43#define B1800 0000012
44#define B2400 0000013
45#define B4800 0000014
46#define B9600 0000015
47#define B19200 0000016
48#define B38400 0000017
dfbad9c8 49#ifdef __USE_MISC
9756dfe1
UD
50# define EXTA B19200
51# define EXTB B38400
52#endif
9c5d0d02
AZ
53#include <bits/termios-baud.h>
54
72eb6ecc 55#include <bits/termios-c_cflag.h>
22679ddf 56#include <bits/termios-c_lflag.h>
df4ef2ab 57
8083afa5
AZ
58#ifdef __USE_MISC
59/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
60# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
61#endif
62
df4ef2ab
UD
63/* tcflow() and TCXONC use these */
64#define TCOOFF 0
65#define TCOON 1
66#define TCIOFF 2
67#define TCION 3
68
69/* tcflush() and TCFLSH use these */
70#define TCIFLUSH 0
71#define TCOFLUSH 1
72#define TCIOFLUSH 2
73
3aa4a07e 74#include <bits/termios-tcflow.h>
6f343c1f
AZ
75
76#include <bits/termios-misc.h>