14 Dec
2003
14 Dec
'03
2:38 p.m.
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