145994Sbostic /*- 261068Sbostic * Copyright (c) 1991, 1993 361068Sbostic * The Regents of the University of California. All rights reserved. 4*65762Sbostic * (c) UNIX System Laboratories, Inc. 5*65762Sbostic * All or some portions of this file are derived from material licensed 6*65762Sbostic * to the University of California by American Telephone and Telegraph 7*65762Sbostic * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8*65762Sbostic * the permission of UNIX System Laboratories, Inc. 921301Sdist * 1045994Sbostic * This code is derived from software contributed to Berkeley by 1145994Sbostic * Hugh Smith at The University of Guelph. 1245994Sbostic * 1347259Sbostic * %sccs.include.redist.c% 1447259Sbostic * 15*65762Sbostic * @(#)ar.h 8.2 (Berkeley) 01/21/94 1621301Sdist */ 1712178Ssam 1847759Sbostic #ifndef _AR_H_ 1947759Sbostic #define _AR_H_ 2047759Sbostic 2145994Sbostic /* Pre-4BSD archives had these magic numbers in them. */ 2245994Sbostic #define OARMAG1 0177555 2345994Sbostic #define OARMAG2 0177545 2412178Ssam 2545994Sbostic #define ARMAG "!<arch>\n" /* ar "magic number" */ 2645994Sbostic #define SARMAG 8 /* strlen(ARMAG); */ 2712178Ssam 2845994Sbostic #define AR_EFMT1 "#1/" /* extended format #1 */ 2945994Sbostic 3012178Ssam struct ar_hdr { 3145994Sbostic char ar_name[16]; /* name */ 3245994Sbostic char ar_date[12]; /* modification time */ 3345994Sbostic char ar_uid[6]; /* user id */ 3445994Sbostic char ar_gid[6]; /* group id */ 3545994Sbostic char ar_mode[8]; /* octal file permissions */ 3645994Sbostic char ar_size[10]; /* size in bytes */ 3745994Sbostic #define ARFMAG "`\n" 3845994Sbostic char ar_fmag[2]; /* consistency check */ 3912178Ssam }; 4047759Sbostic 4147759Sbostic #endif /* !_AR_H_ */ 42