Skip to content

Commit 871e570

Browse files
bors[bot]jmmv
andcommitted
Merge #969
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]>
2 parents 3ccd037 + d068383 commit 871e570

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1313
socket types on Linux and Android ([#1031](https://github.com/nix-rust/nix/pull/1031))
1414
- Add killpg
1515
([#1034](https://github.com/nix-rust/nix/pull/1034))
16+
- Added ENOTSUP errno support for Linux and Android.
17+
([#969](https://github.com/nix-rust/nix/pull/969))
1618

1719
### Changed
1820
- `PollFd` event flags renamed to `PollFlags` ([#1024](https://github.com/nix-rust/nix/pull/1024/))

src/errno.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ mod consts {
675675

676676
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
677677
pub const EDEADLOCK: Errno = Errno::EDEADLK;
678+
pub const ENOTSUP: Errno = Errno::EOPNOTSUPP;
678679

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

0 commit comments

Comments
 (0)