From f13fd4221a5e6c092ab13bd582295d022fba3dc6 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 19 Dec 2022 00:47:02 +0100 Subject: netbsd add two more errnos available in NetBSD-current since 2020 --- libc-test/semver/netbsd.txt | 2 ++ src/unix/bsd/netbsdlike/netbsd/mod.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index d6d519fd58..62ba47df5c 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -1542,3 +1542,5 @@ EXTATTR_NAMESPACE_EMPTY extattr_list_fd extattr_list_file extattr_list_link +EOWNERDEAD +ENOTRECOVERABLE diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 41f6b23d12..7ea3905bcf 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -1421,7 +1421,9 @@ pub const ENOATTR: ::c_int = 93; pub const EMULTIHOP: ::c_int = 94; pub const ENOLINK: ::c_int = 95; pub const EPROTO: ::c_int = 96; -pub const ELAST: ::c_int = 96; +pub const EOWNERDEAD: ::c_int = 97; +pub const ENOTRECOVERABLE: ::c_int = 98; +pub const ELAST: ::c_int = 98; pub const F_DUPFD_CLOEXEC: ::c_int = 12; pub const F_CLOSEM: ::c_int = 10; -- cgit v1.2.1 From 06fdfac833e833f641032b92a99f9cc1050a5169 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 21 Apr 2023 18:29:11 +0200 Subject: netbsd add deprecation warning for ELAST Requested in #3040 --- src/unix/bsd/netbsdlike/netbsd/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.1