From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!mnetor!uunet!mcvax!cernvax!paul From: paul@cernvax.UUCP (paul) Newsgroups: comp.lang.ada Subject: Vax Ada text_io.create + RMS $FLUSH. How? Message-ID: <667@cernvax.UUCP> Date: 6 May 88 15:35:20 GMT Reply-To: paul@cernvax.UUCP () Organization: CERN European Laboratory for Particle Physics, CH-1211 Geneva, Switzerland List-Id: VAX ADA & RMS: I have an Ada program which opens a sequential disk file (TEXT_IO) for one writer many readers. All works well and the readers can see the latest record written. Unfortunately the records seem to be cached in memory because if the machine should crash, the last few records disappear ie are not on the disk after the reboot. I feel I should call the RMS service $FLUSH at convenient times. Unfortunately, it wants a RAB parameter and as I opened the file using text_io.create, I have no RAB to give it... a) Am I taking the right approach? b) How would I persuade Ada to tell me the RAB to give to $FLUSH? Thanks for your help. Paul Burkimsher