@node getaddrinfo
@subsection @code{getaddrinfo}
@findex getaddrinfo

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/getaddrinfo.html}

Gnulib module: getaddrinfo
@mindex getaddrinfo

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
HP-UX 11.11, Cygwin 1.5.x, mingw, MSVC 14.
@item
On native Windows, this function is declared in @code{<ws2tcpip.h>}
rather than in @code{<netdb.h>}.
@item
On native Windows, this function does not support
the @code{AI_NUMERICSERV} hints flag.
@item
On native Windows, in 32-bit mode, this function is defined
with a calling convention that is different from @code{cdecl}.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
Unlike glibc's implementation, gnulib's replacement does not support
internationalized domain names (IDN) encoding.
@end itemize
