Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!seismo.css.gov!topaz!packard!ttrdc!levy From: levy@ttrdc.UUCP Newsgroups: mod.computers.vax Subject: (none) Message-ID: <8510250657.AA06044@py.garage.packard.DK> Date: Fri, 25-Oct-85 02:57:18 EDT Article-I.D.: py.8510250657.AA06044 Posted: Fri Oct 25 02:57:18 1985 Date-Received: Sat, 26-Oct-85 03:09:36 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 39 Approved: info-vax@ucb-vax.arpa MODERATOR--PLEASE POST THIS TO FA.INFO-VAX/MOD.COMPUTERS.VAX. YOU MAY EDIT IF YOU WISH. THANK YOU. 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