Skip to content

Commit

Permalink
Merge #1665
Browse files Browse the repository at this point in the history
1665: Add ENOTRECOVERABLE and EOWNERDEAD error codes on DragonFly r=asomers a=rtzoeller



Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
  • Loading branch information
bors[bot] and rtzoeller committed Feb 22, 2022
2 parents b0a39cb + 1a51fbe commit fc3a77b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Implemented `Extend`, `FromIterator`, and `IntoIterator` for `SigSet` and
added `SigSet::iter` and `SigSetIter`.
(#[1553](https://github.com/nix-rust/nix/pull/1553))
- Added `ENOTRECOVERABLE` and `EOWNERDEAD` error codes on DragonFly.
(#[1665](https://github.com/nix-rust/nix/pull/1665))

### Changed

Expand Down
8 changes: 6 additions & 2 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,13 @@ fn desc(errno: Errno) -> &'static str {
EPROTO => "Protocol error",

#[cfg(any(target_os = "macos", target_os = "freebsd",
target_os = "ios", target_os = "openbsd"))]
target_os = "dragonfly", target_os = "ios",
target_os = "openbsd"))]
ENOTRECOVERABLE => "State not recoverable",

#[cfg(any(target_os = "macos", target_os = "freebsd",
target_os = "ios", target_os = "openbsd"))]
target_os = "dragonfly", target_os = "ios",
target_os = "openbsd"))]
EOWNERDEAD => "Previous owner died",

#[cfg(any(target_os = "macos", target_os = "freebsd",
Expand Down Expand Up @@ -1663,6 +1665,8 @@ mod consts {
ENOLINK = libc::ENOLINK,
EPROTO = libc::EPROTO,
ENOMEDIUM = libc::ENOMEDIUM,
ENOTRECOVERABLE = libc::ENOTRECOVERABLE,
EOWNERDEAD = libc::EOWNERDEAD,
EASYNC = libc::EASYNC,
}

Expand Down

0 comments on commit fc3a77b

Please sign in to comment.