<?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: fseek error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817948#M781024</link>
    <description>Hello ,&lt;BR /&gt;&lt;BR /&gt;I tried changing the call to fseeko and compiled using the _LARGEFILE_SOURCE option , still the error persists.&lt;BR /&gt;I checkmed the file system attributes in /etc/fstab in that also "largefiles" option is enabled. It is a vxfs file system.&lt;BR /&gt;&lt;BR /&gt;Any inputs ??</description>
    <pubDate>Sat, 08 Jul 2006 08:48:45 GMT</pubDate>
    <dc:creator>Amith_2</dc:creator>
    <dc:date>2006-07-08T08:48:45Z</dc:date>
    <item>
      <title>fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817942#M781018</link>
      <description>Hello guys,&lt;BR /&gt;&lt;BR /&gt;I have a problem with fseek here.It gives me an error 27 (EFBIG File too large). The file on which i am doing the fseek has reached 1.99GB by size at that time.&lt;BR /&gt;Is there any LARGE FILE restriction for fseek. If so how can i resolve this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amith&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jul 2006 12:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817942#M781018</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-05T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817943#M781019</link>
      <description>Shalom Amith,&lt;BR /&gt;&lt;BR /&gt;The filesystem was created without largefiles enabled.&lt;BR /&gt;&lt;BR /&gt;Two choices.&lt;BR /&gt;&lt;BR /&gt;1) use newfs with the option -o largefiles to recreate the filesystem.&lt;BR /&gt;2) use fsadm to convert the filesystem for large files.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 05 Jul 2006 12:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817943#M781019</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-07-05T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817944#M781020</link>
      <description>ulimit could be a factor (ulimit -f)&lt;BR /&gt;&lt;BR /&gt;Is the file you're working on currently larger than 2GB? If so, then the filesystem where it resides is probably not the issue.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 05 Jul 2006 12:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817944#M781020</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2006-07-05T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817945#M781021</link>
      <description>Steve ,&lt;BR /&gt;&lt;BR /&gt;There are some other files in the same file system whcih is of size greater than 4GB. If it is a file system problem then , such files will not be there.&lt;BR /&gt;&lt;BR /&gt;Is there any restriction in fseek ??&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;Amith</description>
      <pubDate>Wed, 05 Jul 2006 12:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817945#M781021</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-05T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817946#M781022</link>
      <description>ok... looks like you need fseeko(), I saw it in a largfiles whitepaper then searched google for "fseek() fseeko() site:itrc.hp.com" to find this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=857114&amp;amp;admit=-682735245+1152124371842+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=857114&amp;amp;admit=-682735245+1152124371842+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope it helps,&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 05 Jul 2006 13:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817946#M781022</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2006-07-05T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817947#M781023</link>
      <description>Note that the offset argument is a signed long int; if you compile with _LARGEFILE_SOURCE defined then fseeko which uses an off_t as the offset argument will be used.&lt;BR /&gt;&lt;BR /&gt;One approach that would make your code more portable and POSIX compliant would be to use lseek(), read(), and write() using file descriptors rather than the higher level *FILE abstractions although, you would also need to handle the buffering yourself as well if needed.</description>
      <pubDate>Wed, 05 Jul 2006 13:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817947#M781023</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-05T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817948#M781024</link>
      <description>Hello ,&lt;BR /&gt;&lt;BR /&gt;I tried changing the call to fseeko and compiled using the _LARGEFILE_SOURCE option , still the error persists.&lt;BR /&gt;I checkmed the file system attributes in /etc/fstab in that also "largefiles" option is enabled. It is a vxfs file system.&lt;BR /&gt;&lt;BR /&gt;Any inputs ??</description>
      <pubDate>Sat, 08 Jul 2006 08:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817948#M781024</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-08T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817949#M781025</link>
      <description>It is actually possible that since you are feeding it a signed long that the value is negative due to underflow; it is also possible that you have hit the processes ulimit since either condition could set errno = EFBIG so if this fails with fseeko using an off_t as the actual parameter then I would suspect ulimit. Just before this fseeko, insert a ulimit(UL_GETFSIZE) and determine the current number of blocks allowed.</description>
      <pubDate>Sat, 08 Jul 2006 18:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817949#M781025</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-08T18:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817950#M781026</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I inserted a ulimit(UL_GETFSIZE) in my program and it displayed 4194303( 4194303 * 512 = 2GB).&lt;BR /&gt;But when i type the command from the user prompt , it displays the ulimit as unlimited. The ulimit -a output is &lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         488280&lt;BR /&gt;stack(kbytes)        58592&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     4194303&lt;BR /&gt;nofiles(descriptors) 1024&lt;BR /&gt;&lt;BR /&gt;Could you please tell me when this can happen and how can i resolve it .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Amith</description>
      <pubDate>Mon, 10 Jul 2006 06:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817950#M781026</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-10T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817951#M781027</link>
      <description>You have now found your fseek() problem. I assume that you executed the ulimit command just before executing the program with the fseek() in it --- and as the same user. Even in that case there is still a simple explanation as to why ulimit is now smaller: there is a ulimit(UL_SETFSIZE,newsize) somewhere in your program -- although it may be in a library object. Note that the most recent ulimit() always wins.</description>
      <pubDate>Mon, 10 Jul 2006 09:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817951#M781027</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-10T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817952#M781028</link>
      <description>I am not able to find any place in the source where in the ulimit is set to a different size.&lt;BR /&gt;&lt;BR /&gt;Can i set it to a higher value by using the UL_SETFSIZE option.&lt;BR /&gt;And also could you please tell me whether the output of the ulimit command is a long int or double ?&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 08:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817952#M781028</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-11T08:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817953#M781029</link>
      <description>I am attaching a sample code along with this posting. I have tried to set the ulimit to 4Gb using this code.&lt;BR /&gt;But it shows only 4194303 (2GB) when i display the ulimit.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me why this is happening. The ulimit -a output of the user shows that the file size limit is unlimited and the file system can handle files greater than 2GB (largfiles enabled).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Amith</description>
      <pubDate>Tue, 11 Jul 2006 09:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817953#M781029</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-11T09:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817954#M781030</link>
      <description>First, you may be hitting the Soft limit:&lt;BR /&gt;&lt;BR /&gt;Execute these two commands:&lt;BR /&gt;ulimit -Hf&lt;BR /&gt;ulimit -Sf&lt;BR /&gt;&lt;BR /&gt;and post the resukt. I have a funny feeling that you are not running the POSIX shell.&lt;BR /&gt;&lt;BR /&gt;I would also modify your little C program to get the current ulimit before trying to set it. A regular user is not allowed to increase ulimit.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 10:36:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817954#M781030</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-11T10:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817955#M781031</link>
      <description>The output of the commands are:&lt;BR /&gt;&lt;BR /&gt;$&amp;gt;ulimit -Hf&lt;BR /&gt;unlimited&lt;BR /&gt;$&amp;gt;ulimit -Sf&lt;BR /&gt;unlimited&lt;BR /&gt;$&amp;gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jul 2006 23:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817955#M781031</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-11T23:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: fseek error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817956#M781032</link>
      <description>Also i am compiling the programs in korn shell (ksh). &lt;BR /&gt;But executing the programs in POSIX.&lt;BR /&gt;Will that be a problem.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2006 00:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fseek-error/m-p/3817956#M781032</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2006-07-12T00:31:05Z</dc:date>
    </item>
  </channel>
</rss>

