Skip to content

Commit cabf324

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 (backport <#4764>) (cherry picked from commit 3985d13)
1 parent 25b6c8c commit cabf324

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
@@ -340,7 +340,8 @@ fn test_apple(target: &str) {
340340
// FIXME(macos): the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
341341
"SF_SETTABLE" => true,
342342

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

346347
_ => false,

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,6 +3317,7 @@ pub const TIOCMSET: c_ulong = 0x8004746d;
33173317
pub const TIOCMBIS: c_ulong = 0x8004746c;
33183318
pub const TIOCMBIC: c_ulong = 0x8004746b;
33193319
pub const TIOCMGET: c_ulong = 0x4004746a;
3320+
#[deprecated(since = "0.2.178", note = "Removed in MacOSX 12.0.1")]
33203321
pub const TIOCREMOTE: c_ulong = 0x80047469;
33213322
pub const TIOCGWINSZ: c_ulong = 0x40087468;
33223323
pub const TIOCSWINSZ: c_ulong = 0x80087467;

0 commit comments

Comments
 (0)