Function: MTSTAT Purpose: Reports the status of a specified tape device. Category: TAPES File: mtiodev.c Author: K.G. Begeman Use: INTEGER MTSTAT( MTID ) Input INTEGER MTSTAT Returns: >0 : Status of device (see below). -1 : System error. -4 : Device not open. -6 : Not implemented. MTID Tape device id returned by MTOPEN. Note: The returned status contains the following in formation: bit 0 At beginning of tape. bit 1 At end of tape mark. bit 2 Tape is write enabled. bit 3 Tape is online. bit 4 Last record read was a tape mark. bit 5 Error occurred in last tape operation. Warning: Code is System dependent! Updates: Jul 20, 1989, KGB, Document created.