home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / m / makealf / Source / h / finfo < prev    next >
Text File  |  1996-11-24  |  878b  |  36 lines

  1. /* >h.finfo */
  2.  
  3. typedef struct {
  4.   union {
  5.     struct {
  6.       int load;
  7.       int exec; } addrs;
  8.     struct {
  9.       unsigned int time1 :  8;
  10.       unsigned int type  : 12;
  11.       unsigned int fff   : 12;   /* must be 0xFFF */
  12.       unsigned int time0;      } misc;
  13.   } misc;
  14.   int length;
  15.   union {
  16.     int data;
  17.     struct {
  18.       unsigned int userread   : 1;
  19.       unsigned int userwrite  : 1;
  20.       unsigned int zog2       : 1;
  21.       unsigned int locked     : 1;
  22.       unsigned int otherread  : 1;
  23.       unsigned int otherwrite : 1;
  24.       unsigned int zog67      : 2;
  25.       unsigned int FSdep      : 24; } bits;
  26.   } attributes;
  27.   int type;
  28.   int sysname;
  29.   unsigned int time0;
  30.   unsigned char time1;
  31.   char name[227];      /* will not always be this long. */
  32. } fileinfo;
  33.  
  34. int  finfo(const char *name, fileinfo *fblock);
  35. void fnsplit(const char *name, char *dbuf, char *nbuf);
  36.