|
|
1.1 ! root 1: .th ARCHIVE V 9/10/73 ! 2: .sh NAME ! 3: ar \*- archive (library) file format ! 4: .sh DESCRIPTION ! 5: The archive command ! 6: .it ar ! 7: is used to combine several files into ! 8: one. ! 9: Archives are used mainly as libraries to be searched ! 10: by the link-editor ! 11: .it ld. ! 12: .s3 ! 13: A file produced by ! 14: .it ar ! 15: has a magic number at the start, ! 16: followed by the constituent files, each preceded by a file header. ! 17: The magic number is ! 18: 177555(8) ! 19: (it was chosen to be unlikely to occur anywhere else). ! 20: The header of each file is 16 bytes long: ! 21: .s3 ! 22: .lp +13 8 ! 23: 0-7 file ! 24: name, null padded on the right ! 25: .lp +13 8 ! 26: 8-11 modification ! 27: time of the file ! 28: .lp +13 8 ! 29: 12 user ID of file owner ! 30: .lp +13 8 ! 31: 13 file mode ! 32: .lp +13 8 ! 33: 14-15 file size ! 34: .s3 ! 35: .i0 ! 36: If the file is an odd number of bytes long, it is padded ! 37: with a null byte, but the size in the header is correct. ! 38: .s3 ! 39: Notice there is no provision for empty areas in an archive ! 40: file. ! 41: .sh "SEE ALSO" ! 42: ar (I), ld (I) ! 43: .sh BUGS ! 44: Names are only 8 characters, not 14. ! 45: More important, there isn't enough room to ! 46: store the proper mode, ! 47: so ! 48: .it ar ! 49: always extracts in mode 666.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.