• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Equivalent of gethostbyname_r for Mac OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent of gethostbyname_r for Mac OS X?


  • Subject: Re: Equivalent of gethostbyname_r for Mac OS X?
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 3 May 2006 08:47:20 -0700

On 5/3/06, Tron Thomas <email@hidden> wrote:
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Equivalent of gethostbyname_r for Mac OS X? (From: Tron Thomas <email@hidden>)
 >Re: Equivalent of gethostbyname_r for Mac OS X? (From: Dale Walsh <email@hidden>)
 >Re: Equivalent of gethostbyname_r for Mac OS X? (From: Tron Thomas <email@hidden>)
 >Re: Equivalent of gethostbyname_r for Mac OS X? (From: Dale Walsh <email@hidden>)
 >Re: Equivalent of gethostbyname_r for Mac OS X? (From: Pelle Johansson <email@hidden>)
 >Re: Equivalent of gethostbyname_r for Mac OS X? (From: Tron Thomas <email@hidden>)

  • Prev by Date: Re: Equivalent of gethostbyname_r for Mac OS X?
  • Next by Date: Re: Equivalent of gethostbyname_r for Mac OS X?
  • Previous by thread: Re: Equivalent of gethostbyname_r for Mac OS X?
  • Next by thread: Re: Equivalent of gethostbyname_r for Mac OS X?
  • Index(es):
    • Date
    • Thread