<?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: HP-UX semop 32 vs 64 bit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515025#M701066</link>
    <description>This is a good link to start at &lt;A href="http://h21007.www2.hp.com/dev/" target="_blank"&gt;http://h21007.www2.hp.com/dev/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
    <pubDate>Thu, 31 Mar 2005 07:26:31 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-03-31T07:26:31Z</dc:date>
    <item>
      <title>HP-UX semop 32 vs 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515023#M701064</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am developing a multi task (fork) program that uses semaphore to prevent concurrent access on some resources.  On a 32 bit compilation, the process can obtain the semaphore on semop() but on a 64 bit compilation of the same code base, semop() would either "hang" there waiting forever or if IPC_NOWAIT is specified, it will return with EAGAIN.&lt;BR /&gt;Is there something I need to do when compile under +DD64 for semop()?  semget() and semctl() correctly obtain and release the semaphore though, as can be seen using ipcs -s.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Yours truly,&lt;BR /&gt;Wei-Chong.</description>
      <pubDate>Thu, 31 Mar 2005 02:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515023#M701064</guid>
      <dc:creator>Tan, Wei-Chong</dc:creator>
      <dc:date>2005-03-31T02:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX semop 32 vs 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515024#M701065</link>
      <description>This is usually due to a bad arg in semctl&lt;BR /&gt;The arg of semctl must be defined as an union, not a plain int:&lt;BR /&gt;&lt;BR /&gt;   union semun {&lt;BR /&gt;           int val;&lt;BR /&gt;           struct semid_ds *buf;&lt;BR /&gt;           ushort *array;&lt;BR /&gt;      } arg;&lt;BR /&gt;&lt;BR /&gt;semctl(semid, 0, SETVAL, arg)&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2005 07:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515024#M701065</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-03-31T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX semop 32 vs 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515025#M701066</link>
      <description>This is a good link to start at &lt;A href="http://h21007.www2.hp.com/dev/" target="_blank"&gt;http://h21007.www2.hp.com/dev/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 31 Mar 2005 07:26:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-semop-32-vs-64-bit/m-p/3515025#M701066</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-03-31T07:26:31Z</dc:date>
    </item>
  </channel>
</rss>

