<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gethostbyname thread safe?! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111695#M685397</link>
    <description>&amp;gt;1. PA-RISC 11.23&lt;BR /&gt;&lt;BR /&gt;Your 11.11 document says it is thread safe. So does 11.23:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/thread_safety.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/thread_safety.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. I didn't understand your answer - can you give more details please?&lt;BR /&gt;&lt;BR /&gt;It is thread safe.  It is also non-asynchronous cancel safe.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if you have some source that says that gethostbyname is thread safe on HPUX 11.23&lt;BR /&gt;&lt;BR /&gt;You have the source, thread_safety(5).&lt;BR /&gt;And as Steven said see "multithreaded application" in gethostent(3N).</description>
    <pubDate>Mon, 02 Jun 2008 12:38:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-06-02T12:38:50Z</dc:date>
    <item>
      <title>gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111691#M685393</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using the gethostbyname function in my code, which is compiled on different UNIXs (AIX,HP, Linux, Solaris, etc.)&lt;BR /&gt;I found  in the web people that say that this function is thread safe on some OS versions (HPUX 11, AIX 5... )&lt;BR /&gt;I must confirm this issue, so...&lt;BR /&gt;1. I need to know if this function is a thread safe on HPUX and if so, what is the minmal version for this safety?!&lt;BR /&gt;2. I read in HP documentation (&lt;A href="http://docs.hp.com/en/B3921-90010/thread_safety.5.html)" target="_blank"&gt;http://docs.hp.com/en/B3921-90010/thread_safety.5.html)&lt;/A&gt; - what is the meaning of "Cancel Safe"? since this function is under this criteria.&lt;BR /&gt;&lt;BR /&gt;tx in advance,&lt;BR /&gt;Shlom</description>
      <pubDate>Sun, 01 Jun 2008 14:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111691#M685393</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-01T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111692#M685394</link>
      <description>&lt;!--!*#--&gt;&amp;gt; (HPUX 11, AIX 5... )&lt;BR /&gt;&lt;BR /&gt;HP-UX "11" is not a precise description of an&lt;BR /&gt;HP-UX version.&lt;BR /&gt;&lt;BR /&gt;I know nothing, but, resorting to the&lt;BR /&gt;painfully obvious "man gethostbyname" on an&lt;BR /&gt;HP-UX 11.31 PA-RISC system, I pretty easily&lt;BR /&gt;found a section which begins:&lt;BR /&gt;&lt;BR /&gt;    In a multithreaded application, [...]&lt;BR /&gt;&lt;BR /&gt;and which seems to provide all the&lt;BR /&gt;thread-related info _I_'d ever want.&lt;BR /&gt;&lt;BR /&gt;If you don't have an HP-UX system where you&lt;BR /&gt;can do this, try:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.testdrive.hp.com/" target="_blank"&gt;http://www.testdrive.hp.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Systems are available back to HP-UX 11.11.</description>
      <pubDate>Sun, 01 Jun 2008 19:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111692#M685394</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-01T19:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111693#M685395</link>
      <description>&amp;gt;what is the meaning of "Cancel Safe"?&lt;BR /&gt;&lt;BR /&gt;It means that if you use pthread_cancel, everything is predictable.</description>
      <pubDate>Mon, 02 Jun 2008 04:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111693#M685395</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-02T04:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111694#M685396</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Risc 11.23&lt;BR /&gt;2. Dennis, I didn't understand your answer - can you give more details please?! Actually, if you have some source that says that gethostbyname is thread safe on HPUX 11.23 (or not...) it would be better.&lt;BR /&gt;&lt;BR /&gt;tx again.</description>
      <pubDate>Mon, 02 Jun 2008 07:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111694#M685396</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-02T07:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111695#M685397</link>
      <description>&amp;gt;1. PA-RISC 11.23&lt;BR /&gt;&lt;BR /&gt;Your 11.11 document says it is thread safe. So does 11.23:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/thread_safety.5.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/thread_safety.5.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. I didn't understand your answer - can you give more details please?&lt;BR /&gt;&lt;BR /&gt;It is thread safe.  It is also non-asynchronous cancel safe.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if you have some source that says that gethostbyname is thread safe on HPUX 11.23&lt;BR /&gt;&lt;BR /&gt;You have the source, thread_safety(5).&lt;BR /&gt;And as Steven said see "multithreaded application" in gethostent(3N).</description>
      <pubDate>Mon, 02 Jun 2008 12:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111695#M685397</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-02T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111696#M685398</link>
      <description>Dennis,&lt;BR /&gt;tx again for giving me the answer - I understand now that this is a thread safe function.&lt;BR /&gt;&lt;BR /&gt;Now, for my general info:&lt;BR /&gt;I still don't understand the meaning of "Cancel-Safe"...&lt;BR /&gt;If a function is Cancel-Safe one, so it's a ____________________________&lt;BR /&gt;&lt;BR /&gt;shlom&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2008 13:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111696#M685398</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-02T13:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111697#M685399</link>
      <description>&amp;gt;I still don't understand the meaning of "Cancel-Safe".&lt;BR /&gt;&lt;BR /&gt;See pthread_cancel(3T):&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/pthread_cancel.3T.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/pthread_cancel.3T.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It means the thread can be terminated in a controlled manner and doesn't leave resources lying around and possibly leave mutexes locked.</description>
      <pubDate>Mon, 02 Jun 2008 14:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111697#M685399</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-02T14:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111698#M685400</link>
      <description>Tx!</description>
      <pubDate>Mon, 02 Jun 2008 15:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111698#M685400</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-02T15:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: gethostbyname thread safe?!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111699#M685401</link>
      <description>Now that you are confident that gethostbyname() is thread-safe and all, I will point-out that new work or contemporary rework of existing code should be using getaddrinfo() and friends rather than gethostbyname() :)&lt;BR /&gt;&lt;BR /&gt;Among other things, getaddrinfo() enables retrieval of IPv6 addresses and can make a few things easier even with IPv4 addresses.  At least that was my impression after making the necessary modifications to the netperf benchmark sources.</description>
      <pubDate>Mon, 02 Jun 2008 16:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gethostbyname-thread-safe/m-p/5111699#M685401</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-06-02T16:38:26Z</dc:date>
    </item>
  </channel>
</rss>

