Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mt(1)

tar(1)

MTIO(5)  —  Stardent Computer Inc.

NAME

mtio − UNIX magtape manipulation interface

SYNOPSIS

#include <sys/types.h>
#include <sys/43ioctl.h>
#include <sys/mtio.h>

DESCRIPTION

The following information is from <sys/mtio.h>:

/∗
 ∗ Structures and definitions for mag tape io control commands
 ∗/
 /∗ structure for MTIOCTOP - mag tape op command ∗/
structmtop{
shortmt_op;/∗ operations defined below ∗/
daddr_tmt_count;/∗ how many of them ∗/
};
 /∗ operations ∗/
#define MTWEOF0/∗ write an end-of-file record ∗/
#define MTFSF1/∗ forward space file ∗/
#define MTBSF2/∗ backward space file ∗/
#define MTFSR3/∗ forward space record ∗/
#define MTBSR4/∗ backward space record ∗/
#define MTREW5/∗ rewind ∗/
#define MTOFFL6/∗ rewind and put the drive offline ∗/
#define MTNOP7/∗ no operation, sets status only ∗/
#define MTRETEN 8/∗ retension the tape ∗/
#define MTERASE 9/∗ erase the entire tape ∗/
 /∗ structure for MTIOCGET - mag tape get status command ∗/
 structmtget{
shortmt_type;/∗ type of magtape device ∗/
/∗ the following two registers are grossly device dependent ∗/
shortmt_dsreg;/∗ “drive status” register ∗/
shortmt_erreg;/∗ “error” register ∗/
/∗ end device-dependent registers ∗/
shortmt_resid;/∗ residual count ∗/
/∗ the following two are not yet implemented ∗/
daddr_tmt_fileno;/∗ file number of current position ∗/
daddr_tmt_blkno;/∗ block number of current position ∗/
/∗ end not yet implemented ∗/
};
 /∗
 ∗ Constants for mt_type byte.  These are the same
 ∗ for other controllers compatible with the types listed.
 ∗/
#defineMT_ISTS0x01/∗ TS-11 ∗/
#defineMT_ISHT0x02/∗ TM03 Massbus: TE16, TU45, TU77 ∗/
#defineMT_ISTM0x03/∗ TM11/TE10 Unibus ∗/
#defineMT_ISMT0x04/∗ TM78/TU78 Massbus ∗/
#defineMT_ISUT0x05/∗ SI TU-45 emulation on Unibus ∗/
#defineMT_ISCPC0x06/∗ SUN ∗/
#defineMT_ISAR0x07/∗ SUN ∗/
#defineMT_ISTMSCP0x08/∗ DEC TMSCP protocol (TU81, TK50) ∗/
#define MT_ISSCSI0x0A/∗ titan: Generic SCSI ∗/
  /∗ mag tape io control commands ∗/
#defineMTIOCTOP_IOW(m, 1, struct mtop)/∗ do a mag tape op ∗/
#defineMTIOCGET_IOR(m, 2, struct mtget)/∗ get tape status ∗/
 #ifndef KERNEL
#defineDEFTAPE"/dev/rmt8"
#endif

FILES

/dev/{r}mt/c?d?[lmh]{n}
/dev/{r}mt/0m{n}
/dev/{r}mt[0-9]∗

SEE ALSO

mt(1), tar(1)

BUGS

The status should be returned in a device independent format. 

September 29, 2021

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