<?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: stat.h and __USING_STD_STAT : bug or feature? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266482#M40908</link>
    <description>&lt;!--!*#--&gt;If you look at how __USING_STD_STAT macro is defined in &lt;DECC&gt;, you'll see that this macro is unnecessary: the header defines __USING_STD_STAT macro if _USE_STD_STAT macro is defined and does not define it otherwise, so __USING_STD_STAT is just an "alias" to _USE_STD_STAT.&lt;BR /&gt;&lt;BR /&gt;The (internal) macro __USING_STD_STAT which is often mistaken for the (public) macro _USE_STD_STAT shouldn't have been introduced in the first place, I believe.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Boris&lt;/DECC&gt;</description>
    <pubDate>Tue, 14 Dec 2010 16:20:57 GMT</pubDate>
    <dc:creator>WW304289</dc:creator>
    <dc:date>2010-12-14T16:20:57Z</dc:date>
    <item>
      <title>stat.h and __USING_STD_STAT : bug or feature?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266479#M40905</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;The small program below compiled with HP C++ V7.3-009 for OpenVMS Alpha V8.4 gives a whole bunch of errors. Is this a bug or I am doing something that is not allowed?&lt;BR /&gt;&lt;BR /&gt;#define __USING_STD_STAT 1&lt;BR /&gt;#include &lt;STAT.H&gt;&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error log:&lt;BR /&gt;        typedef __dev_t dev_t;&lt;BR /&gt;................^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "__dev_t" is undefined&lt;BR /&gt;at line number 66 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF.&lt;BR /&gt;TLB;1&lt;BR /&gt;&lt;BR /&gt;        typedef __ino_t ino_t;&lt;BR /&gt;................^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "__ino_t" is undefined&lt;BR /&gt;at line number 71 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF.&lt;BR /&gt;TLB;1&lt;BR /&gt;&lt;BR /&gt;    __dev_t     st_dev;     /* device id */&lt;BR /&gt;....^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "__dev_t" is undefined&lt;BR /&gt;at line number 171 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF&lt;BR /&gt;.TLB;1&lt;BR /&gt;&lt;BR /&gt;    __ino_t     st_ino;     /* file number */&lt;BR /&gt;....^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "__ino_t" is undefined&lt;BR /&gt;at line number 172 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF&lt;BR /&gt;.TLB;1&lt;BR /&gt;&lt;BR /&gt;    __dev_t     st_rdev;&lt;BR /&gt;....^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "__dev_t" is undefined&lt;BR /&gt;at line number 178 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF&lt;BR /&gt;.TLB;1&lt;BR /&gt;&lt;BR /&gt;    blksize_t   st_blksize; /* filesystem-specific preferred I/O block size for&lt;BR /&gt;this file */&lt;BR /&gt;....^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "blksize_t" is undefined&lt;BR /&gt;at line number 191 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF&lt;BR /&gt;.TLB;1&lt;BR /&gt;&lt;BR /&gt;    blkcnt_t    st_blocks;  /* number of blocks allocated for this file */&lt;BR /&gt;....^&lt;BR /&gt;%CXX-E-UNDECLARED, identifier "blkcnt_t" is undefined&lt;BR /&gt;at line number 192 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF&lt;BR /&gt;.TLB;1&lt;BR /&gt;&lt;BR /&gt;%CXX-I-MESSAGE, 7 errors detected in the compilation of "$DISK7:[joukj.TEST]TEST&lt;BR /&gt;.CXX;15".&lt;BR /&gt;&lt;/STAT.H&gt;</description>
      <pubDate>Tue, 14 Dec 2010 06:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266479#M40905</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-14T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: stat.h and __USING_STD_STAT : bug or feature?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266480#M40906</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I am doing something that is not&lt;BR /&gt;&amp;gt; allowed?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; #define __USING_STD_STAT 1&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;      #define _USE_STD_STAT&lt;BR /&gt;&lt;BR /&gt;Read more carefully.  &lt;STAT.H&gt;:&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;** This is the beginning of the standard stat structure definition.&lt;BR /&gt;** It is in effect if feature macro _USE_STD_STAT is defined.&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;DECC&gt;:&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;**  _USE_STD_STAT:  The new standardized stat structure takes the place of&lt;BR /&gt;**  all prior versions, if you compile with _USE_STD_STAT defined.&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;Some macros are for your use, some are not.&lt;/DECC&gt;&lt;/STAT.H&gt;</description>
      <pubDate>Tue, 14 Dec 2010 07:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266480#M40906</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-14T07:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: stat.h and __USING_STD_STAT : bug or feature?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266481#M40907</link>
      <description>Thanks Steven,&lt;BR /&gt;&lt;BR /&gt;That solves the problem.&lt;BR /&gt;You are right I should have read more carefully.&lt;BR /&gt;&lt;BR /&gt;      Jouk</description>
      <pubDate>Tue, 14 Dec 2010 07:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266481#M40907</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2010-12-14T07:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: stat.h and __USING_STD_STAT : bug or feature?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266482#M40908</link>
      <description>&lt;!--!*#--&gt;If you look at how __USING_STD_STAT macro is defined in &lt;DECC&gt;, you'll see that this macro is unnecessary: the header defines __USING_STD_STAT macro if _USE_STD_STAT macro is defined and does not define it otherwise, so __USING_STD_STAT is just an "alias" to _USE_STD_STAT.&lt;BR /&gt;&lt;BR /&gt;The (internal) macro __USING_STD_STAT which is often mistaken for the (public) macro _USE_STD_STAT shouldn't have been introduced in the first place, I believe.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Boris&lt;/DECC&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266482#M40908</guid>
      <dc:creator>WW304289</dc:creator>
      <dc:date>2010-12-14T16:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: stat.h and __USING_STD_STAT : bug or feature?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266483#M40909</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] so __USING_STD_STAT is just an&lt;BR /&gt;&amp;gt; "alias" to _USE_STD_STAT.&lt;BR /&gt;&lt;BR /&gt;Obviously not, or the original code would&lt;BR /&gt;have worked.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If you look [...]&lt;BR /&gt;&lt;BR /&gt;Look yourself?</description>
      <pubDate>Tue, 14 Dec 2010 16:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stat-h-and-using-std-stat-bug-or-feature/m-p/5266483#M40909</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-12-14T16:48:11Z</dc:date>
    </item>
  </channel>
</rss>

