From: vandenheuvel@eps.enet.dec.com (Hein RMS van den Heuvel)
Subject: Re: VAX C Binary Stream File Question
Date: 24 JAN 95 12:02:28 [thread overview]
Message-ID: <3g3c07$6i1@jac.zko.dec.com> (raw)
In-Reply-To: 3g0n5h$2b1@hopper.acm.org
In article <3g0n5h$2b1@hopper.acm.org>, jgreen@ACM.ORG writes...
>I'm trying to read binary data from a STREAM file and write
>it out as a fixed-length record format file. The problem is,
>the C library functions (or the RMS functions underneath) are
>still interpreting control characters, thus scrambling
>information. Example
There is an unfortunate naming clash for STREAM files.
For *decades* Digital had used the term STREAM/STM on RSTS/E, RSX and VMS
to mean a very particular format with specific semantics: STREAM-11 / STM-11
Since, the industry, and Unix in particular, has used that
same word but uses it to describe what on VMS would correspond
better with STREAM_LF or even UNDEFINED files.
The semantics for STM-11 tell RMS to SKIP leading zeros in records :-(.
This is the way it is defined, so RMS (and the C RTL) obliges.
Please consider trying STREAM_LF or UNDEFINED files for your work.
Hope this helps, +--------------------------------------+
Hein van den Heuvel, Digital. | All opinions expressed are mine, and |
"Makers of VMS and other | may not reflect those of my employer |
fine Operating Systems." +--------------------------------------+
next prev parent reply other threads:[~1995-01-24 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-23 16:57 VAX C Binary Stream File Question jgreen
1995-01-24 17:02 ` Hein RMS van den Heuvel [this message]
1995-01-24 20:41 ` Ken Cowan
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