36#ifndef POSIX_TERMIOS_H_
37#define POSIX_TERMIOS_H_
43#if defined(_POSIX_VERSION)
45#pragma GCC diagnostic push
47#pragma clang diagnostic ignored "-Wgnu-include-next"
49#include_next <termios.h>
50#pragma GCC diagnostic pop
55#pragma GCC system_header
109#define _POSIX_VDISABLE 0xff
114#define IGNBRK 0x00000001
115#define BRKINT 0x00000002
116#define IGNPAR 0x00000004
117#define PARMRK 0x00000008
118#define INPCK 0x00000010
119#define ISTRIP 0x00000020
120#define INLCR 0x00000040
121#define IGNCR 0x00000080
122#define ICRNL 0x00000100
123#define IXON 0x00000200
124#define IXOFF 0x00000400
125#define IXANY 0x00000800
127#define IMAXBEL 0x00002000
133#define OPOST 0x00000001
134#define ONLCR 0x00000002
135#define TABDLY 0x00000004
136#define TAB0 0x00000000
137#define TAB3 0x00000004
138#define ONOEOT 0x00000008
139#define OCRNL 0x00000010
140#define ONOCR 0x00000020
141#define ONLRET 0x00000040
180#define B115200 115200
181#define B230400 230400
182#define B460800 460800
183#define B921600 921600
194#define CIGNORE 0x00000001
196#define CSIZE 0x00000300
197#define CS5 0x00000000
198#define CS6 0x00000100
199#define CS7 0x00000200
200#define CS8 0x00000300
201#define CSTOPB 0x00000400
202#define CREAD 0x00000800
203#define PARENB 0x00001000
204#define PARODD 0x00002000
205#define HUPCL 0x00004000
206#define CLOCAL 0x00008000
208#define CCTS_OFLOW 0x00010000
209#define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW)
210#define CRTS_IFLOW 0x00020000
211#define CDTR_IFLOW 0x00040000
212#define CDSR_OFLOW 0x00080000
213#define CCAR_OFLOW 0x00100000
223#define ECHOKE 0x00000001
225#define ECHOE 0x00000002
226#define ECHOK 0x00000004
227#define ECHO 0x00000008
228#define ECHONL 0x00000010
230#define ECHOPRT 0x00000020
231#define ECHOCTL 0x00000040
233#define ISIG 0x00000080
234#define ICANON 0x00000100
236#define ALTWERASE 0x00000200
238#define IEXTEN 0x00000400
239#define EXTPROC 0x00000800
240#define TOSTOP 0x00400000
242#define FLUSHO 0x00800000
243#define NOKERNINFO 0x02000000
244#define PENDIN 0x20000000
246#define NOFLSH 0x80000000
316 const struct termios* termios_p);
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)