Skip to content

Commit e9b3c64

Browse files
committed
Add ENOTSUP to Linux and Android
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.
1 parent 3ccd037 commit e9b3c64

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
@@ -630,6 +630,7 @@ mod consts {
630630
ENOPROTOOPT = libc::ENOPROTOOPT,
631631
EPROTONOSUPPORT = libc::EPROTONOSUPPORT,
632632
ESOCKTNOSUPPORT = libc::ESOCKTNOSUPPORT,
633+
ENOTSUP = libc::ENOTSUP,
633634
EOPNOTSUPP = libc::EOPNOTSUPP,
634635
EPFNOSUPPORT = libc::EPFNOSUPPORT,
635636
EAFNOSUPPORT = libc::EAFNOSUPPORT,

0 commit comments

Comments
 (0)