Skip to content

Commit 60213e1

Browse files
committed
illumos: higher baud rates, more termios constants
We added baud rate constants that are source compatible with Linux systems when used with the cfsetspeed() family, in: https://www.illumos.org/issues/13975
1 parent 0c417e8 commit 60213e1

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/unix/solarish/illumos.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ pub const SOL_FILTER: ::c_int = 0xfffc;
5353

5454
pub const MR_HDR_AOUT: ::c_uint = 0x3;
5555

56+
pub const B1000000: ::speed_t = 24;
57+
pub const B1152000: ::speed_t = 25;
58+
pub const B1500000: ::speed_t = 26;
59+
pub const B2000000: ::speed_t = 27;
60+
pub const B2500000: ::speed_t = 28;
61+
pub const B3000000: ::speed_t = 29;
62+
pub const B3500000: ::speed_t = 30;
63+
pub const B4000000: ::speed_t = 31;
64+
5665
extern "C" {
5766
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
5867

src/unix/solarish/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,10 @@ pub const B921600: speed_t = 23;
20932093
pub const CSTART: ::tcflag_t = 0o21;
20942094
pub const CSTOP: ::tcflag_t = 0o23;
20952095
pub const CSWTCH: ::tcflag_t = 0o32;
2096+
pub const CBAUD: ::tcflag_t = 0o17;
2097+
pub const CIBAUD: ::tcflag_t = 0o3600000;
2098+
pub const CBAUDEXT: ::tcflag_t = 0o10000000;
2099+
pub const CIBAUDEXT: ::tcflag_t = 0o20000000;
20962100
pub const CSIZE: ::tcflag_t = 0o000060;
20972101
pub const CS5: ::tcflag_t = 0;
20982102
pub const CS6: ::tcflag_t = 0o000020;
@@ -2116,20 +2120,26 @@ pub const ISTRIP: ::tcflag_t = 0o000040;
21162120
pub const INLCR: ::tcflag_t = 0o000100;
21172121
pub const IGNCR: ::tcflag_t = 0o000200;
21182122
pub const ICRNL: ::tcflag_t = 0o000400;
2123+
pub const IUCLC: ::tcflag_t = 0o001000;
21192124
pub const IXON: ::tcflag_t = 0o002000;
21202125
pub const IXOFF: ::tcflag_t = 0o010000;
21212126
pub const IXANY: ::tcflag_t = 0o004000;
21222127
pub const IMAXBEL: ::tcflag_t = 0o020000;
2128+
pub const DOSMODE: ::tcflag_t = 0o100000;
21232129
pub const OPOST: ::tcflag_t = 0o000001;
2130+
pub const OLCUC: ::tcflag_t = 0o000002;
21242131
pub const ONLCR: ::tcflag_t = 0o000004;
21252132
pub const OCRNL: ::tcflag_t = 0o000010;
21262133
pub const ONOCR: ::tcflag_t = 0o000020;
21272134
pub const ONLRET: ::tcflag_t = 0o000040;
2135+
pub const OFILL: ::tcflag_t = 0o0000100;
2136+
pub const OFDEL: ::tcflag_t = 0o0000200;
21282137
pub const CREAD: ::tcflag_t = 0o000200;
21292138
pub const PARENB: ::tcflag_t = 0o000400;
21302139
pub const PARODD: ::tcflag_t = 0o001000;
21312140
pub const HUPCL: ::tcflag_t = 0o002000;
21322141
pub const CLOCAL: ::tcflag_t = 0o004000;
2142+
pub const CRTSXOFF: ::tcflag_t = 0o10000000000;
21332143
pub const CRTSCTS: ::tcflag_t = 0o20000000000;
21342144
pub const ISIG: ::tcflag_t = 0o000001;
21352145
pub const ICANON: ::tcflag_t = 0o000002;

0 commit comments

Comments
 (0)