xref: /original-bsd/include/ar.h (revision 767d859e)
1 /*-
2  * Copyright (c) 1990 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  *	@(#)ar.h	5.2 (Berkeley) 01/17/91
9  */
10 
11 /* Pre-4BSD archives had these magic numbers in them. */
12 #define	OARMAG1	0177555
13 #define	OARMAG2	0177545
14 
15 #define	ARMAG		"!<arch>\n"	/* ar "magic number" */
16 #define	SARMAG		8		/* strlen(ARMAG); */
17 
18 #define	AR_EFMT1	"#1/"		/* extended format #1 */
19 
20 struct ar_hdr {
21 	char ar_name[16];		/* name */
22 	char ar_date[12];		/* modification time */
23 	char ar_uid[6];			/* user id */
24 	char ar_gid[6];			/* group id */
25 	char ar_mode[8];		/* octal file permissions */
26 	char ar_size[10];		/* size in bytes */
27 #define	ARFMAG	"`\n"
28 	char ar_fmag[2];		/* consistency check */
29 };
30