more uapi bits
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#ifndef __ZINNIA_UAPI_TERMIOS_H
|
||||
#define __ZINNIA_UAPI_TERMIOS_H
|
||||
|
||||
#include <uapi/types.h>
|
||||
|
||||
#define __NCCS 32
|
||||
|
||||
#define __VINTR 0
|
||||
#define __VQUIT 1
|
||||
#define __VERASE 2
|
||||
#define __VKILL 3
|
||||
#define __VEOF 4
|
||||
#define __VTIME 5
|
||||
#define __VMIN 6
|
||||
#define __VSWTC 7
|
||||
#define __VSTART 8
|
||||
#define __VSTOP 9
|
||||
#define __VSUSP 10
|
||||
#define __VEOL 11
|
||||
#define __VREPRINT 12
|
||||
#define __VDISCARD 13
|
||||
#define __VWERASE 14
|
||||
#define __VLNEXT 15
|
||||
#define __VEOL2 16
|
||||
|
||||
#define __IGNBRK 0000001
|
||||
#define __BRKINT 0000002
|
||||
#define __IGNPAR 0000004
|
||||
#define __PARMRK 0000010
|
||||
#define __INPCK 0000020
|
||||
#define __ISTRIP 0000040
|
||||
#define __INLCR 0000100
|
||||
#define __IGNCR 0000200
|
||||
#define __ICRNL 0000400
|
||||
#define __IUCLC 0001000
|
||||
#define __IXON 0002000
|
||||
#define __IXANY 0004000
|
||||
#define __IXOFF 0010000
|
||||
|
||||
#define __OPOST 0000001
|
||||
#define __OLCUC 0000002
|
||||
#define __ONLCR 0000004
|
||||
#define __OCRNL 0000010
|
||||
#define __ONOCR 0000020
|
||||
#define __ONLRET 0000040
|
||||
|
||||
#define __CSIZE 0000060
|
||||
#define __CS5 0000000
|
||||
#define __CS6 0000020
|
||||
#define __CS7 0000040
|
||||
#define __CS8 0000060
|
||||
#define __CSTOPB 0000100
|
||||
#define __CREAD 0000200
|
||||
#define __PARENB 0000400
|
||||
#define __PARODD 0001000
|
||||
#define __HUPCL 0002000
|
||||
#define __CLOCAL 0004000
|
||||
|
||||
#define __ISIG 0000001
|
||||
#define __ICANON 0000002
|
||||
#define __ECHO 0000010
|
||||
#define __ECHOE 0000020
|
||||
#define __ECHOK 0000040
|
||||
#define __ECHONL 0000100
|
||||
#define __NOFLSH 0000200
|
||||
#define __TOSTOP 0000400
|
||||
#define __IEXTEN 0100000
|
||||
|
||||
#define __TCIFLUSH 0
|
||||
#define __TCOFLUSH 1
|
||||
#define __TCIOFLUSH 2
|
||||
|
||||
typedef unsigned char __cc_t;
|
||||
typedef unsigned int __speed_t;
|
||||
typedef unsigned int __tcflag_t;
|
||||
|
||||
struct __termios {
|
||||
__tcflag_t c_iflag;
|
||||
__tcflag_t c_oflag;
|
||||
__tcflag_t c_cflag;
|
||||
__tcflag_t c_lflag;
|
||||
__cc_t c_line;
|
||||
__cc_t c_cc[__NCCS];
|
||||
__speed_t c_ibaud;
|
||||
__speed_t c_obaud;
|
||||
};
|
||||
|
||||
struct __winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
unsigned short ws_xpixel;
|
||||
unsigned short ws_ypixel;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user