<?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: Problem while using fcntl in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161026#M41817</link>
    <description>&lt;!--!*#--&gt;&amp;gt; I didn't find any UCX directory [...]&lt;BR /&gt;&lt;BR /&gt;Don't worry about it.  That's old stuff, and&lt;BR /&gt;ioctl() is not fcntl().</description>
    <pubDate>Wed, 04 Mar 2009 13:29:05 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-03-04T13:29:05Z</dc:date>
    <item>
      <title>Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161022#M41813</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing some problem while using fcntl crtl call in my program.&lt;BR /&gt;&lt;BR /&gt;***********************************************&lt;BR /&gt;Program:&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;  int fd, rc;&lt;BR /&gt;  struct flock  lockdetails;&lt;BR /&gt;  fd = open ("TEST.DAT", O_CREAT|O_RDWR, 0777);&lt;BR /&gt;  if (fd == -1)&lt;BR /&gt;      perror("fopen");&lt;BR /&gt;  memset(&amp;amp;lockdetails, 0, sizeof(lockdetails));&lt;BR /&gt;  lockdetails.l_type = F_WRLCK;&lt;BR /&gt;  lockdetails.l_whence = SEEK_SET;&lt;BR /&gt;  lockdetails.l_start = 0;&lt;BR /&gt;  lockdetails.l_len = 0;&lt;BR /&gt;&lt;BR /&gt;  rc = fcntl(fd, F_SETLKW, &amp;amp;lockdetails);&lt;BR /&gt;  if (rc == -1)&lt;BR /&gt;      perror("fcntl");&lt;BR /&gt;  close(fd);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;***********************************************&lt;BR /&gt;When I run above program, I got following output:&lt;BR /&gt;&lt;BR /&gt;fcntl: function not implemented&lt;BR /&gt;&lt;BR /&gt;Could you help me to know, is there anything wrong in my program or locking feature is not yet implemented within fcntl.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Wed, 04 Mar 2009 08:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161022#M41813</guid>
      <dc:creator />
      <dc:date>2009-03-04T08:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161023#M41814</link>
      <description>Versions ?&lt;BR /&gt;&lt;BR /&gt;Found this&lt;BR /&gt;&lt;BR /&gt;$ DIR SYS$COMMON:[SYSHLP.EXAMPLES.UCX]UCX$IOCTL_ROUTINE.C &lt;BR /&gt;&lt;BR /&gt;However, ensure if you are using a system that has the non-functional &lt;BR /&gt;ioctl in the DEC RTL that you do (e.g. OpenVMS 7.1 without some of the &lt;BR /&gt;later RTL patches) &lt;BR /&gt;&lt;BR /&gt;$ cc/prefix=(all,except=ioctl) &lt;BR /&gt;&lt;BR /&gt;otherwise you will pick up the non-functioning routine in the RTL, not &lt;BR /&gt;the one in ucx$ioctl_routine.c &lt;BR /&gt;&lt;BR /&gt;fwiw&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 04 Mar 2009 09:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161023#M41814</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-03-04T09:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161024#M41815</link>
      <description>Hi Wim,&lt;BR /&gt;&lt;BR /&gt;OpenVMS (TM) Alpha Operating System, Version V8.2&lt;BR /&gt;&lt;BR /&gt;$ DIR SYS$COMMON:[SYSHLP.EXAMPLES.UCX]UCX$IOCTL_ROUTINE.C&lt;BR /&gt;%DIRECT-E-OPENIN, error opening SYS$COMMON:[SYSHLP.EXAMPLES.UCX]UCX$IOCTL_ROUTINE.C;* as input&lt;BR /&gt;-RMS-E-DNF, directory not found&lt;BR /&gt;-SYSTEM-W-NOSUCHFILE, no such file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I didn't find any UCX directory under SYS$COMMON:[SYSHLP.EXAMPLES]&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Wed, 04 Mar 2009 13:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161024#M41815</guid>
      <dc:creator />
      <dc:date>2009-03-04T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161025#M41816</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  Versions ?&lt;BR /&gt;&lt;BR /&gt;Exactly.  It fails on my Alpha system (VMS&lt;BR /&gt;V7.3-2), and appears to work on my IA64&lt;BR /&gt;system(VMS V8.3-1H1).&lt;BR /&gt;&lt;BR /&gt;alp $ cc fl&lt;BR /&gt;alp $ link fl&lt;BR /&gt;alp $ run fl&lt;BR /&gt;fcntl: function not implemented&lt;BR /&gt;alp $ &lt;BR /&gt;&lt;BR /&gt;it $ cc fl /obj = fl_i&lt;BR /&gt;it $ link fl_i&lt;BR /&gt;it $ r fl_i&lt;BR /&gt;it $ &lt;BR /&gt;&lt;BR /&gt;I suspect that there was something somewhere&lt;BR /&gt;in the release notes about this.&lt;BR /&gt;&lt;BR /&gt;These help, by the way:&lt;BR /&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;/UNISTD.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;&lt;/FCNTL.H&gt;</description>
      <pubDate>Wed, 04 Mar 2009 13:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161025#M41816</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-04T13:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161026#M41817</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I didn't find any UCX directory [...]&lt;BR /&gt;&lt;BR /&gt;Don't worry about it.  That's old stuff, and&lt;BR /&gt;ioctl() is not fcntl().</description>
      <pubDate>Wed, 04 Mar 2009 13:29:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161026#M41817</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-04T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161027#M41818</link>
      <description>&lt;!--!*#--&gt;The easily available documentation is&lt;BR /&gt;helpful, too.  Compare, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5763/5763pro_029.html#index_x_800" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5763/5763pro_029.html#index_x_800&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83final/5763/5763pro_033.html#index_x_888" target="_blank"&gt;http://h71000.www7.hp.com/doc/83final/5763/5763pro_033.html#index_x_888&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Only one mentions "File Locking".</description>
      <pubDate>Wed, 04 Mar 2009 13:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161027#M41818</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-04T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using fcntl</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161028#M41819</link>
      <description>Thanks Steven,&lt;BR /&gt;&lt;BR /&gt;fcntl is working on OVMS 8.3 and not OVMS 8.2 might be its not implemented on 8.2&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;ajaydec</description>
      <pubDate>Thu, 05 Mar 2009 10:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-while-using-fcntl/m-p/5161028#M41819</guid>
      <dc:creator />
      <dc:date>2009-03-05T10:12:55Z</dc:date>
    </item>
  </channel>
</rss>

