1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#define ARMAG "!<arch>\n" #define SARMAG 8 #define ARFMAG "`\n" #define SARNAME 16 struct ar_hdr { char name[SARNAME]; char date[12]; char uid[6]; char gid[6]; char mode[8]; char size[10]; char fmag[2]; }; #define SAR_HDR (SARNAME+44)