home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  2.5 KB  |  74 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  9. /*      All Rights Reserved    */
  10.  
  11. /*    This Module contains Proprietary Information of Microsoft  */
  12. /*    Corporation and should be treated as Confidential.       */
  13.  
  14. #ident    "@(#)head.sys:systm.h    1.3.1.4"
  15.  
  16. /*
  17.  * Random set of variables used by more than one routine.
  18.  */
  19.  
  20. extern struct inode *rootdir;    /* pointer to inode of root directory */
  21. extern short cputype;        /* type of cpu = 40, 45, 70, 780, 0x3b15 */
  22. extern time_t lbolt;        /* time in HZ since last boot */
  23. extern time_t time;        /* time in sec from 1970 */
  24. extern int Dstflag;        /* configurable timezone */
  25. extern int Timezone;        /* configurable DST flag */
  26. extern int Hz;            /* Ticks/second of the clock */
  27.  
  28. extern char runin;        /* scheduling flag */
  29. extern char runout;        /* scheduling flag */
  30. extern char runrun;        /* scheduling flag */
  31. extern char curpri;        /* current priority */
  32. extern struct proc *curproc;    /* current proc */
  33. extern struct proc *old_curproc;/* previous curproc */
  34. extern struct proc *oldproc;    /* previous proc that exited */
  35. extern struct proc *runq;    /* head of linked list of running processes */
  36.  
  37. extern        maxmem;        /* max available memory (clicks) */
  38. extern        physmem;    /* physical memory (clicks) on this CPU */
  39. extern        maxclick;    /* Highest physical click + 1.        */
  40. extern daddr_t    swplo;        /* block number of start of swap space */
  41. extern        nswap;        /* size of swap space in blocks*/
  42. extern dev_t    rootdev;    /* device of the root */
  43. extern dev_t    swapdev;    /* swapping device */
  44. extern dev_t    pipedev;    /* pipe device */
  45. extern dev_t    dumpdev;    /* dump device */
  46. extern char    *panicstr;    /* panic string pointer */
  47. extern        blkacty;    /* active block devices */
  48. extern        pwr_cnt, pwr_act;
  49. extern int     (*pwr_clr[])();
  50.  
  51. dev_t getmdev();
  52. struct inode *iget();
  53. struct inode *namei();
  54. struct inode *remote_call();
  55. struct buf *getblk();
  56. struct buf *geteblk();
  57. struct buf *bread();
  58. struct buf *breada();
  59. struct file *falloc();
  60. int    upath();
  61. int    spath();
  62. struct proc *prfind();
  63.  
  64. /*
  65.  * Structure of the system-entry table
  66.  */
  67. extern struct sysent {
  68.     char    sy_narg;        /* total number of arguments */
  69.     char    sy_setjmp;        /* set to 1 if systrap() should not do a setjmp() */
  70.     int    (*sy_call)();        /* handler */
  71. } sysent[];
  72.  
  73. extern int nsysent;             /* number of valid entries in sysent */
  74.