|
10 | 10 | // spell-checker:ignore lnext rprnt susp dsusp swtch vdiscard veof veol verase vintr vkill vlnext vquit vreprint vstart vstop vsusp vswtc vwerase werase VDSUSP |
11 | 11 | // spell-checker:ignore sigquit sigtstp |
12 | 12 | // spell-checker:ignore cbreak decctlq evenp litout oddp |
| 13 | +// spell-checker:ignore cdtrdsr CDTRDSR ofill OFILL dsusp VDSUSP VFLUSHO VSTATUS noncanonical VMIN deciseconds noncanonical VTIME |
13 | 14 |
|
14 | 15 | use crate::Flag; |
15 | 16 |
|
@@ -65,10 +66,14 @@ pub const CONTROL_FLAGS: &[Flag<C>] = &[ |
65 | 66 | Flag::new_grouped("cs7", C::CS7, C::CSIZE), |
66 | 67 | Flag::new_grouped("cs8", C::CS8, C::CSIZE).sane(), |
67 | 68 | Flag::new("hupcl", C::HUPCL), |
| 69 | + // Not supported by nix and libc. |
| 70 | + // Flag::new("hup", C::HUP).hidden(), |
68 | 71 | Flag::new("cstopb", C::CSTOPB), |
69 | 72 | Flag::new("cread", C::CREAD).sane(), |
70 | 73 | Flag::new("clocal", C::CLOCAL), |
71 | 74 | Flag::new("crtscts", C::CRTSCTS), |
| 75 | + // Not supported by nix and libc. |
| 76 | + // Flag::new("cdtrdsr", C::CDTRDSR), |
72 | 77 | ]; |
73 | 78 |
|
74 | 79 | pub const INPUT_FLAGS: &[Flag<I>] = &[ |
@@ -112,6 +117,16 @@ pub const OUTPUT_FLAGS: &[Flag<O>] = &[ |
112 | 117 | target_os = "linux", |
113 | 118 | target_os = "macos" |
114 | 119 | ))] |
| 120 | + // Not supported by nix. |
| 121 | + // See: https://github.com/nix-rust/nix/pull/2701 |
| 122 | + // Flag::new("ofill", O::OFILL), |
| 123 | + // #[cfg(any( |
| 124 | + // target_os = "android", |
| 125 | + // target_os = "haiku", |
| 126 | + // target_os = "ios", |
| 127 | + // target_os = "linux", |
| 128 | + // target_os = "macos" |
| 129 | + // ))] |
115 | 130 | Flag::new("ofdel", O::OFDEL), |
116 | 131 | #[cfg(any( |
117 | 132 | target_os = "android", |
@@ -253,7 +268,15 @@ pub const LOCAL_FLAGS: &[Flag<L>] = &[ |
253 | 268 | Flag::new("echok", L::ECHOK).sane(), |
254 | 269 | Flag::new("echonl", L::ECHONL), |
255 | 270 | Flag::new("noflsh", L::NOFLSH), |
256 | | - // Not supported by nix |
| 271 | + // Not supported by nix and libc: |
| 272 | + // - https://github.com/rust-lang/libc/pull/4847 |
| 273 | + // - https://github.com/nix-rust/nix/pull/2703 |
| 274 | + // #[cfg(any( |
| 275 | + // target_os = "aix", |
| 276 | + // target_os = "android", |
| 277 | + // target_os = "haiku", |
| 278 | + // target_os = "linux", |
| 279 | + // ))] |
257 | 280 | // Flag::new("xcase", L::XCASE), |
258 | 281 | Flag::new("tostop", L::TOSTOP), |
259 | 282 | Flag::new("echoprt", L::ECHOPRT), |
@@ -377,6 +400,25 @@ pub const CONTROL_CHARS: &[(&str, S)] = &[ |
377 | 400 | ("lnext", S::VLNEXT), |
378 | 401 | // Discards the current line. |
379 | 402 | ("discard", S::VDISCARD), |
| 403 | + // deprecated compat option. |
| 404 | + // Not supported by nix and libc. |
| 405 | + // ("flush", S::VFLUSHO), |
| 406 | + #[cfg(any( |
| 407 | + target_os = "freebsd", |
| 408 | + target_os = "dragonfly", |
| 409 | + target_os = "ios", |
| 410 | + target_os = "macos", |
| 411 | + target_os = "netbsd", |
| 412 | + target_os = "openbsd", |
| 413 | + ))] |
| 414 | + // Status character |
| 415 | + ("status", S::VSTATUS), |
| 416 | + // Minimum number of characters for noncanonical read. |
| 417 | + // We handle this manually. |
| 418 | + // ("min", S::VMIN), |
| 419 | + // Timeout in deciseconds for noncanonical read. |
| 420 | + // We handle this manually. |
| 421 | + // ("time", S::VTIME), |
380 | 422 | ]; |
381 | 423 |
|
382 | 424 | /// This constant lists all possible combination settings, using a bool to represent if the setting is negatable |
|
0 commit comments