site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uHQ3r2ibfBTqlUkFtU6twVRufkr34aQ4AbSAIVjSYO3qnG3/vcCeH6Fbe6VpqZ9fzmhiE6EsKTi8DX5zcTY67JzGPkOd7iq8KtmXnWV+2YAhxx3duGUZaPBshZUP1hp5JACkD8LQouNNmXlTWqtny7N4aBxNvoO5atH6OokOQEY= Pelle Johansson wrote:
3 maj 2006 kl. 07.12 skrev Dale Walsh:
I was thinking a little more, I was doing the following in code because this function is supposed to be thread-safe (getaddrinfo).
Unfortunately, while it's supposed to be thread-safe, it currently isn't. That's noted in the BUGS section of the manpage. I otherwise recommend to use it whenever possible. --Pelle Johansson
Hey Pelle, In regard to gethostbyaddr and getaddrinfo, which function are you saying is not thread safe? [0:777] > man getaddrinfo ... BUGS The implementation of getaddrinfo() is not thread-safe. BSD December 20, 2004 BSD [0:778] > man gethostbyname ... 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. BSD May 25, 1995 BSD ...however I am not sure how fully up-to-date the man pages really are (the above are from a 10.4 system). -Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 5/3/06, Tron Thomas <tron.thomas@verizon.net> wrote: This email sent to site_archiver@lists.apple.com