Skip to content

Commit 06bb0c8

Browse files
committed
FreeBSD: deprecate TIOCMGDTRWAIT and TIOCMSDTRWAIT
These constants were removed on `main` in ec605ff ("libc: fix ctest failure on freebsd15"). Mark them as deprecated with 0.2 rather than removing directly. Effectively a backport of #4685.
1 parent f931fda commit 06bb0c8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5432,7 +5432,8 @@ fn test_haiku(target: &str) {
54325432
// not defined on Haiku, but [get|set]priority is, so they are
54335433
// useful
54345434
"PRIO_MIN" | "PRIO_MAX" => true,
5435-
//
5435+
// FIXME(deprecated): deprecated in 0.2, removed in main
5436+
"TIOCMGDTRWAIT" | "TIOCMSDTRWAIT" => true,
54365437
_ => false,
54375438
}
54385439
});

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,15 @@ pub const TIOCGETD: c_ulong = 0x4004741a;
12381238
pub const TIOCSETD: c_ulong = 0x8004741b;
12391239
pub const TIOCGDRAINWAIT: c_ulong = 0x40047456;
12401240
pub const TIOCSDRAINWAIT: c_ulong = 0x80047457;
1241+
#[cfg_attr(
1242+
not(target_os = "dragonfly"),
1243+
deprecated = "unused since FreeBSD 8, removed in FreeBSD 15"
1244+
)]
12411245
pub const TIOCMGDTRWAIT: c_ulong = 0x4004745a;
1246+
#[cfg_attr(
1247+
not(target_os = "dragonfly"),
1248+
deprecated = "unused since FreeBSD 8, removed in FreeBSD 15"
1249+
)]
12421250
pub const TIOCMSDTRWAIT: c_ulong = 0x8004745b;
12431251
pub const TIOCDRAIN: c_ulong = 0x2000745e;
12441252
pub const TIOCEXT: c_ulong = 0x80047460;

0 commit comments

Comments
 (0)