diff options
Diffstat (limited to 'win32/termios.h')
-rw-r--r-- | win32/termios.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/win32/termios.h b/win32/termios.h index 011a37eb9..9255e0141 100644 --- a/win32/termios.h +++ b/win32/termios.h | |||
@@ -100,6 +100,18 @@ | |||
100 | #define B2400 0000013 | 100 | #define B2400 0000013 |
101 | #define B4800 0000014 | 101 | #define B4800 0000014 |
102 | #define B9600 0000015 | 102 | #define B9600 0000015 |
103 | #define CSIZE 0000060 | ||
104 | #define CS5 0000000 | ||
105 | #define CS6 0000020 | ||
106 | #define CS7 0000040 | ||
107 | #define CS8 0000060 | ||
108 | #define CSTOPB 0000100 | ||
109 | #define CREAD 0000200 | ||
110 | #define PARENB 0000400 | ||
111 | #define PARODD 0001000 | ||
112 | #define HUPCL 0002000 | ||
113 | #define CLOCAL 0004000 | ||
114 | |||
103 | 115 | ||
104 | typedef unsigned char cc_t; | 116 | typedef unsigned char cc_t; |
105 | typedef unsigned int tcflag_t; | 117 | typedef unsigned int tcflag_t; |
@@ -127,3 +139,8 @@ struct winsize { | |||
127 | int tcflush(int fd, int queue_selector); | 139 | int tcflush(int fd, int queue_selector); |
128 | int tcgetattr(int fd, struct termios *t); | 140 | int tcgetattr(int fd, struct termios *t); |
129 | int tcsetattr(int fd, int mode, const struct termios *t); | 141 | int tcsetattr(int fd, int mode, const struct termios *t); |
142 | |||
143 | speed_t cfgetispeed(const struct termios *termios_p); | ||
144 | speed_t cfgetospeed(const struct termios *termios_p); | ||
145 | int cfsetispeed(struct termios *termios_p, speed_t speed); | ||
146 | int cfsetospeed(struct termios *termios_p, speed_t speed); | ||