summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d229427..568aff0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -104,6 +104,11 @@
//! cfsetspeed(termios, termios::os::dragonfly::B230400)
//! }
//!
+//! #[cfg(target_os = "solaris")]
+//! fn set_fastest_speed(termios: &mut Termios) -> io::Result<()> {
+//! cfsetspeed(termios, termios::os::solaris::B921600)
+//! }
+//!
//! # let fd = 1;
//! let mut termios = Termios::from_fd(fd).unwrap();
//! set_fastest_speed(&mut termios).unwrap();