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