Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 98 additions & 23 deletions src/termios/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,37 +341,72 @@ bitflags! {
const ONLRET = c::ONLRET;

/// `OFILL`
#[cfg(not(bsd))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
)))]
const OFILL = c::OFILL;

/// `OFDEL`
#[cfg(not(bsd))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
)))]
const OFDEL = c::OFDEL;

/// `NLDLY`
#[cfg(not(any(bsd, solarish, target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "redox",
)))]
const NLDLY = c::NLDLY;

/// `NL0`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const NL0 = c::NL0;

/// `NL1`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const NL1 = c::NL1;

/// `CRDLY`
#[cfg(not(any(bsd, solarish, target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "redox",
)))]
const CRDLY = c::CRDLY;

/// `CR0`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const CR0 = c::CR0;

/// `CR1`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -382,7 +417,8 @@ bitflags! {
/// `CR2`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -393,7 +429,8 @@ bitflags! {
/// `CR3`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand Down Expand Up @@ -423,7 +460,8 @@ bitflags! {
/// `TAB1`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -434,7 +472,8 @@ bitflags! {
/// `TAB2`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -445,7 +484,8 @@ bitflags! {
/// `TAB3`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -457,24 +497,35 @@ bitflags! {
#[cfg(not(any(
bsd,
solarish,
target_os = "aix",
target_os = "haiku",
target_os = "redox",
)))]
const XTABS = c::XTABS;

/// `BSDLY`
#[cfg(not(any(bsd, solarish, target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "redox",
)))]
const BSDLY = c::BSDLY;

/// `BS0`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const BS0 = c::BS0;

/// `BS1`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -483,17 +534,29 @@ bitflags! {
const BS1 = c::BS1;

/// `FFDLY`
#[cfg(not(any(bsd, solarish, target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "redox",
)))]
const FFDLY = c::FFDLY;

/// `FF0`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const FF0 = c::FF0;

/// `FF1`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand All @@ -502,17 +565,29 @@ bitflags! {
const FF1 = c::FF1;

/// `VTDLY`
#[cfg(not(any(bsd, solarish, target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "redox",
)))]
const VTDLY = c::VTDLY;

/// `VT0`
#[cfg(not(any(bsd, solarish, target_os = "fuchsia", target_os = "redox")))]
#[cfg(not(any(
freebsdlike,
netbsdlike,
solarish,
target_os = "fuchsia",
target_os = "redox",
)))]
const VT0 = c::VT0;

/// `VT1`
#[cfg(not(any(
target_env = "musl",
bsd,
freebsdlike,
netbsdlike,
solarish,
target_os = "emscripten",
target_os = "fuchsia",
Expand Down
Loading