Skip to content

Commit 3985d13

Browse files
committed
apple: Deprecate TIOCREMOTE
This was removed as of MacOS 12.0.1 (Monterey). Link: apple-oss-distributions/xnu@e6231be#diff-3c054321ffa9f7cfa71b5dfb244b27379af699ce4ead58446b3fe83f934140f3L152-R152
1 parent 0209508 commit 3985d13

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ fn test_apple(target: &str) {
328328
// FIXME(macos): the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
329329
"SF_SETTABLE" => true,
330330

331-
// FIXME(macos): XCode 13.1 doesn't have it.
331+
// FIXME(deprecated): Removed since 12.0.1 / xnu-8019.41.5. See `ttycom.h` at
332+
// https://github.com/apple-oss-distributions/xnu/commit/e6231be02a03711ca404e5121a151b24afbff733
332333
"TIOCREMOTE" => true,
333334

334335
_ => false,

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3126,6 +3126,7 @@ pub const TIOCMSET: c_ulong = 0x8004746d;
31263126
pub const TIOCMBIS: c_ulong = 0x8004746c;
31273127
pub const TIOCMBIC: c_ulong = 0x8004746b;
31283128
pub const TIOCMGET: c_ulong = 0x4004746a;
3129+
#[deprecated(since = "0.2.178", note = "Removed in MacOSX 12.0.1")]
31293130
pub const TIOCREMOTE: c_ulong = 0x80047469;
31303131
pub const TIOCGWINSZ: c_ulong = 0x40087468;
31313132
pub const TIOCSWINSZ: c_ulong = 0x80087467;

0 commit comments

Comments
 (0)