< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] thread-safe version of gethostbyname for mac OSX


Jason,

The gethostbyname() family was made thread safe in OS X 10.2 (stated on page 8 in here: http://developer.apple.com/technotes/tn2002/pdf/ tn2053.pdf). They don't say how they did it and the interface didn't change, so I would expect it to block other threads making the same call. Unfortunately, the man page is from 1995, so it is not accurate or helpful in this regard.

Eric


On Oct 10, 2005, at 2:51 PM, Jason Fischl wrote:

Is there a version of gethostbyname that is thread-safe on MAC? On
most operating systems there is a function gethostbyname_r that is
thread-safe. gethostbyname returns a pointer to static memory and is
thus not reentrant. Trying to fix DnsUtil for MAC.

Can Mac folks chime in here.

Jason
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel