mirror of
https://gitee.com/openharmony/third_party_rust_nix
synced 2024-12-04 13:56:30 +00:00
Merge #1665
1665: Add ENOTRECOVERABLE and EOWNERDEAD error codes on DragonFly r=asomers a=rtzoeller Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
This commit is contained in:
commit
fc3a77b7fc
@ -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
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user