home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!cmcl2!rlgsc.com!gezelter
- From: gezelter@rlgsc.com
- Newsgroups: comp.os.vms
- Subject: Re: VAX c
- Message-ID: <1992Dec26.100030.299@rlgsc.com>
- Date: 26 Dec 92 15:00:30 GMT
- References: <24DEC199220084219@spades.aces.com> <Bzt6EF.Est@dale.cts.com>
- Organization: Robert Gezelter Software Consultant, Flushing, NY
- Lines: 47
-
- In article <Bzt6EF.Est@dale.cts.com>, glippert@dale.cts.com (George Lippert) writes:
- > Ehud Gavron 602-570-2000 x. 2546 (gavron@spades.aces.com) wrote:
- >> In article <1992Dec24.173709.16437@mailer.cc.fsu.edu>, cliff@evax9.eng.fsu.edu writes...
- >> >Is there a way to get VAX C to flush the VMS file buffers?
- >>
- >> fflush(stream)
- >
- > Not according to DEC Support. After trying this, and having it clearly not
- > work, DEC Support confirmed that fflush() only flushes to the RMS buffers -
- > NOT to the actual device.
- >
- > 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.
- >
- > --
- > George A. Lippert work: glippert@dale.cts.com
- > Titan Satellite Systems home: zucchini!glippert@dale.cts.com (NeXTmail ok)
- > San Diego, CA
- > ------------------------------------------------------------------------------
- --
- George,
-
- I will admit that the following solution is a bit of hitting a
- small ant hill with a large explosive, but ...
-
- When the time expires, close the file. Then re-open it in append
- mode. This will ensure that all of your buffers are flushed out
- to the disk.
-
- If I remember correctly from the original post, the application
- in question is not a high bandwidth application. The periodic
- close/reopen cycle should not appreciably increase your CPU
- consumption.
-
- I hope that the above is helpful. If I have been unclear, or if I
- can be of further assistance, please feel free to contact me via
- Email or phone.
-
- - Bob
- +--------------------------------------------------------------------------+
- | Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com |
- | Robert Gezelter Software Consultant Voice: +1 718 463 1079 |
- | 35-20 167th Street, Suite 215 Fax: (on Request) |
- | Flushing, New York 11358-1731 |
- | United States of America |
- +--------------------------------------------------------------------------+
-