Skip to content

getaddrinfo POSIX problems #93

@ryniker

Description

@ryniker

pkg/minoca/os/apps/libc/dynamic/gaddrinf.c contains:

if ((Hints != NULL) && ((Hints->ai_flags & AI_NUMERICSERV) != 0)) {
    return EAI_SERVICE;
}

POSIX says:

The ai_flags field to which the hints parameter points shall be set to zero or be the bitwise-inclusive OR of one or more of the values AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST, AI_NUMERICSERV, AI_V4MAPPED, AI_ALL, and AI_ADDRCONFIG.

Minoca defines AI_ADDRCONFIG in apps/libc/include/netdb.h and should support its use in the hints argument of getaddrinfo.

I have not looked at whether Minoca supports IP6, but that is not the issue here. Support for AI_ADDRCONFIG is needed so Minoca can run POSIX-compliant programs that want to adapt to whatever network facilities are available in the current platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions