On Wed, 14 Aug 2013, Emmanuel Dreyfus wrote:
Right, and what is the portable preferred way?
POSIX says "The getnameinfo() function shall be thread safe." If absence of thread safety was a bug in NetBSD, which has now been fixed, then I would just use getnameinfo() without worrying. --apb (Alan Barrett)