> Here is the discussion on Wine bug list
> https://bugs.winehq.org/show_bug.cgi?id=40865
>
> "In GNU/Linux we expect the function to return ERANGE in order to keep
> reallocating memory until the function is satisfied.
> But in NetBSD it seems like they use a different approach of returning
> "non-zero" and setting locerr to ENOBUFS.
> I could not find the man for this function in NetBSD. What version of NetBSD
> are you using?"
> https://bugs.winehq.org/show_bug.cgi?id=40865#c4
>
> "I downloaded and installed it and gethostbyname_r is not documented
> anywhere, it is not even in header files.
> Maybe it was introduced recently, can you open a sister bug with NetBSD and
> quote or link to this comment and comment 4
> to check what they have to tell us about it please?
>
> If they just introduced the function and want it to be a drop-in replacement
> for the GNU/Linux function I guess they still have time
> to change the function.
>
> I never used NetBSD so I may be very well doing something wrong too."
> https://bugs.winehq.org/show_bug.cgi?id=40865#c6