Hi,
Some *BSD don't provide a reentrant gethostbyname:
<q source='manpage of a BSD'> BUGS These functions use static data storage; if the data is needed for future use, it should be copied before any subsequent calls overwrite it. Only the Internet address format is currently understood. </q>
The only one I know that doesn't work is openBSD >= 3.3. (produces random lookups)
Does anyone know the situation better? It is for disabling threaded dns lookups at configure time.
Would gethostbyname_r() solve this? -- Trent Jarvi taj@www.linux.org.uk
On Sun, 14 Dec 2003, Trent Jarvi wrote:
Some *BSD don't provide a reentrant gethostbyname:
<q source='manpage of a BSD'> BUGS These functions use static data storage; if the data is needed for future use, it should be copied before any subsequent calls overwrite it. Only the Internet address format is currently understood. </q>
The only one I know that doesn't work is openBSD >= 3.3. (produces random lookups)
Does anyone know the situation better? It is for disabling threaded dns lookups at configure time.
Would gethostbyname_r() solve this?
I had getaddrinfo patch, but it was done, when dillo had no ipv6 support and so it cannot be directly applied now. getaddrinfo has some advantages, but i do not know how well it is supported on different unix flavors. Although getaddrinfo is in posix standard, when gethostbyname_r imho is not. The dillo way of using gethostbyname as a re-entrable function surely isn't standard eighter, even when glibc2 supports it.
participants (2)
-
Madis Janson
-
Trent Jarvi