1 #ifndef __LUNAIX_TERMIOS_H
2 #define __LUNAIX_TERMIOS_H
4 #include <lunaix/term.h>
10 #define IGNPAR _IGNPAR
13 #define ISTRIP _ISTRIP
18 #define PARMRK _PARMRK
27 #define ONLRET _ONLRET
37 #define ECHONL _ECHONL
38 #define ICANON _ICANON
40 #define IEXTEN _IEXTEN
41 #define NOFLSH _NOFLSH
45 #define VERASE _VERASE
50 #define VSTART _VSTART
69 #define B19200 _B19200
70 #define B38400 _B38400
72 #define CLOCAL _CLOCAL
78 #define CSTOPB _CSTOPB
79 #define CHUPCL _CHUPCL
80 #define CPARENB _CPARENB
81 #define CPARODD _CPARODD
83 #define TCSANOW _TCSANOW
84 #define TCSADRAIN _TCSADRAIN
85 #define TCSAFLUSH _TCSAFLUSH
87 static inline speed_t cfgetispeed(const struct termios* termios) { return termios->c_baud; }
88 static inline speed_t cfgetospeed(const struct termios* termios) { return termios->c_baud; }
90 static inline int cfsetispeed(struct termios* termios, speed_t baud)
96 termios->c_baud = baud;
100 static inline int cfsetospeed(struct termios* termios, speed_t baud)
106 termios->c_baud = baud;
113 //int tcflow(int, int);
114 //int tcflush(int, int);
115 // pid_t tcgetsid(int);
117 int tcgetattr(int, struct termios *);
118 int tcsendbreak(int, int);
119 int tcsetattr(int, int, const struct termios *);
121 #endif /* __LUNAIX_TERMIOS_H */