Skip to content

Commit f56cb76

Browse files
committed
Remove obsolete constants in version 1.0.0
1 parent 5c8a32d commit f56cb76

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

libc-test/build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,12 +2257,6 @@ fn test_freebsd(target: &str) {
22572257
// still be accepted and ignored at runtime.
22582258
"MAP_RENAME" | "MAP_NORESERVE" => true,
22592259

2260-
// FIXME: These are deprecated - remove in a couple of releases.
2261-
// These constants were removed in FreeBSD 11 (svn r262489),
2262-
// and they've never had any legitimate use outside of the
2263-
// base system anyway.
2264-
"CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => true,
2265-
22662260
// FIXME: This is deprecated - remove in a couple of releases.
22672261
// This was removed in FreeBSD 14 (git 1b4701fe1e8) and never
22682262
// should've been used anywhere anyway.

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3833,26 +3833,6 @@ pub const SHM_STAT: ::c_int = 13;
38333833
pub const SHM_INFO: ::c_int = 14;
38343834
pub const SHM_ANON: *mut ::c_char = 1 as *mut ::c_char;
38353835

3836-
// The *_MAXID constants never should've been used outside of the
3837-
// FreeBSD base system. And with the exception of CTL_P1003_1B_MAXID,
3838-
// they were all removed in svn r262489. They remain here for backwards
3839-
// compatibility only, and are scheduled to be removed in libc 1.0.0.
3840-
#[doc(hidden)]
3841-
#[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
3842-
pub const CTL_MAXID: ::c_int = 10;
3843-
#[doc(hidden)]
3844-
#[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
3845-
pub const KERN_MAXID: ::c_int = 38;
3846-
#[doc(hidden)]
3847-
#[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
3848-
pub const HW_MAXID: ::c_int = 13;
3849-
#[doc(hidden)]
3850-
#[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
3851-
pub const USER_MAXID: ::c_int = 21;
3852-
#[doc(hidden)]
3853-
#[deprecated(since = "0.2.74", note = "Removed in FreeBSD 13")]
3854-
pub const CTL_P1003_1B_MAXID: ::c_int = 26;
3855-
38563836
pub const MSG_NOTIFICATION: ::c_int = 0x00002000;
38573837
pub const MSG_NBIO: ::c_int = 0x00004000;
38583838
pub const MSG_COMPAT: ::c_int = 0x00008000;

0 commit comments

Comments
 (0)