From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6134,98b6fc98d89caeda X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,98b6fc98d89caeda X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,98b6fc98d89caeda X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-11-28 15:32:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Newsgroups: comp.os.vms,comp.sys.dec,comp.org.decus Distribution: world X-Newsreader: mxrn 6.18-32B Followup-To: comp.os.vms References: <4983a326.0111281044.688c9ddd@posting.google.com> From: hoffman@xdelta.zko.dec.nospam (Hoff Hoffman) Reply-To: hoffman@xdelta.zko.dec.nospam Subject: Re: Problem fseeking a 4.2 million block file Message-ID: Date: Wed, 28 Nov 2001 23:32:46 GMT NNTP-Posting-Host: 16.32.80.251 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1006990366 16.32.80.251 (Wed, 28 Nov 2001 15:32:46 PST) NNTP-Posting-Date: Wed, 28 Nov 2001 15:32:46 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.os.vms:53153 comp.sys.dec:9036 comp.org.decus:2328 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 ----------------------------- For additional, please see the OpenVMS FAQ -- www.openvms.compaq.com --------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com