aboutsummaryrefslogtreecommitdiff
path: root/win32/termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/termios.h')
-rw-r--r--win32/termios.h17
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
104typedef unsigned char cc_t; 116typedef unsigned char cc_t;
105typedef unsigned int tcflag_t; 117typedef unsigned int tcflag_t;
@@ -127,3 +139,8 @@ struct winsize {
127int tcflush(int fd, int queue_selector); 139int tcflush(int fd, int queue_selector);
128int tcgetattr(int fd, struct termios *t); 140int tcgetattr(int fd, struct termios *t);
129int tcsetattr(int fd, int mode, const struct termios *t); 141int tcsetattr(int fd, int mode, const struct termios *t);
142
143speed_t cfgetispeed(const struct termios *termios_p);
144speed_t cfgetospeed(const struct termios *termios_p);
145int cfsetispeed(struct termios *termios_p, speed_t speed);
146int cfsetospeed(struct termios *termios_p, speed_t speed);