<?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: Error in openning file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245829#M677616</link>
    <description>&lt;!--!*#--&gt;&amp;gt;utility nfile doesn't exist on that HP-UX instance&lt;BR /&gt;&lt;BR /&gt;What utility?  nfile(5) says look at the man page in section 5.&lt;BR /&gt;You can use sar(1m) for the inod-sz:&lt;BR /&gt;$ sar -v 1 5&lt;BR /&gt;22:42:20 text-sz  ov  proc-sz  ov  inod-sz  ov  file-sz  ov&lt;BR /&gt;22:42:21   N/A   N/A 179/4200  0  822/156532 0  569/65536 0</description>
    <pubDate>Thu, 07 Aug 2008 04:44:15 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-08-07T04:44:15Z</dc:date>
    <item>
      <title>Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245824#M677611</link>
      <description>I have a C++ code which fails when openning a file for reading or for writting:&lt;BR /&gt;&lt;BR /&gt;1:&lt;BR /&gt;ifstream fileStream;&lt;BR /&gt;fileStream.open(fileName, ios::in);&lt;BR /&gt;if (fileStream.fail()){&lt;BR /&gt;  return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;2:&lt;BR /&gt;ofstream fileStream;&lt;BR /&gt;fileStream.open(fileName, ios::out|ios::trunc);&lt;BR /&gt;if (fileStream.fail()){&lt;BR /&gt;  return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Actually file exists, user is file's owner and file has permissions 777. I cannot understand why in this case it is impossible to read or write a file. Do you have any ideas?&lt;BR /&gt;&lt;BR /&gt;I have a some suggestions, but I'm not sure about them:&lt;BR /&gt;1) File is busy by another process. Is it possible? If yes, is there a command which I can use for monitoring which processes use my file? But it seems there are no another processes interested in this file.&lt;BR /&gt;2) There are some system limitations for files (like limitations from file system). Is it possible? If yes, what are these limitations and can I check them by some commands?&lt;BR /&gt;3) There are some process limitations for opened files. Is it possible? If yes, how I can check them?&lt;BR /&gt;4) Any another ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 04 Aug 2008 16:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245824#M677611</guid>
      <dc:creator>H.H.</dc:creator>
      <dc:date>2008-08-04T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245825#M677612</link>
      <description>&lt;!--!*#--&gt;I'm a lowly C coder, with minimal C++&lt;BR /&gt;knowledge, but even a clod like me will try&lt;BR /&gt;to learn the cause of a failure from the OS.&lt;BR /&gt;Sonething like "errno", as I recall.  Perhaps&lt;BR /&gt;C++ has something similar which might be&lt;BR /&gt;informative.  This often works better than&lt;BR /&gt;guessing possible reasons for an I/O failure&lt;BR /&gt;with no clues.&lt;BR /&gt;&lt;BR /&gt;Perhaps I've missed them but I don't see a&lt;BR /&gt;few insignificant details in your problem&lt;BR /&gt;report (other than a complete failing test&lt;BR /&gt;case), such as:&lt;BR /&gt;&lt;BR /&gt;    The file name used by the program (which&lt;BR /&gt;    could be invalid).&lt;BR /&gt;&lt;BR /&gt;    Ownership and permissions of the&lt;BR /&gt;    directory where this file might be sought&lt;BR /&gt;    (or created)&lt;BR /&gt;&lt;BR /&gt;    The OS and its version, or the compiler&lt;BR /&gt;    snd its version.</description>
      <pubDate>Mon, 04 Aug 2008 17:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245825#M677612</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-08-04T17:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245826#M677613</link>
      <description>&amp;gt;1) File is busy by another process. Is it possible?&lt;BR /&gt;&lt;BR /&gt;HP-UX doesn't enforce checking like that.&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;) There are some system limitations for files&lt;BR /&gt;&lt;BR /&gt;Yes, too many inodes open.  See nfile(5).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;3) There are some process limitations for opened files.&lt;BR /&gt;&lt;BR /&gt;Yes, too many files open per process.&lt;BR /&gt;What does "ulimit -a" show?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;4) Any another ideas?&lt;BR /&gt;&lt;BR /&gt;What Steven said about printing errno.&lt;BR /&gt;&lt;BR /&gt;Also what compiler and OS version are you using?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Aug 2008 18:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245826#M677613</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-04T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245827#M677614</link>
      <description>&amp;gt;    The file name used by the program (which&lt;BR /&gt;&amp;gt;    could be invalid).&lt;BR /&gt;&lt;BR /&gt;file name is ok. But I will recheck it tomorrow. Actually, problem happened on a customer side&lt;BR /&gt;&lt;BR /&gt;&amp;gt;    Ownership and permissions of the&lt;BR /&gt;&amp;gt;    directory where this file might be sought&lt;BR /&gt;&amp;gt;    (or created)&lt;BR /&gt;&lt;BR /&gt;ownership of directory is the same of process'es ids (effective and real)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;    The OS and its version, or the compiler&lt;BR /&gt;&amp;gt;    snd its version.&lt;BR /&gt;&lt;BR /&gt;aCC: HP ANSI C++ B3910B A.03.63&lt;BR /&gt;HP-UX 11.11 32 bit&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 06 Aug 2008 18:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245827#M677614</guid>
      <dc:creator>H.H.</dc:creator>
      <dc:date>2008-08-06T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245828#M677615</link>
      <description>&amp;gt;&amp;gt;2&amp;gt;) There are some system limitations for files&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Yes, too many inodes open. See nfile(5).&lt;BR /&gt;&lt;BR /&gt;unfortunately, utility nfile doesn't exist on that HP-UX instance.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;3) There are some process limitations for &amp;gt;opened files.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Yes, too many files open per process.&lt;BR /&gt;&amp;gt;What does "ulimit -a" show?&lt;BR /&gt;&lt;BR /&gt;Let me check this output.</description>
      <pubDate>Wed, 06 Aug 2008 18:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245828#M677615</guid>
      <dc:creator>H.H.</dc:creator>
      <dc:date>2008-08-06T18:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in openning file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245829#M677616</link>
      <description>&lt;!--!*#--&gt;&amp;gt;utility nfile doesn't exist on that HP-UX instance&lt;BR /&gt;&lt;BR /&gt;What utility?  nfile(5) says look at the man page in section 5.&lt;BR /&gt;You can use sar(1m) for the inod-sz:&lt;BR /&gt;$ sar -v 1 5&lt;BR /&gt;22:42:20 text-sz  ov  proc-sz  ov  inod-sz  ov  file-sz  ov&lt;BR /&gt;22:42:21   N/A   N/A 179/4200  0  822/156532 0  569/65536 0</description>
      <pubDate>Thu, 07 Aug 2008 04:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-in-openning-file/m-p/4245829#M677616</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-07T04:44:15Z</dc:date>
    </item>
  </channel>
</rss>

