From 1a51fbe157a93a342c9d855eaf1c387821413372 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Mon, 21 Feb 2022 17:45:29 -0600 Subject: [PATCH] Add ENOTRECOVERABLE and EOWNERDEAD error codes on DragonFly --- CHANGELOG.md | 2 ++ src/errno.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 942d7b3dac..d85b42d066 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/errno.rs b/src/errno.rs index 3da246e823..17744fe22a 100644 --- a/src/errno.rs +++ b/src/errno.rs @@ -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", @@ -1663,6 +1665,8 @@ mod consts { ENOLINK = libc::ENOLINK, EPROTO = libc::EPROTO, ENOMEDIUM = libc::ENOMEDIUM, + ENOTRECOVERABLE = libc::ENOTRECOVERABLE, + EOWNERDEAD = libc::EOWNERDEAD, EASYNC = libc::EASYNC, }