Added tcdrain(), cfgetospeed(), cfsetospeed(), cfgetispeed(), and cfsetispeed().

This commit is contained in:
Joel Sherrill
1998-05-22 14:49:49 +00:00
parent cdf6fcbccb
commit e2476ed4d1
3 changed files with 15 additions and 3 deletions

View File

@@ -173,9 +173,13 @@ struct termios {
#define TCSADRAIN 1 #define TCSADRAIN 1
#define TCSAFLUSH 2 #define TCSAFLUSH 2
/* Currently we support only tcgetattr and tcsetattr */
int tcgetattr(int, struct termios *); int tcgetattr(int, struct termios *);
int tcsetattr(int, int, struct termios *); int tcsetattr(int, int, struct termios *);
int tcdrain(int);
speed_t cfgetospeed(const struct termios *tp);
int cfsetospeed(struct termios *tp, speed_t speed);
speed_t cfgetispeed(const struct termios *tp);
int cfsetispeed(struct termios *tp, speed_t speed);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -173,9 +173,13 @@ struct termios {
#define TCSADRAIN 1 #define TCSADRAIN 1
#define TCSAFLUSH 2 #define TCSAFLUSH 2
/* Currently we support only tcgetattr and tcsetattr */
int tcgetattr(int, struct termios *); int tcgetattr(int, struct termios *);
int tcsetattr(int, int, struct termios *); int tcsetattr(int, int, struct termios *);
int tcdrain(int);
speed_t cfgetospeed(const struct termios *tp);
int cfsetospeed(struct termios *tp, speed_t speed);
speed_t cfgetispeed(const struct termios *tp);
int cfsetispeed(struct termios *tp, speed_t speed);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -173,9 +173,13 @@ struct termios {
#define TCSADRAIN 1 #define TCSADRAIN 1
#define TCSAFLUSH 2 #define TCSAFLUSH 2
/* Currently we support only tcgetattr and tcsetattr */
int tcgetattr(int, struct termios *); int tcgetattr(int, struct termios *);
int tcsetattr(int, int, struct termios *); int tcsetattr(int, int, struct termios *);
int tcdrain(int);
speed_t cfgetospeed(const struct termios *tp);
int cfsetospeed(struct termios *tp, speed_t speed);
speed_t cfgetispeed(const struct termios *tp);
int cfsetispeed(struct termios *tp, speed_t speed);
#ifdef __cplusplus #ifdef __cplusplus
} }