Skip to content

Commit fc3a77b

Browse files
bors[bot]rtzoeller
andauthored
Merge #1665
1665: Add ENOTRECOVERABLE and EOWNERDEAD error codes on DragonFly r=asomers a=rtzoeller Co-authored-by: Ryan Zoeller <[email protected]>
2 parents b0a39cb + 1a51fbe commit fc3a77b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
5050
- Implemented `Extend`, `FromIterator`, and `IntoIterator` for `SigSet` and
5151
added `SigSet::iter` and `SigSetIter`.
5252
(#[1553](https://github.com/nix-rust/nix/pull/1553))
53+
- Added `ENOTRECOVERABLE` and `EOWNERDEAD` error codes on DragonFly.
54+
(#[1665](https://github.com/nix-rust/nix/pull/1665))
5355

5456
### Changed
5557

src/errno.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,13 @@ fn desc(errno: Errno) -> &'static str {
608608
EPROTO => "Protocol error",
609609

610610
#[cfg(any(target_os = "macos", target_os = "freebsd",
611-
target_os = "ios", target_os = "openbsd"))]
611+
target_os = "dragonfly", target_os = "ios",
612+
target_os = "openbsd"))]
612613
ENOTRECOVERABLE => "State not recoverable",
613614

614615
#[cfg(any(target_os = "macos", target_os = "freebsd",
615-
target_os = "ios", target_os = "openbsd"))]
616+
target_os = "dragonfly", target_os = "ios",
617+
target_os = "openbsd"))]
616618
EOWNERDEAD => "Previous owner died",
617619

618620
#[cfg(any(target_os = "macos", target_os = "freebsd",
@@ -1663,6 +1665,8 @@ mod consts {
16631665
ENOLINK = libc::ENOLINK,
16641666
EPROTO = libc::EPROTO,
16651667
ENOMEDIUM = libc::ENOMEDIUM,
1668+
ENOTRECOVERABLE = libc::ENOTRECOVERABLE,
1669+
EOWNERDEAD = libc::EOWNERDEAD,
16661670
EASYNC = libc::EASYNC,
16671671
}
16681672

0 commit comments

Comments
 (0)