home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / MACUNPACK / arc.h < prev    next >
Text File  |  1995-09-18  |  1KB  |  52 lines

  1. #define    MAGIC1        0    /* Should be 0x1b, marks Mac extension */
  2. #define    KIND        1    /* KIND == 0 marks end of archive */
  3. #define    FNAME        2
  4. #define    FILLER        33
  5. #define    FTYPE        34
  6. #define    FAUTH        38
  7. #define    FINFO        42
  8. #define    FDATA        50
  9. #define    FRSRC        54
  10. #define    FILLER        58
  11. #define    MAGIC2        59    /* Should be 0x1a, true Arc header start */
  12. #define    KIND2        60    /* Should be identical to KIND */
  13. #define    FNAME2        61    /* A PC-ified version of the filename */
  14. #define    SIZE        74
  15. #define    DATE        78
  16. #define    TIME        80
  17. #define    CRC        82
  18. #define    SIZE2        84    /* Not present if KIND == 1 */
  19. #define    HEADERBYTES    88
  20.  
  21. typedef struct fileHdr { /* 84 or 88 bytes */
  22.     char        magic1;
  23.     char        kind;
  24.     char        fname[31];
  25.     char        filler;        /* ??? */
  26.     char        ftype[4];
  27.     char        fauth[4];
  28.     char        finfo[8];
  29.     unsigned long    dataLength;
  30.     unsigned long    rsrcLength;
  31.     char        filler;
  32.     char        magic2;
  33.     char        kind2;
  34.     char        fname2[13];
  35.     unsigned long    size;
  36.     unsigned short    date;
  37.     unsigned short    time;
  38.     unsigend short    crc;
  39.     unsigned long    size2;    /* Identical to size; this is wrong for Arc! */
  40. };
  41.  
  42. #define    smallstored    1
  43. #define    stored        2
  44. #define    packed        3
  45. #define    squeezed    4
  46. #define    crunched1    5
  47. #define    crunched2    6
  48. #define    crunched3    7
  49. #define    crunched4    8
  50. #define    squashed    9
  51.  
  52.