home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdb-4.12.tar.gz / gdb-4.12.tar / gdb-4.12 / include / aout / ar.h < prev    next >
C/C++ Source or Header  |  1994-02-03  |  1KB  |  33 lines

  1. /* archive file definition for GNU software */
  2.  
  3. /* So far this is correct for BSDish archives.  Don't forget that
  4.    files must begin on an even byte boundary. */
  5.  
  6. #ifndef __GNU_AR_H__
  7. #define __GNU_AR_H__
  8.  
  9. #define ARMAG  "!<arch>\n"    /* For COFF and a.out archives */
  10. #define ARMAGB "!<bout>\n"    /* For b.out archives */
  11. #define SARMAG 8
  12. #define ARFMAG "`\n"
  13.  
  14. /* The ar_date field of the armap (__.SYMDEF) member of an archive
  15.    must be greater than the modified date of the entire file, or 
  16.    BSD-derived linkers complain.  We originally write the ar_date with
  17.    this offset from the real file's mod-time.  After finishing the
  18.    file, we rewrite ar_date if it's not still greater than the mod date.  */
  19.  
  20. #define ARMAP_TIME_OFFSET       60
  21.  
  22. struct ar_hdr {
  23.   char ar_name[16];        /* name of this member */
  24.   char ar_date[12];        /* file mtime */
  25.   char ar_uid[6];        /* owner uid; printed as decimal */
  26.   char ar_gid[6];        /* owner gid; printed as decimal */
  27.   char ar_mode[8];        /* file mode, printed as octal   */
  28.   char ar_size[10];        /* file size, printed as decimal */
  29.   char ar_fmag[2];        /* should contain ARFMAG */
  30. };
  31.  
  32. #endif /* __GNU_AR_H__ */
  33.