1 .\" $Id: arch.5,v 1.5 1995/03/17 14:11:47 ceriel Exp $
2 .TH ARCH 5 "$Revision: 1.5 $"
5 arch \- archive (library) file format
11 is used to combine several files into
13 Archives are used mainly as libraries to be searched
14 by the EM assembler/linker em_ass(6) or the universal
15 assembler/linker uni_ass(6).
19 has a magic number at the start,
20 followed by the constituent files, each preceded by a file header.
21 The magic number and header layout as described in the
26 .ta \w'#define 'u +\w'ARMAG 'u
27 .so TARGETHOME/h/arch.h
31 The name is a null-terminated string;
32 The sizes of the other entries are determined as follows:
33 long's are 4 bytes in PDP-11 order, int are 2 bytes, low order
34 byte first, char's are 1 byte.
38 the user ID and group ID are numbers; the mode is a bit pattern
41 the size is counted in bytes.
43 Each file begins on a even offset;
44 a null byte is inserted between files if necessary.
45 Nevertheless the size given reflects the
46 actual size of the file exclusive of padding.
48 Notice there is no provision for empty areas in an archive
53 arch(1), em_ass(6), uni_ass(6)
55 Coding user and group IDs as characters is a botch.