summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorXavier L'Heureux <xavier.lheureux@icloud.com>2019-08-15 08:12:50 -0400
committerXavier L'Heureux <dev.xlheureux@gmail.com>2020-05-17 21:05:45 -0400
commit639d3b87a816bdb404de28d974ca8916fabec351 (patch)
treeb02150e02a68ce32e48e9467b88e7b8c954f0152 /src/sys/termios.rs
parente94c139a47055d3492d6ccccfce4acbcba9d7391 (diff)
downloadnix-639d3b87a816bdb404de28d974ca8916fabec351.zip
Add termio support
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r--src/sys/termios.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index 68b0dbc8..0b9bfe90 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -818,6 +818,7 @@ libc_bitflags! {
PARODD;
HUPCL;
CLOCAL;
+ #[cfg(not(target_os = "redox"))]
CRTSCTS;
#[cfg(any(target_os = "android", target_os = "linux"))]
CBAUD;
@@ -868,12 +869,15 @@ libc_bitflags! {
libc_bitflags! {
/// Flags for setting any local modes
pub struct LocalFlags: tcflag_t {
+ #[cfg(not(target_os = "redox"))]
ECHOKE;
ECHOE;
ECHOK;
ECHO;
ECHONL;
+ #[cfg(not(target_os = "redox"))]
ECHOPRT;
+ #[cfg(not(target_os = "redox"))]
ECHOCTL;
ISIG;
ICANON;
@@ -885,8 +889,10 @@ libc_bitflags! {
target_os = "openbsd"))]
ALTWERASE;
IEXTEN;
+ #[cfg(not(target_os = "redox"))]
EXTPROC;
TOSTOP;
+ #[cfg(not(target_os = "redox"))]
FLUSHO;
#[cfg(any(target_os = "freebsd",
target_os = "dragonfly",
@@ -895,6 +901,7 @@ libc_bitflags! {
target_os = "netbsd",
target_os = "openbsd"))]
NOKERNINFO;
+ #[cfg(not(target_os = "redox"))]
PENDIN;
NOFLSH;
}