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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95a12da5f86062ea,start X-Google-Attributes: gid103376,public From: pique@obelix.cica.es (Jose Ramon Pique Sanchez) Subject: Ada and devices Date: 1996/12/25 Message-ID: <59r821$3kv@erika.cica.es>#1/1 X-Deja-AN: 205904016 content-type: text/plain; charset=iso-8895-1 organization: Centro Informatico Cientifico de Andalucia mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-12-25T00:00:00+00:00 List-Id: I have a problem using an Optical Floppy from a Motorola 68030 Micro under VxWorks 5.1 Operating System. The problem is the following: I have to develop a program in ADA to write and read from an Optical Floppy that is connected in a SCSI port "/sd0/". I thought it'd be very easy using the ADA procedures OPEN, CLOSE, READ and WRITE but I have encountered that I cannot control if somebody removes the floppy when a write or read operation is running. I think that a DEVICE_ERROR exception must be raised but it doesn't happen. Perhaps, the Operating System creates a temporary file to write an read, and when I CLOSE the file the system phisycally writes data in the floppy, but if this idea is right, Why isn't any exception raised when I CLOSE the file after removing the floppy?? Any suggestions?? Thanks in advance.. BTW: Please e-mail to jrpique@sainsel.es