home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 177.lha / DRes_v1.3 / src / oldfile.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-28  |  1.6 KB  |  51 lines

  1.  
  2. #include <local/res.h>
  3.  
  4. #define SFILE    struct _SFILE
  5. #define RFILE    struct _RFILE
  6. #define FTABLE    struct _FTABLE
  7. #define HTABLE    struct _HTABLE
  8.  
  9. SFILE {
  10.     long    XLock[2];
  11.     long    Fh;     /*  associated fh or lock    */
  12.     uword   Flags;    /*  HAVHANDLE, HAVLOCK        */
  13.     long    Swapped;    /*  bytes swapped        */
  14.     long    FileSize;    /*  current file size        */
  15.     long    Free;    /*  bytes free            */
  16.     long    Link[32];    /*  swap area free lists    */
  17.     char    *Name;    /*  file name            */
  18. };
  19.  
  20. RFILE {
  21.     long    XLock[2];
  22.     long    Fh;     /*  associated fh or lock    */
  23.     long    HTsize;    /*  hash table size in file    */
  24.     long    Loaded;    /*  bytes loaded        */
  25.     long    Swapped;    /*  bytes swapped        */
  26.     uword   Flags;    /*  HAVHANDLE, HAVLOCK        */
  27.     uword   HTSize;    /*  pwr of 2, # of entries    */
  28.     FTABLE  **HTab;    /*  [n]&3:0-mem 1-seek.  file access dict.  */
  29.     HTABLE  **LTab;    /*  active resource access table        */
  30.     char    *Name;    /*  file name            */
  31. };
  32.  
  33. FTABLE {
  34.     long    Next;    /*  Next entry 0-end, &3:0-mem 1-seek        */
  35.     uword   Flags;    /*  all applicable flags, inc load state    */
  36.     ubyte   NLen;    /*  name length                 */
  37.     ubyte   TLen;    /*  type length                 */
  38.     long    Seek;    /*  seek position in file            */
  39.     long    Len;    /*  size of resource in file / htable ptr   */
  40.     ubyte   Name[2];    /*  extend structure to [n]            */
  41. };
  42.  
  43. HTABLE {
  44.     long    Next;    /*  Next entry 0-end, &3:0-mem 1-swapped    */
  45.     uword   Flags;    /*  all applicable flags, inc load state    */
  46.     uword   Refs;
  47.     long    Ptr;    /*  data ptr, swap ptr                */
  48.     long    Func;    /*  control function                */
  49. };
  50.  
  51.