<?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: flock in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307581#M689043</link>
    <description>&amp;gt;type flock (not the function)&lt;BR /&gt;&lt;BR /&gt;HP-UX doesn't have flock as either.  There is a lockf(2).&lt;BR /&gt;&lt;BR /&gt;You need a header to define flock and whatever functions that need it.&lt;BR /&gt;Have you looked at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/flock.2.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/flock.2.html&lt;/A&gt;</description>
    <pubDate>Mon, 17 Nov 2008 15:09:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-11-17T15:09:50Z</dc:date>
    <item>
      <title>flock</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307580#M689042</link>
      <description>I am using the Migration Environment v1.4 and to port software from Tru64 to HP-UX 11i v3 (11.31). &lt;BR /&gt;The software is written in C++ and I am having problems with whith the type flock (not the function) because the compiler dosen't recognize it. I have read that I need the library libtru64.so and that it is present in the Migration Environment v1.4 and that it's a link to:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/hpux64/libcext.so. &lt;BR /&gt;&lt;BR /&gt;First I don't have libtru64.so in the Migration&lt;BR /&gt;Environment.&lt;BR /&gt;Second I have added:&lt;BR /&gt; &lt;BR /&gt;/usr/lib/hpux32/libcext.so&lt;BR /&gt;&lt;BR /&gt;in the Makefile but it didn't change nothing.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307580#M689042</guid>
      <dc:creator>Berardi Angelo</dc:creator>
      <dc:date>2008-11-17T14:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: flock</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307581#M689043</link>
      <description>&amp;gt;type flock (not the function)&lt;BR /&gt;&lt;BR /&gt;HP-UX doesn't have flock as either.  There is a lockf(2).&lt;BR /&gt;&lt;BR /&gt;You need a header to define flock and whatever functions that need it.&lt;BR /&gt;Have you looked at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-60631/flock.2.html" target="_blank"&gt;http://docs.hp.com/en/B3921-60631/flock.2.html&lt;/A&gt;</description>
      <pubDate>Mon, 17 Nov 2008 15:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307581#M689043</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-17T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: flock</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307582#M689044</link>
      <description>I am using the flock stucture in this piece of code.&lt;BR /&gt;&lt;BR /&gt;void File::lock(bool bExclusive) throw (ios_base::failure)&lt;BR /&gt;{&lt;BR /&gt; flock tLockInfo;&lt;BR /&gt; int iCmd;&lt;BR /&gt;&lt;BR /&gt;  memset(&amp;amp;tLockInfo, 0, sizeof(tLockInfo));^M&lt;BR /&gt;  if (bExclusive)&lt;BR /&gt;    tLockInfo.l_type = F_WRLCK;&lt;BR /&gt;  else&lt;BR /&gt;    tLockInfo.l_type = F_RDLCK;&lt;BR /&gt;&lt;BR /&gt;  iCmd = F_SETLKW;  // Blocking lock, wait the success of fuinction&lt;BR /&gt;&lt;BR /&gt;  if (::fcntl(m_hFile, iCmd, &amp;amp;tLockInfo) == -1)&lt;BR /&gt;    throwIOSysException("lock-fcntl");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;and I have included:&lt;BR /&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;#include &lt;ERRNO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;and the compiler dosen't recognize the flock structure.&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;/SYS&gt;&lt;/STRING.H&gt;&lt;/ERRNO.H&gt;&lt;/UNISTD.H&gt;&lt;/FCNTL.H&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Mon, 17 Nov 2008 16:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307582#M689044</guid>
      <dc:creator>Berardi Angelo</dc:creator>
      <dc:date>2008-11-17T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: flock</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307583#M689045</link>
      <description>I have found the solution. I have to define:&lt;BR /&gt;&lt;BR /&gt;struct flock tLockInfo;&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 17 Nov 2008 17:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/flock/m-p/4307583#M689045</guid>
      <dc:creator>Berardi Angelo</dc:creator>
      <dc:date>2008-11-17T17:04:39Z</dc:date>
    </item>
  </channel>
</rss>

