home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / sys / systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1975-05-13  |  1.7 KB  |  55 lines

  1. /*
  2.  * Random set of variables
  3.  * used by more than one
  4.  * routine.
  5.  */
  6. char    canonb[CANBSIZ];    /* buffer for erase and kill (#@) */
  7. int    coremap[CMAPSIZ];    /* space for core allocation */
  8. int    swapmap[SMAPSIZ];    /* space for swap allocation */
  9. int    *rootdir;        /* pointer to inode of root directory */
  10. int    cputype;        /* type of cpu =40, 45, or 70 */
  11. int    execnt;            /* number of processes in exec */
  12. int    lbolt;            /* time of day in 60th not in time */
  13. int    time[2];        /* time in sec from 1970 */
  14. int    tout[2];        /* time of day of next sleep */
  15. /*
  16.  * The callout structure is for
  17.  * a routine arranging
  18.  * to be called by the clock interrupt
  19.  * (clock.c) with a specified argument,
  20.  * in a specified amount of time.
  21.  * Used, for example, to time tab
  22.  * delays on teletypes.
  23.  */
  24. struct    callo
  25. {
  26.     int    c_time;        /* incremental time */
  27.     int    c_arg;        /* argument to routine */
  28.     int    (*c_func)();    /* routine */
  29. } callout[NCALL];
  30. /*
  31.  * Mount structure.
  32.  * One allocated on every mount.
  33.  * Used to find the super block.
  34.  */
  35. struct    mount
  36. {
  37.     int    m_dev;        /* device mounted */
  38.     int    *m_bufp;    /* pointer to superblock */
  39.     int    *m_inodp;    /* pointer to mounted on inode */
  40. } mount[NMOUNT];
  41. int    mpid;            /* generic for unique process id's */
  42. char    runin;            /* scheduling flag */
  43. char    runout;            /* scheduling flag */
  44. char    runrun;            /* scheduling flag */
  45. char    curpri;            /* more scheduling */
  46. int    maxmem;            /* actual max memory per process */
  47. int    *lks;            /* pointer to clock device */
  48. int    rootdev;        /* dev of root see conf.c */
  49. int    swapdev;        /* dev of swap see conf.c */
  50. int    swplo;            /* block number of swap space */
  51. int    nswap;            /* size of swap space */
  52. int    updlock;        /* lock for sync */
  53. int    rablock;        /* block to be read ahead */
  54. char    regloc[];        /* locs. of saved user registers (trap.c) */
  55.