home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / UZI.ARK / EXTERN.H < prev    next >
Text File  |  1988-11-30  |  2KB  |  47 lines

  1. /**************************************************
  2. UZI (Unix Z80 Implementation) Kernel:  extern.h
  3. ***************************************************/
  4.  
  5.  
  6. /* These are the global data structures */
  7.  
  8. #ifdef MAIN
  9. #define extern  
  10. #endif
  11.  
  12.  
  13. extern struct u_data udata; /* MUST BE FIRST */
  14. extern struct p_tab ptab[PTABSIZE];
  15.  
  16. extern inoptr root;   /* Address of root dir in inode table */
  17. extern int16 ROOTDEV;  /* Device number of root filesystem. */
  18.  
  19. extern struct cinode i_tab[ITABSIZE];    /* In-core inode table */
  20. extern struct oft of_tab[OFTSIZE]; /* Open File Table */
  21.  
  22. extern struct filesys fs_tab[NDEVS];  /* Table entry for each
  23.                                         device with a filesystem. */
  24. extern struct blkbuf bufpool[NBUFS];
  25.  
  26. extern ptptr initproc; /* The process table address of the first process. */
  27. extern int16 inint;   /* flag is set whenever interrupts are being serviced */
  28.  
  29. extern int16 sec;   /* Tick counter for counting off one second */
  30. extern int16 runticks;  /* Number of ticks current process has been
  31.                          swapped in */
  32.  
  33. extern time_t tod;      /* Time of day */
  34. extern time_t ticks;    /* Cumulative tick counter, in minutes and ticks  */
  35.  
  36. extern char *swapbase;          /* Used by device driver for swapping */
  37. extern unsigned swapcnt;
  38. extern blkno_t swapblk;
  39.  
  40. extern char vector[3];  /* Place for interrupt vector */
  41.  
  42. #ifdef MAIN
  43. #undef extern
  44. #endif
  45.  
  46.  
  47.