scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

ar.h (439B)


      1 
      2 #define ARMAGIC       "!<arch>\n"
      3 #define ARMAGIC_SIZ   8
      4 
      5 struct arhdr {
      6 	char name[17];
      7 	unsigned long long time;
      8 	int uid;
      9 	int gid;
     10 	int mode;
     11 	unsigned long long size;
     12 };
     13 
     14 #define ARHDR_SIZ      60
     15 #define ARNAME_SIZ     16
     16 #define ARMAGIC        "!<arch>\n"
     17 #define ARMAGIC_SIZ    8
     18 
     19 extern int wrarhdr(FILE *fp, struct arhdr *hdr);
     20 extern int wrarfile(FILE *fp, struct arhdr *hdr);
     21 extern int rdarhdr(FILE *fp, struct arhdr *hdr);