home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!destroyer!ncar!noao!arizona!sunquest!spades.aces.com!gavron
- From: gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546)
- Newsgroups: comp.os.vms
- Subject: Re: VAX c
- Message-ID: <26DEC199216542325@spades.aces.com>
- Date: 26 Dec 92 23:54:00 GMT
- References: <24DEC199220084219@spades.aces.com> <Bzt6EF.Est@dale.cts.com>,<25DEC199221083299@spades.aces.com> <1hh20mINNfjb@gap.caltech.edu>
- Sender: news@cs.arizona.edu
- Reply-To: gavron@ACES.COM
- Organization: ACES Consulting Inc.
- Lines: 34
- News-Software: VAX/VMS VNEWS 1.4-b1
-
- In article <1hh20mINNfjb@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU writes...
- #In article <25DEC199221083299@spades.aces.com>, gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546) writes:
- #>#So how do I make sure that the buffer gets onto disk? (in my case), I asked.
- #=#They told me that there is an "unsupported and undocumented" function that I
- #=#could call. Thanks, but no thanks, I said.
- #=
- #=I didn't realize I'd have to hold your hand through this. You
- #=wanted it out of VAX C, I showed you how. Now you want it out
- #=of RMS and you won't even look up SYS$FLUSH. Shame on you.
- #
- #=P.S. If you can't figure out how to go from a stream ID (FILE *) to
- #= a FAB, please play with the listings just a tad more.
- #
- #Actually, you don't have to go all the way to the FAB, just to the RAB. And
- #the "unsupported and undocumented" function that DEC support was talking about
- #was almost certainly the one that returns the RAB associated with a file
- #descriptor.
-
- Actually since you can easily get from FILE * to the FAB, and
- the FAB gives you FAB$L_RAB which gives you the RAB, you do
- have to 'go all the way back to the FAB.'
-
- Undoubtedly the C compiler makes intimate use of this 'unsupported
- and undocumented' (unlikely to change at any time although no one
- will admit to it) featuere.
-
- #Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
- #
- Ehud
-
- --
- Ehud Gavron (EG76)
- gavron@vesta.sunquest.com
- Go on, EMOTE! I was RAISED on thought balloons!!
-