Coherent4.2.10/include/arcoff.h
/* (-lgl
* Coherent 386 release 4.2
* Copyright (c) 1982, 1993 by Mark Williams Company.
* All rights reserved. May not be copied without permission.
* For copying permission and licensing info, write licensing@mwc.com
-lgl) */
/* COMMON ARCHIVE FORMAT
*
* ARCHIVE File Organization:
* _______________________________________________
* |__________ARCHIVE_MAGIC_STRING_______________|
* |__________ARCHIVE_FILE_MEMBER_1______________|
* | |
* | Archive File Header "ar_hdr" |
* |.............................................|
* | Member Contents |
* | 1. External symbol directory |
* | 2. Text file |
* |_____________________________________________|
* |________ARCHIVE_FILE_MEMBER_2________________|
* | "ar_hdr" |
* |.............................................|
* | Member Contents (.o or text file) |
* |_____________________________________________|
* | . . . |
* | . . . |
* | . . . |
* |_____________________________________________|
* |________ARCHIVE_FILE_MEMBER_n________________|
* | "ar_hdr" |
* |.............................................|
* | Member Contents |
* |_____________________________________________|
*
*/
#ifndef __ARCOFF_H__
#define __ARCOFF_H__
#define ARMAG "!<arch>\n"
#define SARMAG 8
#define ARFMAG "`\n"
struct ar_hdr /* archive file member header - printable ascii */
{
char ar_name[16]; /* file member name - `/' terminated */
char ar_date[12]; /* file member date - decimal */
char ar_uid[6]; /* file member user id - decimal */
char ar_gid[6]; /* file member group id - decimal */
char ar_mode[8]; /* file member mode - octal */
char ar_size[10]; /* file member size - decimal */
char ar_fmag[2]; /* ARFMAG - string to end header */
};
#endif