<?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 C fopen in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338426#M31297</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain me the behavior of the C fopen function?&lt;BR /&gt;&lt;BR /&gt;There is what I mean:&lt;BR /&gt;&lt;BR /&gt;A short C program:&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt;   FILE * f;&lt;BR /&gt;   f = fopen ("A.TMP","w");&lt;BR /&gt;   fclose (f);&lt;BR /&gt;   return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I run this program and if I do a directory/full I get:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Stream_LF, maximum 0 bytes, longest 32767 bytes&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Then I type:&lt;BR /&gt;$ create a.tmp&lt;BR /&gt;&lt;CTRL&gt;&lt;BR /&gt;&lt;BR /&gt;The dir/full gives me:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Variable length, maximum 0 bytes, longest 0 bytes&lt;BR /&gt;&lt;BR /&gt;Ok, another run of the program and dir/full gives me:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Variable length, maximum 0 bytes, longest 0 bytes&lt;BR /&gt;&lt;BR /&gt;This means that the record format is obtained from the previous version of the file!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bojan&lt;/CTRL&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Thu, 22 Jul 2004 05:04:52 GMT</pubDate>
    <dc:creator>Bojan Nemec</dc:creator>
    <dc:date>2004-07-22T05:04:52Z</dc:date>
    <item>
      <title>C fopen</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338426#M31297</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone explain me the behavior of the C fopen function?&lt;BR /&gt;&lt;BR /&gt;There is what I mean:&lt;BR /&gt;&lt;BR /&gt;A short C program:&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt;   FILE * f;&lt;BR /&gt;   f = fopen ("A.TMP","w");&lt;BR /&gt;   fclose (f);&lt;BR /&gt;   return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I run this program and if I do a directory/full I get:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Stream_LF, maximum 0 bytes, longest 32767 bytes&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Then I type:&lt;BR /&gt;$ create a.tmp&lt;BR /&gt;&lt;CTRL&gt;&lt;BR /&gt;&lt;BR /&gt;The dir/full gives me:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Variable length, maximum 0 bytes, longest 0 bytes&lt;BR /&gt;&lt;BR /&gt;Ok, another run of the program and dir/full gives me:&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Record format:      Variable length, maximum 0 bytes, longest 0 bytes&lt;BR /&gt;&lt;BR /&gt;This means that the record format is obtained from the previous version of the file!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bojan&lt;/CTRL&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 22 Jul 2004 05:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338426#M31297</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-07-22T05:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: C fopen</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338427#M31298</link>
      <description>&amp;gt;&lt;BR /&gt;This means that the record format is obtained from the previous version of the file!&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;This is documented behaviour, see&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5763p027.html#fopen_routine" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5763p027.html#fopen_routine&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jul 2004 05:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338427#M31298</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-07-22T05:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: C fopen</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338428#M31299</link>
      <description>Others :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/groups?hl=nl&amp;amp;lr=&amp;amp;ie=UTF-8&amp;amp;threadm=3j6se9%24qp7%40gwdu19.gwdg.de&amp;amp;rnum=1&amp;amp;prev=/groups%3Fq%3D%2522previous%2520version%2522%2520fopen%2522%2520openvms%26num%3D100%26hl%3Dnl%26lr%3D%26ie%3DUTF-8%26sa%3DN%26tab%3Dwg" target="_blank"&gt;http://groups.google.com/groups?hl=nl&amp;amp;lr=&amp;amp;ie=UTF-8&amp;amp;threadm=3j6se9%24qp7%40gwdu19.gwdg.de&amp;amp;rnum=1&amp;amp;prev=/groups%3Fq%3D%2522previous%2520version%2522%2520fopen%2522%2520openvms%26num%3D100%26hl%3Dnl%26lr%3D%26ie%3DUTF-8%26sa%3DN%26tab%3Dwg&lt;/A&gt;</description>
      <pubDate>Thu, 22 Jul 2004 05:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338428#M31299</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-22T05:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: C fopen</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338429#M31300</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;I will modify my programs to force the attributes. Another #ifdef __VMS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Thu, 22 Jul 2004 05:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338429#M31300</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-07-22T05:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: C fopen</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338430#M31301</link>
      <description>Hello Bojan,&lt;BR /&gt;&lt;BR /&gt;one way to minimize this particular ifdef&lt;BR /&gt;&lt;BR /&gt;#ifdef VMS&lt;BR /&gt;#define FOPEN_OPT ...&lt;BR /&gt;#else&lt;BR /&gt;#define FOPEN_OPT ...&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;then use the FOPEN_OPT macro in the actual &lt;BR /&gt;fopen calls without any ifdefs. This also has the adavantage that if you decided you need to twiddle yet another knob the change is very well localized.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Sun, 25 Jul 2004 16:46:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-fopen/m-p/3338430#M31301</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-07-25T16:46:22Z</dc:date>
    </item>
  </channel>
</rss>

