home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfs610s.zoo / fsck / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-12  |  1.8 KB  |  82 lines

  1. /* Global and static Variables */
  2.  
  3. #include "../minixfs/hdio.h"
  4.  
  5. extern int __mint;
  6.  
  7. #ifndef EXTERN
  8. #define EXTERN extern
  9. extern char lfname[];
  10. #else
  11. char lfname[]="lost+found";
  12. #endif
  13.  
  14. /* General linked list structure */
  15. typedef struct linked_list
  16. {
  17.     long member;
  18.     struct linked_list *next;
  19. } llist;
  20.  
  21. /* Structure for determining inode names */
  22.  
  23. typedef struct inlist
  24. {
  25.     unsigned inum;        /* Inode number */
  26.     unsigned iparent;    /* Parent directory */
  27.     struct inlist *next;    /* pointer to next entry */
  28.     char name[1];        /* Actually longer than this ... */
  29. } ilist;
  30.  
  31. EXTERN char *drvnam;
  32.  
  33. EXTERN char version;        /* Non-zero for V2 */
  34.  
  35. EXTERN char modified,preen,no_size;
  36.  
  37. EXTERN ilist *inolist;
  38.  
  39. EXTERN llist *inums;
  40.  
  41. EXTERN long maxzone,minzone;    /* Max/Min Allowed Zone Numbers */
  42. EXTERN long maxino;        /* Max Inode Number */
  43. EXTERN long ioff;        /* Zone offset to inode block */
  44.  
  45. EXTERN int incr;        /* Directory increment */
  46.  
  47. EXTERN long berr;        /* Bitmap errors */
  48.  
  49. EXTERN char badroot;        /* Bad root inode or forced reallocation */
  50.  
  51. EXTERN long zonecount;            /* Maximum Zone Count */
  52. EXTERN long indcount;            /* Number of indirection blocks */
  53. EXTERN char dindcount;            /* '1' If double indirection block */
  54.  
  55. EXTERN char trunc,done_trunc;        /* Flags for truncation of files */
  56.  
  57. EXTERN char quit_trav;
  58.  
  59. /* These only appear in 'fsck.c' */
  60. #if defined(V1) || defined(V2)
  61. static d_inode *rip;    
  62. static d_inode zinode;            /* zero inode */
  63. static inode_stat *ist,*inode_status;
  64. #endif
  65.  
  66. EXTERN long cino;            /* current inode */
  67.  
  68. EXTERN unsigned *zbitmap,*szbitmap;    /* Zone and shadow zone bitmap */
  69. EXTERN unsigned *ibitmap;        /* Inode Bitmap */
  70.  
  71. EXTERN int cdirty;    
  72.  
  73. EXTERN super_block *Super;
  74.  
  75. EXTERN long ndir,nreg,nfifo,nchr,nblk,nsym,zfree,ifree;
  76.  
  77. EXTERN char ally,alln,info;
  78.  
  79. EXTERN unsigned lfinode;
  80.  
  81. EXTERN struct hdinfo hdinf;
  82.