Skip to content

[BUG] h_errno and EAI_xxx are wrongly mixed #15752

Closed

Description

@yamt

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

  • I have verified before submitting the report.

Activity

  1. added
    Type: Bug
    on Feb 4, 2025
  2. added
    Arch: all
    Area: Networking
    Area: Posix
    OS: Mac
    on Feb 4, 2025
  3. self-assigned this
    on Feb 12, 2026
  4. added 2 commits that reference this issue on Oct 15, 2026
    30deaa2
    a2ea564
  5. added a commit that references this issue on Oct 26, 2026
    6af8337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Arch: allArea: NetworkingArea: PosixOS: MacType: Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions