0

Where is gethostbyaddr and netdb.h functions implemented? I can only find the header file where it is extern'ed (netdb.h)

Thanks

user2034614
  • 59
  • 1
  • 6

1 Answers1

2

It is implemented in glibc.

BTW, use getnameinfo() and getaddrinfo(). gethostbyaddr() is obsolete, mostly because of IPv6.

Peter L.
  • 1,041
  • 2
  • 22
  • 26
  • 1
    More correctly, it's implemented in **libc**. Which happens to be **glibc** in almost all non-embedded Linux systems (and in Hurd, I guess) – Celada Feb 21 '13 at 02:53
  • @Celada True. It is also notable that ucLibc does not implement these functions the same way as the other libc packages. – Peter L. Feb 21 '13 at 03:33