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

📄 tm.4

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 4
字号:
.th TM IV 2/21/74.sh NAMEtm \*- TM-11/TU-10 magtape interface.sh DESCRIPTIONThe files.it "mt0, ..., mt7"refer to the DEC TU10/TM11 magtape.When opened for reading or writing,the tape is rewound.When closed, it is rewound;if it was open for writing, an end-of-file is written first..s3A standard tape consists of aseries of 512 byte records terminated by anend-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..s3The.it 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 are named.it "rmt0, ..., rmt7."Each.it reador.it 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.An error is returned when a tape mark is read,but another read will fetch the first record of thenew tape file..sh FILES/dev/mt?,/dev/rmt?.sh "SEE ALSO"tp (I).sh BUGSIf 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.

⌨️ 快捷键说明

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