⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ht.4

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 4
字号:
.TH HT 4 .SH NAMEht \- RH-11/TU-16 magtape interface.SH DESCRIPTIONThe files.I mt0, mt1, ...refer to the DEC RH/TM/TU16 magtape.When opened for reading or writing,the tape is not rewound.When closed, it is rewound (unless the 0200 bit is on, see below).If the tape was open for writing, a double end-of-file is written.If the tape is not to be rewound the tape is backspaced to just between the twotapemarks..PPA standard tape consists of aseries of 512 byte records terminated by a doubleend-of-file.To the extent possible, the system makesit possible, if inefficient, to treatthe tape like any other file.Seeks have their usual meaning and it is possibleto read or write a byte at a time.Writing in very small units is inadvisable,however, because it tends to create monstrous recordgaps..PPThe last octal digit of the minor devicenumber selects the drive.The middle digit selects a controller.The initial digit is even to select 800 BPI,odd to select 1600 BPI.If the 0200 bit is on (initial digit 2 or 3), the tape is not rewoundon close.Note that theminor device number has no necessary connectionwith the file name, and in fact.IR tp (1)turns the short name.I xinto.RI `/dev/mt x '..PPThe.I mtfiles discussed above are usefulwhen it is desired to access the tape in a waycompatible with ordinary files.When foreign tapes are to be dealt with, and especiallywhen long records are to be read or written, the`raw' interface is appropriate.The associated files may be named.I "rmt0, ..., rmt7,"but the same minor-device considerationsas for the regular files still apply..PPEach.I reador.I writecall reads or writes the next record on the tape.In the write case the record has the same length as thebuffer given.During a read, the record size is passedback as the number of bytes read, provided it is no greaterthan the buffer size;if the record is long, an error is indicated.In raw tape I/O, the buffer must begin on a word boundaryand the count must be even.Seeks are ignored.A zero count is returned when a tape mark is read;another read will fetch the first record of thenext tape file..SH FILES/dev/mt?,/dev/rmt?.SH "SEE ALSO"tp(1).SH BUGSThe magtape system is supposed to be ableto take 64 drives.Such addressing has never been tried..PPTaking a drive off line, or running off the end of tape,while writing have been known to hang the system..PPIf any non-data error is encountered, it refuses to do anythingmore until closed.In raw I/O, there should be a wayto perform forward and backward record and file spacing andto write an EOF mark explicitly.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -