use super::super::c;
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[repr(i32)]
pub enum OptionalActions {
Now = c::TCSANOW,
Drain = c::TCSADRAIN,
Flush = c::TCSAFLUSH,
}
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[repr(i32)]
pub enum QueueSelector {
IFlush = c::TCIFLUSH,
OFlush = c::TCOFLUSH,
IOFlush = c::TCIOFLUSH,
}
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[repr(i32)]
pub enum Action {
OOff = c::TCOOFF,
OOn = c::TCOON,
IOff = c::TCIOFF,
IOn = c::TCION,
}
pub type Termios = c::termios;
pub type Winsize = c::winsize;
pub type Tcflag = c::tcflag_t;
pub type Speed = c::speed_t;
pub const VINTR: usize = c::VINTR as usize;
pub const VQUIT: usize = c::VQUIT as usize;
pub const VERASE: usize = c::VERASE as usize;
pub const VKILL: usize = c::VKILL as usize;
pub const VEOF: usize = c::VEOF as usize;
pub const VTIME: usize = c::VTIME as usize;
pub const VMIN: usize = c::VMIN as usize;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const VSWTC: usize = c::VSWTC as usize;
pub const VSTART: usize = c::VSTART as usize;
pub const VSTOP: usize = c::VSTOP as usize;
pub const VSUSP: usize = c::VSUSP as usize;
pub const VEOL: usize = c::VEOL as usize;
#[cfg(not(target_os = "haiku"))]
pub const VREPRINT: usize = c::VREPRINT as usize;
#[cfg(not(target_os = "haiku"))]
pub const VDISCARD: usize = c::VDISCARD as usize;
#[cfg(not(target_os = "haiku"))]
pub const VWERASE: usize = c::VWERASE as usize;
#[cfg(not(target_os = "haiku"))]
pub const VLNEXT: usize = c::VLNEXT as usize;
pub const VEOL2: usize = c::VEOL2 as usize;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IGNBRK: c::c_uint = c::IGNBRK;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const BRKINT: c::c_uint = c::BRKINT;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IGNPAR: c::c_uint = c::IGNPAR;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const PARMRK: c::c_uint = c::PARMRK;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const INPCK: c::c_uint = c::INPCK;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ISTRIP: c::c_uint = c::ISTRIP;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const INLCR: c::c_uint = c::INLCR;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IGNCR: c::c_uint = c::IGNCR;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ICRNL: c::c_uint = c::ICRNL;
#[cfg(any(target_os = "haiku", target_os = "illumos", target_os = "solaris"))]
pub const IUCLC: c::c_uint = c::IUCLC;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IXON: c::c_uint = c::IXON;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const IXANY: c::c_uint = c::IXANY;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IXOFF: c::c_uint = c::IXOFF;
#[cfg(not(any(
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "redox"
)))]
pub const IMAXBEL: c::c_uint = c::IMAXBEL;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const IUTF8: c::c_uint = c::IUTF8;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const OPOST: c::c_uint = c::OPOST;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "redox",
)))]
pub const OLCUC: c::c_uint = c::OLCUC;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ONLCR: c::c_uint = c::ONLCR;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const OCRNL: c::c_uint = c::OCRNL;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ONOCR: c::c_uint = c::ONOCR;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ONLRET: c::c_uint = c::ONLRET;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
)))]
pub const OFILL: c::c_uint = c::OFILL;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
)))]
pub const OFDEL: c::c_uint = c::OFDEL;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const NLDLY: c::c_uint = c::NLDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const NL0: c::c_uint = c::NL0;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const NL1: c::c_uint = c::NL1;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CRDLY: c::c_uint = c::CRDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CR0: c::c_uint = c::CR0;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CR1: c::c_uint = c::CR1;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CR2: c::c_uint = c::CR2;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CR3: c::c_uint = c::CR3;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "illumos",
target_os = "redox",
target_os = "solaris",
)))]
pub const TABDLY: c::c_uint = c::TABDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const TAB0: c::c_uint = c::TAB0;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const TAB1: c::c_uint = c::TAB1;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const TAB2: c::c_uint = c::TAB2;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const TAB3: c::c_uint = c::TAB3;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const BSDLY: c::c_uint = c::BSDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const BS0: c::c_uint = c::BS0;
#[cfg(not(any(
target_env = "musl",
target_os = "emscripten",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const BS1: c::c_uint = c::BS1;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const FFDLY: c::c_uint = c::FFDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const FF0: c::c_uint = c::FF0;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const FF1: c::c_uint = c::FF1;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const VTDLY: c::c_uint = c::VTDLY;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const VT0: c::c_uint = c::VT0;
#[cfg(not(any(
target_env = "musl",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const VT1: c::c_uint = c::VT1;
pub const B0: Speed = c::B0;
pub const B50: Speed = c::B50;
pub const B75: Speed = c::B75;
pub const B110: Speed = c::B110;
pub const B134: Speed = c::B134;
pub const B150: Speed = c::B150;
pub const B200: Speed = c::B200;
pub const B300: Speed = c::B300;
pub const B600: Speed = c::B600;
pub const B1200: Speed = c::B1200;
pub const B1800: Speed = c::B1800;
pub const B2400: Speed = c::B2400;
pub const B4800: Speed = c::B4800;
pub const B9600: Speed = c::B9600;
pub const B19200: Speed = c::B19200;
pub const B38400: Speed = c::B38400;
pub const B57600: Speed = c::B57600;
pub const B115200: Speed = c::B115200;
pub const B230400: Speed = c::B230400;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "openbsd"
)))]
pub const B460800: Speed = c::B460800;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B500000: Speed = c::B500000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B576000: Speed = c::B576000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "openbsd"
)))]
pub const B921600: Speed = c::B921600;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B1000000: Speed = c::B1000000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B1152000: Speed = c::B1152000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B1500000: Speed = c::B1500000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B2000000: Speed = c::B2000000;
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B2500000: Speed = c::B2500000;
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B3000000: Speed = c::B3000000;
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B3500000: Speed = c::B3500000;
#[cfg(not(any(
target_arch = "sparc",
target_arch = "sparc64",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
)))]
pub const B4000000: Speed = c::B4000000;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CSIZE: c::c_uint = c::CSIZE;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CS5: c::c_uint = c::CS5;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CS6: c::c_uint = c::CS6;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CS7: c::c_uint = c::CS7;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CS8: c::c_uint = c::CS8;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CSTOPB: c::c_uint = c::CSTOPB;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CREAD: c::c_uint = c::CREAD;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const PARENB: c::c_uint = c::PARENB;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const PARODD: c::c_uint = c::PARODD;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const HUPCL: c::c_uint = c::HUPCL;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const CLOCAL: c::c_uint = c::CLOCAL;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ISIG: c::c_uint = c::ISIG;
pub const ICANON: Tcflag = c::ICANON;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ECHO: c::c_uint = c::ECHO;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ECHOE: c::c_uint = c::ECHOE;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ECHOK: c::c_uint = c::ECHOK;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const ECHONL: c::c_uint = c::ECHONL;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const NOFLSH: c::c_uint = c::NOFLSH;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const TOSTOP: c::c_uint = c::TOSTOP;
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
pub const IEXTEN: c::c_uint = c::IEXTEN;
#[cfg(not(any(
target_os = "emscripten",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "redox",
target_os = "solaris",
)))]
pub const EXTA: c::c_uint = c::EXTA;
#[cfg(not(any(
target_os = "emscripten",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "redox",
target_os = "solaris",
)))]
pub const EXTB: c::c_uint = c::EXTB;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
)))]
pub const CBAUD: c::c_uint = c::CBAUD;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CBAUDEX: c::c_uint = c::CBAUDEX;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_arch = "powerpc",
target_arch = "powerpc64",
)))]
pub const CIBAUD: c::tcflag_t = c::CIBAUD;
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]
pub const CIBAUD: c::tcflag_t = 0o77600000;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const CMSPAR: c::c_uint = c::CMSPAR;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const CRTSCTS: c::c_uint = c::CRTSCTS;
#[cfg(any(target_arch = "s390x", target_os = "haiku"))]
pub const XCASE: c::c_uint = c::XCASE;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const ECHOCTL: c::c_uint = c::ECHOCTL;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const ECHOPRT: c::c_uint = c::ECHOPRT;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const ECHOKE: c::c_uint = c::ECHOKE;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const FLUSHO: c::c_uint = c::FLUSHO;
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
pub const PENDIN: c::c_uint = c::PENDIN;
#[cfg(not(any(
target_os = "haiku",
target_os = "ios",
target_os = "macos",
target_os = "redox"
)))]
pub const EXTPROC: c::c_uint = c::EXTPROC;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
)))]
pub const XTABS: c::c_uint = c::XTABS;