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

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!cmcl2!rlgsc.com!gezelter
  2. From: gezelter@rlgsc.com
  3. Newsgroups: comp.os.vms
  4. Subject: Re: VAX c
  5. Message-ID: <1992Dec26.100030.299@rlgsc.com>
  6. Date: 26 Dec 92 15:00:30 GMT
  7. References: <24DEC199220084219@spades.aces.com> <Bzt6EF.Est@dale.cts.com>
  8. Organization: Robert Gezelter Software Consultant, Flushing, NY
  9. Lines: 47
  10.  
  11. In article <Bzt6EF.Est@dale.cts.com>, glippert@dale.cts.com (George Lippert) writes:
  12. > Ehud Gavron 602-570-2000 x. 2546 (gavron@spades.aces.com) wrote:
  13. >> In article <1992Dec24.173709.16437@mailer.cc.fsu.edu>, cliff@evax9.eng.fsu.edu writes...
  14. >> >Is there a way to get VAX C to flush the VMS file buffers? 
  15. >>
  16. >>     fflush(stream)
  17. > Not according to DEC Support.  After trying this, and having it clearly not
  18. > work, DEC Support confirmed that fflush() only flushes to the RMS buffers -
  19. > NOT to the actual device.
  20. > So how do I make sure that the buffer gets onto disk? (in my case), I asked.
  21. > They told me that there is an "unsupported and undocumented" function that I
  22. > could call.  Thanks, but no thanks, I said.
  23. > --
  24. > George A. Lippert           work:          glippert@dale.cts.com
  25. > Titan Satellite Systems     home: zucchini!glippert@dale.cts.com (NeXTmail ok)
  26. > San Diego, CA                                            
  27. > ------------------------------------------------------------------------------
  28. -- 
  29. George,
  30.  
  31. I will admit that the following solution is a bit of hitting a 
  32. small ant hill with a large explosive, but ...
  33.  
  34. When the time expires, close the file. Then re-open it in append 
  35. mode. This will ensure that all of your buffers are flushed out 
  36. to the disk.
  37.  
  38. If I remember correctly from the original post, the application 
  39. in question is not a high bandwidth application. The periodic 
  40. close/reopen cycle should not appreciably increase your CPU 
  41. consumption.
  42.  
  43. I hope that the above is helpful. If I have been unclear, or if I 
  44. can be of further assistance, please feel free to contact me via 
  45. Email or phone.
  46.  
  47. - Bob
  48. +--------------------------------------------------------------------------+
  49. | Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  50. | Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  51. | 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  52. | Flushing, New York  11358-1731                                           |
  53. | United States of America                                                 |
  54. +--------------------------------------------------------------------------+
  55.