37#ifndef POSIX_TERMIOS_H_
38#define POSIX_TERMIOS_H_
44#if defined(_POSIX_VERSION)
46#pragma GCC diagnostic push
48#pragma clang diagnostic ignored "-Wgnu-include-next"
50#include_next <termios.h>
51#pragma GCC diagnostic pop
56#pragma GCC system_header
110#define _POSIX_VDISABLE 0xff
115#define IGNBRK 0x00000001
116#define BRKINT 0x00000002
117#define IGNPAR 0x00000004
118#define PARMRK 0x00000008
119#define INPCK 0x00000010
120#define ISTRIP 0x00000020
121#define INLCR 0x00000040
122#define IGNCR 0x00000080
123#define ICRNL 0x00000100
124#define IXON 0x00000200
125#define IXOFF 0x00000400
126#define IXANY 0x00000800
128#define IMAXBEL 0x00002000
134#define OPOST 0x00000001
135#define ONLCR 0x00000002
136#define TABDLY 0x00000004
137#define TAB0 0x00000000
138#define TAB3 0x00000004
139#define ONOEOT 0x00000008
140#define OCRNL 0x00000010
141#define ONOCR 0x00000020
142#define ONLRET 0x00000040
181#define B115200 115200
182#define B230400 230400
183#define B460800 460800
184#define B921600 921600
195#define CIGNORE 0x00000001
197#define CSIZE 0x00000300
198#define CS5 0x00000000
199#define CS6 0x00000100
200#define CS7 0x00000200
201#define CS8 0x00000300
202#define CSTOPB 0x00000400
203#define CREAD 0x00000800
204#define PARENB 0x00001000
205#define PARODD 0x00002000
206#define HUPCL 0x00004000
207#define CLOCAL 0x00008000
209#define CCTS_OFLOW 0x00010000
210#define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW)
211#define CRTS_IFLOW 0x00020000
212#define CDTR_IFLOW 0x00040000
213#define CDSR_OFLOW 0x00080000
214#define CCAR_OFLOW 0x00100000
224#define ECHOKE 0x00000001
226#define ECHOE 0x00000002
227#define ECHOK 0x00000004
228#define ECHO 0x00000008
229#define ECHONL 0x00000010
231#define ECHOPRT 0x00000020
232#define ECHOCTL 0x00000040
234#define ISIG 0x00000080
235#define ICANON 0x00000100
237#define ALTWERASE 0x00000200
239#define IEXTEN 0x00000400
240#define EXTPROC 0x00000800
241#define TOSTOP 0x00400000
243#define FLUSHO 0x00800000
244#define NOKERNINFO 0x02000000
245#define PENDIN 0x20000000
247#define NOFLSH 0x80000000
int tcsendbreak(int fildes, int duration)
int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p)
int tcgetattr(int fildes, struct termios *termios_p)
int tcflush(int fildes, int queue_selector)