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 Mar 8, 2019
1 parent 2d0d360 commit 8049e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Add IP_RECVIF & IP_RECVDSTADDR. Enable IP_PKTINFO and IP6_PKTINFO on netbsd/openbsd.
([#1002](https://github.com/nix-rust/nix/pull/1002))

- Added `inotify_init1`, `inotify_add_watch` and `inotify_rm_watch` wrappers for
Android and Linux. ([#1016](https://github.com/nix-rust/nix/pull/1016))
- 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 8049e82

Please sign in to comment.