Skip to content

Commit aab67be

Browse files
dybucctgross35
authored andcommitted
refactor: annotate ELAST constants as unstable
this patch annotates symbols that are known to have been the source of semver-breaking issues by using a macro for which another pr has been opened. these issues have been tracked thus far in #3131.
1 parent 2330f64 commit aab67be

8 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,6 +2143,9 @@ pub const ENOTRECOVERABLE: c_int = 104;
21432143
pub const EOWNERDEAD: c_int = 105;
21442144
pub const EQFULL: c_int = 106;
21452145
pub const ENOTCAPABLE: c_int = 107;
2146+
2147+
/// This symbols is prone to change across releases upstream.
2148+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
21462149
pub const ELAST: c_int = 107;
21472150

21482151
pub const EAI_AGAIN: c_int = 2;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,11 @@ pub const ENOMEDIUM: c_int = 93;
548548
pub const ENOTRECOVERABLE: c_int = 94;
549549
pub const EOWNERDEAD: c_int = 95;
550550
pub const EASYNC: c_int = 99;
551+
552+
/// This symbols is prone to change across releases upstream.
553+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
551554
pub const ELAST: c_int = 99;
555+
552556
pub const RLIMIT_POSIXLOCKS: c_int = 11;
553557
#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
554558
pub const RLIM_NLIMITS: crate::rlim_t = 12;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ s! {
258258
}
259259
}
260260

261+
/// This symbols is prone to change across releases upstream.
262+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
261263
pub const ELAST: c_int = 96;
264+
262265
pub const RAND_MAX: c_int = 0x7fff_fffd;
263266
pub const KI_NSPARE_PTR: usize = 6;
264267
pub const MINCORE_SUPER: c_int = 0x20;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ s! {
304304
}
305305

306306
pub const RAND_MAX: c_int = 0x7fff_fffd;
307+
308+
/// This symbols is prone to change across releases upstream.
309+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
307310
pub const ELAST: c_int = 97;
308311

309312
/// max length of devicename

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ s! {
317317
}
318318

319319
pub const RAND_MAX: c_int = 0x7fff_ffff;
320+
321+
/// This symbols is prone to change across releases upstream.
322+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
320323
pub const ELAST: c_int = 97;
321324

322325
pub const KF_TYPE_EVENTFD: c_int = 13;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ s! {
319319
}
320320

321321
pub const RAND_MAX: c_int = 0x7fff_ffff;
322+
323+
/// This symbols is prone to change across releases upstream.
324+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
322325
pub const ELAST: c_int = 97;
323326

324327
pub const KF_TYPE_EVENTFD: c_int = 13;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ s! {
321321
}
322322

323323
pub const RAND_MAX: c_int = 0x7fff_ffff;
324+
325+
/// This symbols is prone to change across releases upstream.
326+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
324327
pub const ELAST: c_int = 97;
325328

326329
pub const KF_TYPE_EVENTFD: c_int = 13;

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ pub const EBADMSG: c_int = 92;
945945
pub const ENOTRECOVERABLE: c_int = 93;
946946
pub const EOWNERDEAD: c_int = 94;
947947
pub const EPROTO: c_int = 95;
948+
949+
/// This symbols is prone to change across releases upstream.
950+
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.
948951
pub const ELAST: c_int = 95;
949952

950953
pub const F_DUPFD_CLOEXEC: c_int = 10;

0 commit comments

Comments
 (0)