archive.5

来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 5 代码 · 共 52 行

5
52
字号
.th ARCHIVE V 9/10/73.sh NAMEar \*- archive (library) file format.sh DESCRIPTIONThe archive command.it aris used to combine several files intoone.Archives are used mainly as libraries to be searchedby the link-editor.it ld..s3A file produced by.it arhas a magic number at the start,followed by the constituent files, each preceded by a file header.The magic number is177555(8)(it was chosen to be unlikely to occur anywhere else).The header of each file is 16 bytes long:.s3.lp +13 80-7	filename, null padded on the right.lp +13 88-11	modificationtime of the file.lp +13 812	user ID of file owner.lp +13 813	file mode.lp +13 814-15	file size.s3.i0Each file begins on a word boundary;a null byte is inserted between files if necessary.Nevertheless the size give reflects theactual size of the file exclusive of padding..s3Notice there is no provision for empty areas in an archivefile..sh "SEE ALSO"ar (I), ld (I).sh BUGSNames are only 8 characters, not 14.More important, there isn't enough room tostore the proper mode,so.it aralways extracts in mode 666.

⌨️ 快捷键说明

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