patch 574400 (reentrancy)

Brian Bruns camber at ais.org
Fri Jul 5 17:56:54 EDT 2002



As discussed I created a new file called threadsafe.c in src/tds to 
encapsulate all the _REENTRANT ifdef garbage and applied a modified 
reentrancy patch.

Then disaster struck.  It appears there are at least 3 different ways to 
call gethostbyname_r() depending on platform.  I've found an autoconf 
macro from Caolan McNamara (of wvWare fame) to handle that, but I'm 
wondering what dark secrets exist in gethostbyaddr_r, getservbyname_r, et 
al.  So, this thing is not as simple as it seemed.

Anyway, some rudimentary stuff is checked in which uses the call signature 
from the original patch, but it needs some serious work.

Brian




More information about the FreeTDS mailing list