11 ms·
getaddrinfo() is not a legacy API, it's a standard cross platform API for doing DNS lookups.
by newaccount74 2y ago
getaddrinfo() is not a legacy API, it's a standard cross platform API for doing DNS lookups.
- indrora 2y agoSpecifically defined by POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/g...
- trillic 2y agoIt's POSIX which Apple generally abides by except for timer_create. macOS is historically officially a UNIX, which would require getaddrinfo.
- keyboardcaper 2y agoFunny how that goes: macOS is POSIX certified but no other desktop BSD or Linux is.
- spookie 2y agoBecause it's an expensive and lengthy process. And every version would need to be re-certified.
- ajross 2y agoThere have been POSIX-certified Linux variants. But the open source projects you use don't bother (for obvious reasons) and commercial derivatives like Android and ChromeOS don't need it. Similarly Window NT was POSIX-certified way back in the day yet its descendants aren't, even though they implement the same API set (via very different technology).
- vbezhenar 2y agoAccording to https://www.opengroup.org/openbrand/register/ https://www.opengroup.org/openbrand/register/ macOS 15 is not certified.
- nox101 2y agoit is apparently on Mac and arguably with good reason. See this comment https://news.ycombinator.com/item?id=41572770 https://news.ycombinator.com/item?id=41572770