OLD | NEW |
---|---|
1 /* FIXME: From sys/sysvi386/sys */ | 1 /* FIXME: From sys/sysvi386/sys */ |
2 #ifndef _SYS_TERMIOS_H | 2 #ifndef _SYS_TERMIOS_H |
3 # define _SYS_TERMIOS_H | 3 # define _SYS_TERMIOS_H |
4 | 4 |
5 # define _XCGETA (('x'<<8)|1) | 5 # define _XCGETA (('x'<<8)|1) |
6 # define _XCSETA (('x'<<8)|2) | 6 # define _XCSETA (('x'<<8)|2) |
7 # define _XCSETAW (('x'<<8)|3) | 7 # define _XCSETAW (('x'<<8)|3) |
8 # define _XCSETAF (('x'<<8)|4) | 8 # define _XCSETAF (('x'<<8)|4) |
9 # define _TCSBRK (('T'<<8)|5) | 9 # define _TCSBRK (('T'<<8)|5) |
10 # define _TCFLSH (('T'<<8)|7) | 10 # define _TCFLSH (('T'<<8)|7) |
11 # define _TCXONC (('T'<<8)|6) | 11 # define _TCXONC (('T'<<8)|6) |
12 | 12 |
13 # define TCOOFF 0 | 13 # define TCOOFF 0 |
14 # define TCOON 1 | 14 # define TCOON 1 |
15 # define TCIOFF 2 | 15 # define TCIOFF 2 |
16 # define TCION 3 | 16 # define TCION 3 |
17 | 17 |
18 # define TCIFLUSH 0 | 18 # define TCIFLUSH 0 |
19 # define TCOFLUSH 1 | 19 # define TCOFLUSH 1 |
20 # define TCIOFLUSH 2 | 20 # define TCIOFLUSH 2 |
21 | 21 |
22 # define NCCS 32 | 22 # define NCCS 32 |
23 | 23 |
24 # define TCSAFLUSH _XCSETAF | 24 # define TCSAFLUSH _XCSETAF |
25 # define TCSANOW _XCSETA | 25 # define TCSANOW _XCSETA |
26 # define TCSADRAIN _XCSETAW | 26 # define TCSADRAIN _XCSETAW |
27 # define TCSADFLUSH _XCSETAF | 27 # define TCSADFLUSH _XCSETAF |
28 | 28 |
29 # define IGNBRK»000001 | 29 #define IGNBRK 0000001 |
30 # define BRKINT»000002 | 30 #define BRKINT 0000002 |
31 # define IGNPAR»000004 | 31 #define IGNPAR 0000004 |
32 # define PARMRK 000010 | 32 #define PARMRK 0000010 |
33 # define INPCK» 000020 | 33 #define INPCK 0000020 |
34 # define ISTRIP»000040 | 34 #define ISTRIP 0000040 |
35 # define INLCR» 000100 | 35 #define INLCR 0000100 |
36 # define IGNCR» 000200 | 36 #define IGNCR 0000200 |
37 # define ICRNL» 000400 | 37 #define ICRNL 0000400 |
38 # define IXON» 002000 | 38 #define IUCLC 0001000 |
39 # define IXANY 004000 | 39 #define IXON 0002000 |
40 # define IUTF8 004000 | 40 #define IXANY 0004000 |
Dmitry Polukhin
2013/03/29 07:40:05
IUTF8 had the same value that IXANY so Secure Shel
| |
41 # define IXOFF» 010000 | 41 #define IXOFF 0010000 |
42 #define IMAXBEL 0020000 | |
43 #define IUTF8 0040000 | |
42 | 44 |
43 # define OPOST 000001 | 45 # define OPOST 000001 |
44 # define OCRNL 000004 | 46 # define OCRNL 000004 |
45 # define ONLCR 000010 | 47 # define ONLCR 000010 |
46 # define ONOCR 000020 | 48 # define ONOCR 000020 |
47 # define TAB3 014000 | 49 # define TAB3 014000 |
48 | 50 |
49 # define CLOCAL 004000 | 51 # define CLOCAL 004000 |
50 # define CREAD 000200 | 52 # define CREAD 000200 |
51 # define PARODD 001000 | 53 # define PARODD 001000 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 # define cfsetospeed(tp,s) (((tp)->c_ospeed = (s)), 0) | 133 # define cfsetospeed(tp,s) (((tp)->c_ospeed = (s)), 0) |
132 # define cfsetispeed(tp,s) (((tp)->c_ispeed = (s)), 0) | 134 # define cfsetispeed(tp,s) (((tp)->c_ispeed = (s)), 0) |
133 # define tcdrain(fd) _ioctl (fd, _TCSBRK, 1) | 135 # define tcdrain(fd) _ioctl (fd, _TCSBRK, 1) |
134 # endif /* _NO_MACROS */ | 136 # endif /* _NO_MACROS */ |
135 | 137 |
136 int tcgetattr(int fd,struct termios *termios_p); | 138 int tcgetattr(int fd,struct termios *termios_p); |
137 int tcsetattr(int fd,int optional_actions,const struct termios *termios_p); | 139 int tcsetattr(int fd,int optional_actions,const struct termios *termios_p); |
138 | 140 |
139 #endif /* _SYS_TERMIOS_H */ | 141 #endif /* _SYS_TERMIOS_H */ |
140 | 142 |
OLD | NEW |