summaryrefslogtreecommitdiff
path: root/src/unix/solarish/illumos.rs
diff options
context:
space:
mode:
authorJoshua M. Clulow <josh@sysmgr.org>2021-11-22 01:06:34 -0800
committerJoshua M. Clulow <josh@sysmgr.org>2022-02-10 15:54:25 -0800
commit60213e169f66ec64f657a94ac6f2450b115021bb (patch)
treed98f873cd8d3043c92b71d03fc037c41049aac1c /src/unix/solarish/illumos.rs
parent0c417e8504879eb80bdd5e964daf37aac3d87204 (diff)
downloadrust-libc-60213e169f66ec64f657a94ac6f2450b115021bb.tar.gz
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
Diffstat (limited to 'src/unix/solarish/illumos.rs')
-rw-r--r--src/unix/solarish/illumos.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs
index b6baa4f059..12dd87ae99 100644
--- a/src/unix/solarish/illumos.rs
+++ b/src/unix/solarish/illumos.rs
@@ -53,6 +53,15 @@ pub const SOL_FILTER: ::c_int = 0xfffc;
pub const MR_HDR_AOUT: ::c_uint = 0x3;
+pub const B1000000: ::speed_t = 24;
+pub const B1152000: ::speed_t = 25;
+pub const B1500000: ::speed_t = 26;
+pub const B2000000: ::speed_t = 27;
+pub const B2500000: ::speed_t = 28;
+pub const B3000000: ::speed_t = 29;
+pub const B3500000: ::speed_t = 30;
+pub const B4000000: ::speed_t = 31;
+
extern "C" {
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;