summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@gatalith.at>2023-04-21 18:29:11 +0200
committerThomas Klausner <wiz@gatalith.at>2023-04-21 18:29:11 +0200
commit06fdfac833e833f641032b92a99f9cc1050a5169 (patch)
tree06aec1373db1262232211b56b07717f162d36588
parentf13fd4221a5e6c092ab13bd582295d022fba3dc6 (diff)
downloadrust-libc-06fdfac833e833f641032b92a99f9cc1050a5169.tar.gz
netbsd add deprecation warning for ELAST
Requested in #3040
-rw-r--r--src/unix/bsd/netbsdlike/netbsd/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 7ea3905bcf..906bdc9e9f 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -1423,6 +1423,12 @@ pub const ENOLINK: ::c_int = 95;
pub const EPROTO: ::c_int = 96;
pub const EOWNERDEAD: ::c_int = 97;
pub const ENOTRECOVERABLE: ::c_int = 98;
+#[deprecated(
+ since = "0.2.143",
+ note = "This value will always match the highest defined error number \
+ and thus is not stable. \
+ See #3040 for more info."
+)]
pub const ELAST: ::c_int = 98;
pub const F_DUPFD_CLOEXEC: ::c_int = 12;