Skip to content

Commit

Permalink
Merge #969
Browse files Browse the repository at this point in the history
969: Add ENOTSUP to Linux and Android r=asomers a=jmmv

While ENOTSUP is defined as equal to EOPNOTSUPP on these platforms,
exposing the ENOTSUP symbol (as libc does) allows for writing portable
code that may want to reference this error code.

Co-authored-by: Julio Merino <[email protected]>
  • Loading branch information
bors[bot] and jmmv committed Mar 29, 2019
2 parents 3ccd037 + d068383 commit 871e570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
socket types on Linux and Android ([#1031](https://github.com/nix-rust/nix/pull/1031))
- Add killpg
([#1034](https://github.com/nix-rust/nix/pull/1034))
- Added ENOTSUP errno support for Linux and Android.
([#969](https://github.com/nix-rust/nix/pull/969))

### Changed
- `PollFd` event flags renamed to `PollFlags` ([#1024](https://github.com/nix-rust/nix/pull/1024/))
Expand Down
1 change: 1 addition & 0 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ mod consts {

pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
pub const EDEADLOCK: Errno = Errno::EDEADLK;
pub const ENOTSUP: Errno = Errno::EOPNOTSUPP;

pub fn from_i32(e: i32) -> Errno {
use self::Errno::*;
Expand Down

0 comments on commit 871e570

Please sign in to comment.