<?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: Function Open bug C in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603016#M725928</link>
    <description>I despair. I realise that nobody can help me.&lt;BR /&gt;thank everybody.&lt;BR /&gt;&lt;BR /&gt;if you find the solution, please mail to:&lt;BR /&gt;eric.bocquel@sextant.thomson-csf.com</description>
    <pubDate>Tue, 30 Oct 2001 12:12:29 GMT</pubDate>
    <dc:creator>MR GROSS</dc:creator>
    <dc:date>2001-10-30T12:12:29Z</dc:date>
    <item>
      <title>Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603006#M725918</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I don't understand why the function open in languge C on Hp 10.20 serie 700 don't function.&lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;int fd;&lt;BR /&gt;&lt;BR /&gt;fd = open("file", O_RDONLY);&lt;BR /&gt;close(fd);&lt;BR /&gt;}&lt;BR /&gt;And whith goods includes.&lt;BR /&gt;Thanks &lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2001 08:06:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603006#M725918</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-29T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603007#M725919</link>
      <description>What error does it report?&lt;BR /&gt;&lt;BR /&gt;Add the following after your call to open()&lt;BR /&gt;----&lt;BR /&gt;if (fd &amp;lt; 0)                                   &lt;BR /&gt;printf ("open failed with errno %d\n", errno);&lt;BR /&gt;----&lt;BR /&gt;and do a finderr on the error number.&lt;BR /&gt;&lt;BR /&gt;remeber to #include &lt;ERRNO.H&gt;.&lt;/ERRNO.H&gt;</description>
      <pubDate>Mon, 29 Oct 2001 09:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603007#M725919</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-10-29T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603008#M725920</link>
      <description>when I compile this function, this error appear:&lt;BR /&gt;cc: "File", line 7 / error 1588 : "O_RDONLY" undenied&lt;BR /&gt;&lt;BR /&gt;yet this function function with other OS like IBM and I include good</description>
      <pubDate>Mon, 29 Oct 2001 11:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603008#M725920</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-29T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603009#M725921</link>
      <description>Hi Gross:&lt;BR /&gt;&lt;BR /&gt;I hope this doesn't compile. You obviously don't have &lt;FCNTL.H&gt; included with your good includes.&lt;/FCNTL.H&gt;</description>
      <pubDate>Mon, 29 Oct 2001 13:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603009#M725921</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-29T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603010#M725922</link>
      <description>#&lt;INCLUDE fcntl.h=""&gt;&lt;BR /&gt;&lt;BR /&gt;Compile now.&lt;/INCLUDE&gt;</description>
      <pubDate>Mon, 29 Oct 2001 13:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603010#M725922</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-29T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603011#M725923</link>
      <description>But I use this include</description>
      <pubDate>Tue, 30 Oct 2001 07:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603011#M725923</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-30T07:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603012#M725924</link>
      <description>This is strange. &lt;BR /&gt;What does "grep O_RDONLY /usr/include/sys/fcntl.h" yield?</description>
      <pubDate>Tue, 30 Oct 2001 09:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603012#M725924</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-10-30T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603013#M725925</link>
      <description>I just try, and the sentence appear:&lt;BR /&gt;define O_RDONLY 000000 /*open for reading only*/&lt;BR /&gt;But if I replace O_RDWR the function open don't function. I think it's a bug and I want a patche please.&lt;BR /&gt;thanks everybody.</description>
      <pubDate>Tue, 30 Oct 2001 09:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603013#M725925</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-30T09:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603014#M725926</link>
      <description>It seem to be a missconfiguration or bad permision on /usr/include, or something so.&lt;BR /&gt;&lt;BR /&gt;/usr/include/fcntl must &lt;BR /&gt;#include &lt;SYS&gt;  where 0_xxx are defined.&lt;BR /&gt;&lt;BR /&gt;Try swverify for ansiC package.&lt;/SYS&gt;</description>
      <pubDate>Tue, 30 Oct 2001 09:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603014#M725926</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-30T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603015#M725927</link>
      <description>In that case, just replace 'O_RDONLY' with '0000000'.&lt;BR /&gt;Remove the #include &lt;FCNTL.H&gt; and compile.&lt;BR /&gt;&lt;BR /&gt;Quick &amp;amp; dirty, but it'll work for the small test program that you have. (I hope my boss doesnt see this!)&lt;/FCNTL.H&gt;</description>
      <pubDate>Tue, 30 Oct 2001 10:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603015#M725927</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-10-30T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603016#M725928</link>
      <description>I despair. I realise that nobody can help me.&lt;BR /&gt;thank everybody.&lt;BR /&gt;&lt;BR /&gt;if you find the solution, please mail to:&lt;BR /&gt;eric.bocquel@sextant.thomson-csf.com</description>
      <pubDate>Tue, 30 Oct 2001 12:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603016#M725928</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-30T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603017#M725929</link>
      <description>Is this your problem???&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;                                                                                                                          &lt;BR /&gt;#include &lt;FCNTL.H&gt;                                                                                                                          &lt;BR /&gt;                                                                                                                                            &lt;BR /&gt;main()                                                                                                                                      &lt;BR /&gt;{                                                                                                                                           &lt;BR /&gt;int pp;                                                                                                                                     &lt;BR /&gt;                                                                                                                                            &lt;BR /&gt;pp=open("/tmp/pp.c",0_RDONLY);                                                                                                              &lt;BR /&gt;close (pp);                                                                                                                                 &lt;BR /&gt;}                                                                                                                                           &lt;BR /&gt;UES90201:/tmp#cc pp.c -o pp                                                                                                                 &lt;BR /&gt;cc: "pp.c", line 8: error 1000: Unexpected symbol: "_RDONLY".      &lt;BR /&gt;&lt;BR /&gt;Now:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;                                                                                                                          &lt;BR /&gt;#include &lt;FCNTL.H&gt;                                                                                                                          &lt;BR /&gt;                                                                                                                                            &lt;BR /&gt;main()                                                                                                                                      &lt;BR /&gt;{                                                                                                                                           &lt;BR /&gt;int pp;                                                                                                                                     &lt;BR /&gt;                                                                                                                                            &lt;BR /&gt;pp=open("/tmp/pp.c",O_RDONLY);                                                                                                              &lt;BR /&gt;close (pp);                                                                                                                                 &lt;BR /&gt;}                                                                                                                                           &lt;BR /&gt;UES90201:/tmp#cc pp.c -o pp                                                                                                                 &lt;BR /&gt;/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (pp.o) was detected. The linked output may not run on a PA 1.x system.           &lt;BR /&gt;&lt;BR /&gt;DIFFERENCE:&lt;BR /&gt;&lt;BR /&gt;0_RDONLY (zero_RDONLY) and O_RDONLY&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;/FCNTL.H&gt;&lt;/STDIO.H&gt;&lt;/FCNTL.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Tue, 30 Oct 2001 23:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603017#M725929</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-30T23:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function Open bug C</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603018#M725930</link>
      <description>Full marks to Carlos for creativity! :)&lt;BR /&gt;&lt;BR /&gt;Gross,&lt;BR /&gt;This maybe flogging a dead horse, but is it possible that you dont have or cant access /usr/include/fcntl.h?&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;instead of &lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;/FCNTL.H&gt;&lt;/SYS&gt;</description>
      <pubDate>Wed, 31 Oct 2001 08:32:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/function-open-bug-c/m-p/2603018#M725930</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-10-31T08:32:53Z</dc:date>
    </item>
  </channel>
</rss>

