Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2692.added.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch adds a new Errno variant (constant) to nix, so it is a new feature, and thus this changelog file should be renamed to "2692.added.md".

Let me correct this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for fixing the name!

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Define errno EWOULDBLOCK as an alias of EAGAIN to match the AIX libc definition.
4 changes: 4 additions & 0 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3247,6 +3247,10 @@ mod consts {
EOPNOTSUPP = libc::EOPNOTSUPP,
}

impl Errno {
pub const EWOULDBLOCK: Errno = Errno::EAGAIN;
}

#[deprecated(
since = "0.28.0",
note = "please use `Errno::from_raw()` instead"
Expand Down
Loading