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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!ucbvax!NSCVAX.PRINCETON.EDU!dragon
  2. From: dragon@NSCVAX.PRINCETON.EDU (Mighty Firebreather)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: VAX c
  5. Message-ID: <00965C4A.B8596500.30864@nscvax.princeton.edu>
  6. Date: 28 Dec 92 20:10:49 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 35
  10.  
  11.  
  12.     George Lippert <dale.cts.com!glippert@nosc.mil> writes:
  13.  
  14. >Ehud Gavron 602-570-2000 x. 2546 (gavron@spades.aces.com) wrote:
  15. >> In article <1992Dec24.173709.16437@mailer.cc.fsu.edu>, cliff@evax9.eng.fsu.edu writes...
  16. >> >Is there a way to get VAX C to flush the VMS file buffers?
  17. >>
  18. >>     fflush(stream)
  19. >
  20. >Not according to DEC Support.  After trying this, and having it clearly not
  21. >work, DEC Support confirmed that fflush() only flushes to the RMS buffers -
  22. >NOT to the actual device.
  23. >
  24. >So how do I make sure that the buffer gets onto disk? (in my case), I asked.
  25. >They told me that there is an "unsupported and undocumented" function that I
  26. >could call.  Thanks, but no thanks, I said.
  27. >
  28.  
  29.     I know of only two ways to force RMS to flush its buffers:
  30.    1.    Close the file.
  31.    2.    Use the SYS$FLUSH call which you will find documented in the RMS 
  32. Reference Manual.  This requires that you have pointer to the RAB.  I don't 
  33. think that there is a way to find out what the VAXCRTL is using for a RAB
  34. address but you can set up your own FAB and RAB and make your own calls to
  35. SYS$OPEN and SYS$CONNECT to open the file.
  36.  
  37.  
  38. *************************************************************************
  39. *                                                                       *
  40. *                        Here, there be dragons!                        *
  41. *                      dragon@nscvax.princeton.edu                      *
  42. *                                                                       *
  43. *                                                Richard B. Gilbert     *
  44. *************************************************************************
  45.  
  46.