[BUG] h_errno and EAI_xxx are wrongly mixed #15752
Labels
Arch: all
Issues that apply to all architectures
Area: Networking
Effects networking subsystem
Area: Posix
Posix issues
OS: Mac
Issues related to MacOS (building system, etc)
Type: Bug
Something isn't working
Description / Steps to reproduce the issue
gethostentbyname_r can return EAI_NONAME while it's expected to return an h_errno value. (eg. HOST_NOT_FOUND)
getaddrinfo treats an error from gethostentbyname_r as an EAI_xxx while it's actually an h_errno value.
maybe someone should audit the whole netdb logic.
On which OS does this issue occur?
[OS: Mac]
What is the version of your OS?
macOS 15.3
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Networking], [Area: Posix]
Host information
No response
Verification
The text was updated successfully, but these errors were encountered: