* Problem fseeking a 4.2 million block file
@ 2001-11-28 18:44 Steve Porter
2001-11-28 19:01 ` Andy Burns
2001-11-28 23:32 ` Hoff Hoffman
0 siblings, 2 replies; 3+ messages in thread
From: Steve Porter @ 2001-11-28 18:44 UTC (permalink / raw)
Hello,
I have an application that performs an fseek on a file that has
recently grown to be 4.2 million blocks. The VMS version is 7.1; the
application uses DEC C V6.0-001. Does anybody know of any issues fseek
has accessing a file this large? Since fseek expects a signed int for
the offset, will there be a problem if the offset passed in is so
large it 'overwrites' the sign bit? Will this affect subsequent
fseeks, assuming all fseeks start from the beginning of the file?
Thanks, Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem fseeking a 4.2 million block file
2001-11-28 18:44 Problem fseeking a 4.2 million block file Steve Porter
@ 2001-11-28 19:01 ` Andy Burns
2001-11-28 23:32 ` Hoff Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Andy Burns @ 2001-11-28 19:01 UTC (permalink / raw)
On 28 Nov 2001 10:44:53 -0800, steve_p@trigent.com (Steve Porter)
wrote:
>Since fseek expects a signed int for
>the offset, will there be a problem if the offset passed in is so
>large it 'overwrites' the sign bit? Will this affect subsequent
>fseeks, assuming all fseeks start from the beginning of the file?
rather than doing absolute seeks from the start of the file, could you
try relative seeks for a point already seeked to halfway into the
file? or pehaps absolute seeks from the end rather than the start?
messy I know ...
--
Andy Burns
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem fseeking a 4.2 million block file
2001-11-28 18:44 Problem fseeking a 4.2 million block file Steve Porter
2001-11-28 19:01 ` Andy Burns
@ 2001-11-28 23:32 ` Hoff Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Hoff Hoffman @ 2001-11-28 23:32 UTC (permalink / raw)
In article <4983a326.0111281044.688c9ddd@posting.google.com>, steve_p@trigent.com (Steve Porter) writes:
Follow-ups set to comp.os.vms.
:I have an application that performs an fseek on a file that has
:recently grown to be 4.2 million blocks. The VMS version is 7.1; the
:application uses DEC C V6.0-001. Does anybody know of any issues fseek
:has accessing a file this large? Since fseek expects a signed int for
:the offset, will there be a problem if the offset passed in is so
:large it 'overwrites' the sign bit? Will this affect subsequent
:fseeks, assuming all fseeks start from the beginning of the file?
All current versions of the C RTL have limits on the size of the
file, when using C calls such as fseek or lseek or stat.
The limit is a result of the current longword size of the off_t
field.
An extension to the size of the off_t field is expected in the C
RTL to be shipped with a future version of OpenVMS Alpha. My best
current guess for shipment of this is in V7.3-1.
Please see the OpenVMS Ask The Wizard topics (6916), (6884), and
(1550) for details on the limits, code that allows you to get
around this, and on some related file system operations details.
I've queued some text to the next edition of the FAQ.
---------------------------- #include <rtfaq.h> -----------------------------
For additional, please see the OpenVMS FAQ -- www.openvms.compaq.com
--------------------------- pure personal opinion ---------------------------
Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-28 23:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-28 18:44 Problem fseeking a 4.2 million block file Steve Porter
2001-11-28 19:01 ` Andy Burns
2001-11-28 23:32 ` Hoff Hoffman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox