home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / FILEIO / aufs.h < prev    next >
Text File  |  1996-01-31  |  1KB  |  34 lines

  1. #define MAXCLEN 199        /* max size of a comment string */
  2. #define FINFOLEN 32        /* Finder info is 32 bytes */
  3. #define MAXMACFLEN 31        /* max Mac file name length */
  4. #define FI_MAGIC1 255
  5. #define FI_VERSION 0x10        /* version major 1, minor 0 */
  6.                 /* if we have more than 8 versions wer're */
  7.                 /* doiong something wrong anyway */
  8. #define FI_MAGIC 0xda
  9. #define FI_BM_SHORTFILENAME 0x1    /* is this included? */
  10. #define FI_BM_MACINTOSHFILENAME 0x2 /* is this included? */
  11. #define FI_MDATE 0x01        /* mtime & utime are valid */
  12. #define FI_CDATE 0x02        /* ctime is valid */
  13.  
  14. typedef struct {
  15.     char    fi_fndr[FINFOLEN];    /* finder info */
  16.     short    fi_attr;        /* attributes */
  17.     char    fi_magic1;        /* addional magic word check */
  18.     char    fi_version;        /* version number */
  19.     char    fi_magic;        /* magic word check */
  20.     char    fi_bitmap;        /* bitmap of included info */
  21.     char    fi_shortfilename[12+1];    /* possible short file name */
  22.     char    fi_macfilename[32+1];    /* possible macintosh file name */
  23.     char    fi_comln;        /* comment length */
  24.     char    fi_comnt[MAXCLEN+1];    /* comment string */
  25. #ifdef AUFSPLUS
  26.     char    fi_datemagic;        /* sanity check */
  27.     char    fi_datevalid;        /* validity flags */
  28.     char    fi_ctime[4];        /* mac file create time */
  29.     char    fi_mtime[4];        /* mac file modify time */
  30.     char    fi_utime[4];        /* (real) time mtime was set */
  31. #endif /* AUFSPLUS */
  32. } FileInfo;
  33.  
  34.