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
Change errno EWOULDBLOCK to make it an alias of EAGAIN.
  • Loading branch information
xingxue-ibm committed Oct 27, 2025
commit b50a78d34803deb12ecbe5b957f8f77b77c67d38
8 changes: 3 additions & 5 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5180,11 +5180,9 @@ fn test_aix(target: &str) {
// Skip 'sighandler_t' assignments.
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true,

// _ALL_SOURCE defines these errno values as aliases of other errno
// values, but POSIX requires each errno to be unique. Skip these
// values because non-unique values are being used which will
// fail the test when _ALL_SOURCE is defined.
"EWOULDBLOCK" | "ENOTEMPTY" => true,
// _ALL_SOURCE defines ENOTEMPTY as an alias of EEXIST, but POSIX
// requires its value to be unique. Skip.
"ENOTEMPTY" => true,

// FIXME(ctest): These constants are intended for use as the 'int request' argument
// to 'ioctl()'. However, the AIX headers do not explicitly define their types. If a
Expand Down
3 changes: 2 additions & 1 deletion src/unix/aix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,8 @@ pub const ENOLCK: c_int = 49;
pub const ENOCONNECT: c_int = 50;
pub const ESTALE: c_int = 52;
pub const EDIST: c_int = 53;
pub const EWOULDBLOCK: c_int = 54;
// POSIX allows EWOULDBLOCK to be the same value as EAGAIN.
pub const EWOULDBLOCK: c_int = EAGAIN;
pub const EINPROGRESS: c_int = 55;
pub const EALREADY: c_int = 56;
pub const ENOTSOCK: c_int = 57;
Expand Down