Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Motorola System V 88k Release 3.2 Version 1.2C

Media Vault

Software Library

Restoration Projects

Artifacts Sought



  MTIO(4)                 (24 November 1987)                MTIO(4)



  NAME
       mtio - UNIX magnetic tape interface

  DESCRIPTION
       A number of ioctl operations are available on raw magnetic
       tape.  The following definitions are from <sys/mtio.h>:

       /*
        * Structures and definitions for mag tape I/O control commands
        */

       /* structure for MTIOCTOP - mag tape op command */
       struct    mtop {
            short     mt_op;              /* operations defined below */
            daddr_t   mt_count;      /* how many of them */
       };

       /* operations */
       #define   MTWEOF    0         /* write an end-of-file record */
       #define   MTFSF          1         /* forward space file */
       #define   MTBSF          2         /* backward space file */
       #define   MTFSR          3         /* forward space record */
       #define   MTBSR          4         /* backward space record */
       #define   MTREW     5         /* rewind */
       #define   MTOFFL    6         /* rewind and put the drive offline */
       #define   MTNOP          7         /* no operation, sets status only */
       #define   MTCACHE   8         /* enable controller cache */
       #define   MTNOCACHE 9         /* enable controller cache */
       #define   MTFSS     10        /* forward space sequential tape marks */
       #define   MTBSS     11        /* backward space sequential tape marks */
       #define   MTERA     12        /* erase tape */
       #define   MTEND     13        /* move to end of media */
       #define   MTTEN     14        /* retension the tape */

       /* structure for MTIOCGET - mag tape get status command */

       struct    mtget     {
            short     mt_type;       /* type of magtape device */
       /* the following two registers are grossly device dependent */
            short     mt_dsreg;      /* ``drive status'' register */


  Page 1                                                   May 1989


















  MTIO(4)                 (24 November 1987)                MTIO(4)



            short     mt_erreg;      /* ``error'' register */
       /* end device-dependent registers */
            short     mt_resid;      /* residual count */
            daddr_t   mt_fileno;          /* file number of current position */
            daddr_t   mt_blkno;      /* block number of current position */
       };

       /* mag tape io control commands */
       #define   MTIOCTOP  0x80086d01 /* do a mag tape op */
       #define   MTIOCGET  0x40106d02     /* get tape status */
       #ifndef KERNEL
       #define   DEFTAPE   ``/dev/rmt/ctape''
       #endif

  FILES
       /dev/mt?
       /dev/rmt?

  SEE ALSO
       mt (1), tar (1), mt(4)






















  Page 2                                                   May 1989
















Typewritten Software • bear@typewritten.org • Edmonds, WA 98026