aboutsummaryrefslogtreecommitdiff
path: root/include/ar.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-25 04:20:11 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-25 04:20:11 +0000
commita07cc61341225966fd714e8715aeca6c558b5b8e (patch)
tree4619bd0c087f07b5b8cd155e1bf34ecdce2dbf0e /include/ar.h
parenta6ac0c5998db0fb3b89c11800507b7307dba692b (diff)
downloadgdb-a07cc61341225966fd714e8715aeca6c558b5b8e.zip
gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.gz
gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.bz2
Initial revision
Diffstat (limited to 'include/ar.h')
-rwxr-xr-xinclude/ar.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/ar.h b/include/ar.h
new file mode 100755
index 0000000..2bca46d
--- /dev/null
+++ b/include/ar.h
@@ -0,0 +1,24 @@
+/* archive file definition for GNU software */
+
+/* So far this is correct for BSDish archives. Don't forget that
+ files must begin on an even byte boundary. */
+
+#ifndef __GNU_AR_H__
+#define __GNU_AR_H__
+
+#define ARMAG "!<arch>\n" /* For COFF and a.out archives */
+#define ARMAGB "!<bout>\n" /* For b.out archives */
+#define SARMAG 8
+#define ARFMAG "`\n"
+
+struct ar_hdr {
+ char ar_name[16]; /* name of this member */
+ char ar_date[12]; /* file mtime */
+ char ar_uid[6]; /* owner uid; printed as decimal */
+ char ar_gid[6]; /* owner gid; printed as decimal */
+ char ar_mode[8]; /* file mode, printed as octal */
+ char ar_size[10]; /* file size, printed as decimal */
+ char ar_fmag[2]; /* should contain ARFMAG */
+};
+
+#endif /* __GNU_AR_H__ */