Skip to content

Commit

Permalink
Add ENOTSUP to Linux and Android
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmmv committed Nov 9, 2018
1 parent 8c3e43c commit 97da394
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 @@ -34,6 +34,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
([#952](https://github.com/nix-rust/nix/pull/952))
- Added the `time_t` and `suseconds_t` public aliases within `sys::time`.
([#968](https://github.com/nix-rust/nix/pull/968))
- Added ENOTSUP errno support for Linux and Android.
([#969](https://github.com/nix-rust/nix/pull/969))

### Changed
- Increased required Rust version to 1.24.1
Expand Down
1 change: 1 addition & 0 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,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 97da394

Please sign in to comment.