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

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: VAX c
  5. Date: 26 Dec 1992 07:32:26 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <1hh1qaINNfjb@gap.caltech.edu>
  10. References: <1992Dec24.173709.16437@mailer.cc.fsu.edu>,<24DEC199220084219@spades.aces.com>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <24DEC199220084219@spades.aces.com>, gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546) writes:
  15. =In article <1992Dec24.173709.16437@mailer.cc.fsu.edu>, cliff@evax9.eng.fsu.edu writes...
  16. =# 
  17. =#Is there a way to get VAX C to flush the VMS file buffers? 
  18. =# 
  19. =#I've got a program that reads data in for the tta2: port and then writes it to 
  20. =#a file. The problem is that the data doesn't get written to the file until the 
  21. =#buffer is full, and that may not happen but once every day or two.  
  22. =
  23. =    fflush(stream)
  24. =
  25. =    example:
  26. =    fflush(stdout);
  27.  
  28. Sorry, Ehud, but this doesn't do what Cliff wants.  It merely flushes the C I/O
  29. RTL buffers, handing the stuff to RMS.  Unfortunately, it doesn't also cause
  30. RMS to issue a $FLUSH, at least not under VMS v5.4-2.
  31. --------------------------------------------------------------------------------
  32. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  33.  
  34. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  35. understanding of astronomy is purely at the amateur level (or below).  So
  36. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  37. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  38. hold me responsible for it, but my organization had nothing to do with it.
  39.