Commit | Line | Data |
---|---|---|
4d882547 | 1 | /*- |
56559b70 KB |
2 | * Copyright (c) 1991, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
bb0cfa24 | 4 | * |
4d882547 KB |
5 | * This code is derived from software contributed to Berkeley by |
6 | * Hugh Smith at The University of Guelph. | |
7 | * | |
311a2564 KB |
8 | * %sccs.include.redist.c% |
9 | * | |
56559b70 | 10 | * @(#)ar.h 8.1 (Berkeley) %G% |
bb0cfa24 | 11 | */ |
ef84769c | 12 | |
d2b7358e KB |
13 | #ifndef _AR_H_ |
14 | #define _AR_H_ | |
15 | ||
4d882547 KB |
16 | /* Pre-4BSD archives had these magic numbers in them. */ |
17 | #define OARMAG1 0177555 | |
18 | #define OARMAG2 0177545 | |
ef84769c | 19 | |
4d882547 KB |
20 | #define ARMAG "!<arch>\n" /* ar "magic number" */ |
21 | #define SARMAG 8 /* strlen(ARMAG); */ | |
22 | ||
23 | #define AR_EFMT1 "#1/" /* extended format #1 */ | |
ef84769c SL |
24 | |
25 | struct ar_hdr { | |
4d882547 KB |
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 */ | |
ef84769c | 34 | }; |
d2b7358e KB |
35 | |
36 | #endif /* !_AR_H_ */ |