Skip to content

Conversation

@xingxue-ibm
Copy link
Contributor

Description

Although the POSIX standard requires errno values to be distinct, it allows EWOULDBLOCK to have the same value as EAGAIN (https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html).

[EWOULDBLOCK] Operation would block (may be the same value as [EAGAIN]). 

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI
@xingxue-ibm xingxue-ibm changed the title [AIX] Change errno EWOULDBLOCK to make it an alias of EAGAIN [AIX] Make errno EWOULDBLOCK an alias of EAGAIN Oct 27, 2025
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Thanks!

@tgross35 tgross35 added this pull request to the merge queue Oct 27, 2025
@xingxue-ibm
Copy link
Contributor Author

Thank you, @tgross35!

@xingxue-ibm
Copy link
Contributor Author

@rustbot label +stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Oct 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 27, 2025
@tgross35 tgross35 added this pull request to the merge queue Oct 27, 2025
Merged via the queue into rust-lang:main with commit 095aae8 Oct 27, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-unix stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

3 participants