home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / unzip.tar.gz / unzip.tar / unzip / VMS.arc / fatdef.h < prev    next >
C/C++ Source or Header  |  1991-03-04  |  2KB  |  77 lines

  1. /* This header file was created by Joe Meadows, and is not copyrighted
  2.    in any way. No guarantee is made as to the accuracy of the contents
  3.    of this header file. This header file was last modified on Sep. 22th,
  4.    1987. (Modified to include this statement) */
  5. #define FAT$K_LENGTH 32
  6. #define FAT$C_LENGTH 32
  7. #define FAT$S_FATDEF 32
  8.  
  9. struct fatdef {
  10.   union  {
  11.     unsigned char fat$b_rtype;
  12.     struct  {
  13.       unsigned fat$v_rtype : 4;
  14.       unsigned fat$v_fileorg : 4;
  15.     } fat$r_rtype_bits;
  16.   } fat$r_rtype_overlay;
  17. # define FAT$S_RTYPE 4
  18. # define FAT$V_RTYPE 0
  19. #   define FAT$C_UNDEFINED 0
  20. #   define FAT$C_FIXED 1
  21. #   define FAT$C_VARIABLE 2
  22. #   define FAT$C_VFC 3
  23. #   define FAT$C_STREAM 4
  24. #   define FAT$C_STREAMLF 5
  25. #   define FAT$C_STREAMCR 6
  26. # define FAT$S_FILEORG 4
  27. # define FAT$V_FILEORG 4
  28. #   define FAT$C_SEQUENTIAL 0
  29. #   define FAT$C_RELATIVE 1
  30. #   define FAT$C_INDEXED 2
  31. #   define FAT$C_DIRECT 3
  32.   union  {
  33.     unsigned char fat$b_rattrib;
  34.     struct  {
  35.       unsigned fat$v_fortrancc : 1;
  36.       unsigned fat$v_impliedcc : 1;
  37.       unsigned fat$v_printcc : 1;
  38.       unsigned fat$v_nospan : 1;
  39.     } fat$r_rattrib_bits;
  40.   } fat$r_rattrib_overlay;
  41. #   define FAT$V_FORTRANCC 0
  42. #   define FAT$M_FORTRANCC 1
  43. #   define FAT$V_IMPLIEDCC 1
  44. #   define FAT$M_IMPLIEDCC 2
  45. #   define FAT$V_PRINTCC 2
  46. #   define FAT$M_PRINTCC 4
  47. #   define FAT$V_NOSPAN 3
  48. #   define FAT$M_NOSPAN 8
  49.   unsigned short int fat$w_rsize;
  50.   union
  51.   {
  52.     unsigned long int fat$l_hiblk;
  53.     struct
  54.     {
  55.       unsigned short int fat$w_hiblkh;
  56.       unsigned short int fat$w_hiblkl;
  57.     } fat$r_hiblk_fields;
  58.   } fat$r_hiblk_overlay;
  59.   union
  60.   {
  61.     unsigned long int fat$l_efblk;
  62.     struct
  63.     {
  64.       unsigned short int fat$w_efblkh;
  65.       unsigned short int fat$w_efblkl;
  66.     } fat$r_efblk_fields;
  67.   } fat$r_efblk_overlay;
  68.   unsigned short int fat$w_ffbyte;
  69.   unsigned char fat$b_bktsize;
  70.   unsigned char fat$b_vfcsize;
  71.   unsigned short int fat$w_maxrec;
  72.   unsigned short int fat$w_defext;
  73.   unsigned short int fat$w_gbc;
  74.   char fat$fill[8];
  75.   unsigned short int fat$w_versions;
  76. };
  77.