🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.decus
Article #24

undocumented flag to VMS C open() ?

#24
From: Daniel R. Levy
Date: Wed, 23 Oct 1985 01:06
38 lines
2826 bytes
Please, please pardon me for cluttering up your screens again if you've seen
this before, but I really need to find something out and I knew it was posted
some time ago (when of course I neglected to save it :-( ).

A couple or so months back, somebody (I think from Raytheon Corp.) posted a
question of how it would be possible to induce reads from VMS C to fetch the
"hidden" first byte of each record in a file which had been previously created
with Fortran carriage-control attributes.  It seems that in their infinite wis-
dom, the implementors of VMS C decided that reads from such a file would ignore
these first bytes, as if it were being read from a printed page, I guess.
Unfortunately, this makes such a file and an edited copy of it (sans attributes)
look different to a VMS C program, among other difficulties (what if there is
important data in that first byte?).  A workaround is converting the file
type (from DCL) but that is kind of awkward.

Anyhow, several helpful people posted messages concerning an "undocumented" flag
which could be used upon open()-ing [or maybe fopen()-ing] the file in order
not to miss those first bytes when the file was read.  At the time I did not
have access to VMS C (only Eunice C, which did not care whether or not there
were Fortran carriage-control attributes--yay Eunice I guess) so there was no
occasion for me to save this.  Now I have access to a VMS C compiler, and am
banging my head over this problem.  I contacted my friendly DEC representative,
who told me he knew of no such flag, but suggested the direct use of system
services (UGH!!! and highly nonportable).   So I am pleading and begging for
SOMEONE who remembers this or knows about this to PLEASE post or send me
Unix mail (address given in .signature).  I shall a thousand times over
be grateful (well maybe only 999 but... :-).

--Dan--


-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!ihnp4!ttrdc!levy
Technical Details
Message-ID: <511@ttrdc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!mgnetp!ltuxa!ttrdc!levy

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site ttrdc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!mgnetp!ltuxa!ttrdc!levy
From: levy@ttrdc.UUCP (Daniel R. Levy)
Newsgroups: net.decus
Subject: undocumented flag to VMS C open() ?
Message-ID: <511@ttrdc.UUCP>
Date: Tue, 22-Oct-85 21:06:30 EDT
Article-I.D.: ttrdc.511
Posted: Tue Oct 22 21:06:30 1985
Date-Received: Thu, 24-Oct-85 00:47:11 EDT
Organization: AT&T, Computer Systems Division, Skokie, IL
Lines: 38