Skip to content

Commit 9e90211

Browse files
committed
Auto merge of #3040 - 0-wiz-0:netbsd, r=JohnTitor
NetBSD: add two more errno values available in NetBSD-current since 2020
2 parents 76f34a2 + 06fdfac commit 9e90211

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

libc-test/semver/netbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,3 +1567,5 @@ EXTATTR_NAMESPACE_EMPTY
15671567
extattr_list_fd
15681568
extattr_list_file
15691569
extattr_list_link
1570+
EOWNERDEAD
1571+
ENOTRECOVERABLE

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,15 @@ pub const ENOATTR: ::c_int = 93;
14641464
pub const EMULTIHOP: ::c_int = 94;
14651465
pub const ENOLINK: ::c_int = 95;
14661466
pub const EPROTO: ::c_int = 96;
1467-
pub const ELAST: ::c_int = 96;
1467+
pub const EOWNERDEAD: ::c_int = 97;
1468+
pub const ENOTRECOVERABLE: ::c_int = 98;
1469+
#[deprecated(
1470+
since = "0.2.143",
1471+
note = "This value will always match the highest defined error number \
1472+
and thus is not stable. \
1473+
See #3040 for more info."
1474+
)]
1475+
pub const ELAST: ::c_int = 98;
14681476

14691477
pub const F_DUPFD_CLOEXEC: ::c_int = 12;
14701478
pub const F_CLOSEM: ::c_int = 10;

0 commit comments

Comments
 (0)