home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19906 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  2.0 KB

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