Commit | Line | Data |
---|---|---|
4d882547 KB |
1 | /*- |
2 | * Copyright (c) 1990 The Regents of the University of California. | |
3 | * 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 | * | |
8 | * @(#)ar.h 5.2 (Berkeley) %G% | |
bb0cfa24 | 9 | */ |
ef84769c | 10 | |
4d882547 KB |
11 | /* Pre-4BSD archives had these magic numbers in them. */ |
12 | #define OARMAG1 0177555 | |
13 | #define OARMAG2 0177545 | |
ef84769c | 14 | |
4d882547 KB |
15 | #define ARMAG "!<arch>\n" /* ar "magic number" */ |
16 | #define SARMAG 8 /* strlen(ARMAG); */ | |
17 | ||
18 | #define AR_EFMT1 "#1/" /* extended format #1 */ | |
ef84769c SL |
19 | |
20 | struct ar_hdr { | |
4d882547 KB |
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 */ | |
ef84769c | 29 | }; |