Skip to content

Commit

Permalink
Auto merge of #3040 - 0-wiz-0:netbsd, r=JohnTitor
Browse files Browse the repository at this point in the history
NetBSD: add two more errno values

available in NetBSD-current since 2020
  • Loading branch information
bors committed Apr 22, 2023
2 parents 76f34a2 + 06fdfac commit 9e90211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1567,3 +1567,5 @@ EXTATTR_NAMESPACE_EMPTY
extattr_list_fd
extattr_list_file
extattr_list_link
EOWNERDEAD
ENOTRECOVERABLE
10 changes: 9 additions & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Expand Up @@ -1464,7 +1464,15 @@ 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;
#[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;
pub const F_CLOSEM: ::c_int = 10;
Expand Down

0 comments on commit 9e90211

Please sign in to comment.