xref: /original-bsd/include/ar.h (revision 7f22226e)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Hugh Smith at The University of Guelph.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)ar.h	5.3 (Berkeley) 03/12/91
11  */
12 
13 /* Pre-4BSD archives had these magic numbers in them. */
14 #define	OARMAG1	0177555
15 #define	OARMAG2	0177545
16 
17 #define	ARMAG		"!<arch>\n"	/* ar "magic number" */
18 #define	SARMAG		8		/* strlen(ARMAG); */
19 
20 #define	AR_EFMT1	"#1/"		/* extended format #1 */
21 
22 struct ar_hdr {
23 	char ar_name[16];		/* name */
24 	char ar_date[12];		/* modification time */
25 	char ar_uid[6];			/* user id */
26 	char ar_gid[6];			/* group id */
27 	char ar_mode[8];		/* octal file permissions */
28 	char ar_size[10];		/* size in bytes */
29 #define	ARFMAG	"`\n"
30 	char ar_fmag[2];		/* consistency check */
31 };
32