comp.lang.ada
 help / color / mirror / Atom feed
From: Ken Garlington <73672.2025@COMPUSERVE.COM>
Subject: DEC Ada Question
Date: Wed, 12 Oct 1994 23:43:08 EDT
Date: 1994-10-12T23:43:08-04:00	[thread overview]
Message-ID: <941013034307_73672.2025_DHR76-1@CompuServe.COM> (raw)

I'm using DEC Ada on VAX/VMS, and I have a problem with SEQUENTIAL_MIXED_IO.
I'm reading and writing a sequential binary file with fixed 512-byte records
(an executable image in Tartan Object File Format.) I can read the file fine,
and I can write a TOFF file OK, except for one small problem: The Tartan tools
that read/write TOFF files expect the end-of-file mark to point to the byte
immediately after the last significant data item in the last physical record.
As a consequence, the EOF mark may point anywhere within the last record, or
immediately after the last byte of the last record. However,
SEQUENTIAL_MIXED_IO _always_ places the EOF mark immediately after the last
byte of the last record. How can I change this behavior? I suspect I will have
to do some kind of RMS call to make this happen, but I can't find the solution
in any of the DEC manuals, so any help would be much appreciated.



                 reply	other threads:[~1994-10-13  3:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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