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