|
|
1.1 ! root 1: /* COMMON ARCHIVE FORMAT ! 2: * ! 3: * ARCHIVE File Organization: ! 4: * _______________________________________________ ! 5: * |__________ARCHIVE_MAGIC_STRING_______________| ! 6: * |__________ARCHIVE_FILE_MEMBER_1______________| ! 7: * | | ! 8: * | Archive File Header "ar_hdr" | ! 9: * |.............................................| ! 10: * | Member Contents | ! 11: * | 1. External symbol directory | ! 12: * | 2. Text file | ! 13: * |_____________________________________________| ! 14: * |________ARCHIVE_FILE_MEMBER_2________________| ! 15: * | "ar_hdr" | ! 16: * |.............................................| ! 17: * | Member Contents (.o or text file) | ! 18: * |_____________________________________________| ! 19: * | . . . | ! 20: * | . . . | ! 21: * | . . . | ! 22: * |_____________________________________________| ! 23: * |________ARCHIVE_FILE_MEMBER_n________________| ! 24: * | "ar_hdr" | ! 25: * |.............................................| ! 26: * | Member Contents | ! 27: * |_____________________________________________| ! 28: * ! 29: */ ! 30: ! 31: #define ARMAG "!<arch>\n" ! 32: #define SARMAG 8 ! 33: #define ARFMAG "`\n" ! 34: ! 35: struct ar_hdr /* archive file member header - printable ascii */ ! 36: { ! 37: char ar_name[16]; /* file member name - `/' terminated */ ! 38: char ar_date[12]; /* file member date - decimal */ ! 39: char ar_uid[6]; /* file member user id - decimal */ ! 40: char ar_gid[6]; /* file member group id - decimal */ ! 41: char ar_mode[8]; /* file member mode - octal */ ! 42: char ar_size[10]; /* file member size - decimal */ ! 43: char ar_fmag[2]; /* ARFMAG - string to end header */ ! 44: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.