summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--src/errno.rs13
2 files changed, 2 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2ac3341..b7a3ecd9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -57,6 +57,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
longer be needed now that async/await are available. `AioCb`s now work
exclusively with borrowed buffers, not owned ones.
(#[1440](https://github.com/nix-rust/nix/pull/1440))
+- Removed some Errno values from platforms where they aren't actually defined.
+ (#[1452](https://github.com/nix-rust/nix/pull/1452))
## [0.20.0] - 20 February 2021
### Added
diff --git a/src/errno.rs b/src/errno.rs
index 9275febe..d8cc626f 100644
--- a/src/errno.rs
+++ b/src/errno.rs
@@ -1107,8 +1107,6 @@ mod consts {
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
pub const EDEADLOCK: Errno = Errno::EDEADLK;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
@@ -1332,8 +1330,6 @@ mod consts {
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
pub const EDEADLOCK: Errno = Errno::EDEADLK;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
@@ -1547,8 +1543,6 @@ mod consts {
pub const EDEADLOCK: Errno = Errno::EDEADLK;
pub const EOPNOTSUPP: Errno = Errno::ENOTSUP;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
@@ -1759,8 +1753,6 @@ mod consts {
pub const ELAST: Errno = Errno::ENOTSUP;
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
@@ -1972,8 +1964,6 @@ mod consts {
pub const ELAST: Errno = Errno::ENOTSUP;
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
@@ -2172,11 +2162,8 @@ mod consts {
EPROTO = libc::EPROTO,
}
- pub const ELAST: Errno = Errno::UnknownErrno;
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
- pub const EL2NSYNC: Errno = Errno::UnknownErrno;
-
pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;