home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man5 / archive.5 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.1 KB  |  52 lines

  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. Each file begins on a word boundary;
  37. a null byte is inserted between files if necessary.
  38. Nevertheless the size give reflects the
  39. actual size of the file exclusive of padding.
  40. .s3
  41. Notice there is no provision for empty areas in an archive
  42. file.
  43. .sh "SEE ALSO"
  44. ar (I), ld (I)
  45. .sh BUGS
  46. Names are only 8 characters, not 14.
  47. More important, there isn't enough room to
  48. store the proper mode,
  49. so
  50. .it ar
  51. always extracts in mode 666.
  52.