Bell 32V development
[unix-history] / usr / man / man4 / tm.4
CommitLineData
2c2d3e6c
TL
1.TH TM 4
2.SH NAME
3tm \- TM-11/TU-10 magtape interface
4.SH DESCRIPTION
5The files
6.I "mt0, ..., mt7"
7refer to the DEC TU10/TM11 magtape.
8When opened for reading or writing,
9the tape is rewound.
10When closed, it is rewound;
11if it was open for writing, an end-of-file is written first.
12.PP
13A standard tape consists of a
14series of 512 byte records terminated by an
15end-of-file.
16To the extent possible, the system makes
17it possible, if inefficient, to treat
18the tape like any other file.
19Seeks have their usual meaning and it is possible
20to read or write a byte at a time.
21Writing in very small units is inadvisable,
22however, because it tends to create monstrous record
23gaps.
24.PP
25The
26.I mt
27files discussed above are useful
28when it is desired to access the tape in a way
29compatible with ordinary files.
30When foreign tapes are to be dealt with, and especially
31when long records are to be read or written, the
32`raw' interface is appropriate.
33The associated files are named
34.I "rmt0, ..., rmt7."
35Each
36.I read
37or
38.I write
39call reads or writes the next record on the tape.
40In the write case the record has the same length as the
41buffer given.
42During a read, the record size is passed
43back as the number of bytes read, provided it is no greater
44than the buffer size;
45if the record is long, an error is indicated.
46In raw tape I/O, the buffer must begin on a word boundary
47and the count must be even.
48Seeks are ignored.
49A zero byte count is returned when a tape mark is read,
50but another read will fetch the first record of the
51new tape file.
52.SH FILES
53/dev/mt?,
54/dev/rmt?
55.SH "SEE ALSO"
56tp(1)
57.SH BUGS
58If any non-data error is encountered, it refuses to do anything
59more until closed.
60In raw I/O, there should be a way
61to perform forward and backward record and file spacing and
62to write an EOF mark.