[haiku-bugs] Re: [Haiku] #12166: gethostbyaddr_r missing in revised network code

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 18 Jun 2015 04:41:54 -0000

#12166: gethostbyaddr_r missing in revised network code
-------------------------+----------------------------
Reporter: haiqu | Owner: pulkomandy
Type: bug | Status: closed
Priority: normal | Milestone: R1/beta1
Component: - General | Version: R1/Development
Resolution: fixed | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------

Comment (by pulkomandy):

I thought we were binary compatible only with BeOS, so we don't have to
maintain compatibility with older versions of Haiku.

As gnulib says: "This function is missing on some platforms: Mac OS X
10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 11, IRIX
5.3, Cygwin, mingw, MSVC 9, Interix 3.5, BeOS.". So, by "other platforms",
you actually mean "Linux".

In netresolv the function is not implemented at all. It could be rewritten
as a wrapper around gethostbyaddr (with a mutex, but that would be slow)
or around getaddrinfo.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12166#comment:6>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: