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 / appledouble.h < prev    next >
Text File  |  1996-01-31  |  2KB  |  54 lines

  1. #define    FI_MAGIC    333319
  2. #define    FI_VERSION    1
  3. #define    FI_FILL5    5
  4. #define    FI_FILL6    2
  5. #define    FI_HLEN        589
  6. #define    FI_FILL7    3
  7. #define    FI_NAMPTR    86
  8. #define    FI_FILL9    4
  9. #define    FI_COMMPTR    341
  10. #define    FI_FILL12    7
  11. #define    FI_TIMEPTR    541
  12. #define    FI_TIMESIZE    16
  13. #define    FI_FILL15    9
  14. #define    FI_INFOPTR    557
  15. #define    FI_INFOSIZE    32
  16.  
  17. /* All as char[n] because of possible alignment problems.  But is this needed?
  18.    Is this stuff in host order or in client order?  Assuming client order for
  19.    the moment.  Will not be a problem on big-endian machines. */
  20. typedef struct {
  21.     char    fi_magic[4];    /* magic header */
  22.     char    fi_version[2];    /* version number */
  23.     char    fi_fill1[4];    /* = 0, ???? */
  24.     char    fi_fill2[4];    /* = 0, ???? */
  25.     char    fi_fill3[4];    /* = 0, ???? */
  26.     char    fi_fill4[4];    /* = 0, ???? */
  27.     char    fi_fill5[4];    /* = 5, ???? */
  28.     char    fi_fill6[4];    /* = 2, ???? */
  29.     char    fi_hlen[4];    /* = 589, header length */
  30.     char    fi_rsrc[4];    /* resource length */
  31.     char    fi_fill7[4];    /* = 3, ???? */
  32.     char    fi_namptr[4];    /* = 86, filename pointer */
  33.     char    fi_namlen[4];    /* Mac filename length */
  34.     char    fi_fill9[4];    /* = 4, ???? */
  35.     char    fi_commptr[4];    /* = 341, comment pointer */
  36.     char    fi_commsize[4];    /* = 0, comment size */
  37.     char    fi_fill12[4];    /* = 7, ???? */
  38.     char    fi_timeptr[4];    /* = 541, pointer to times */
  39.     char    fi_timesize[4];    /* = 16, size of times */
  40.     char    fi_fill15[4];    /* = 9, ???? */
  41.     char    fi_infoptr[4];    /* = 557, finder info pointer */
  42.     char    fi_infosize[4];    /* = 32, finder info size */
  43.     char    fi_name[255];    /* Macintosh filename */
  44.     char    fi_comment[200];/* = 0, Comment */
  45.     char    fi_ctime[4];    /* Creation time (Unix time) */
  46.     char    fi_mtime[4];    /* Modification time (Unix time) */
  47.     char    fi_fill19[4];    /* = 0, ???? */
  48.     char    fi_fill20[4];    /* = 0, ???? */
  49.     char    fi_type[4];    /* File type */
  50.     char    fi_auth[4];    /* File creator */
  51.     char    fi_finfo[24];    /* Finder info */
  52. } FileInfo;
  53.  
  54.