Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman)
Subject: Re: Problem fseeking a 4.2 million block file
Date: Wed, 28 Nov 2001 23:32:46 GMT	[thread overview]
Message-ID: <yueN7.2074$RL6.63167@news.cpqcorp.net> (raw)
In-Reply-To: 4983a326.0111281044.688c9ddd@posting.google.com

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



      parent reply	other threads:[~2001-11-28 23:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox