home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / systm < prev    next >
Encoding:
Text File  |  1995-01-11  |  3.3 KB  |  128 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/systm.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/systm.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Desc$
  8.  * $Log:    systm.h,v $
  9.  * Revision 1.1  95/01/11  10:19:55  kwelton
  10.  * Initial revision
  11.  * 
  12.  * Revision 1.4  88/09/21  11:17:07  keith
  13.  * Change of name from "version" to "version_string"
  14.  * 
  15.  * Revision 1.3  88/06/17  20:21:35  beta
  16.  * Acorn Unix initial beta version
  17.  * 
  18.  */
  19. /* @(#)systm.h    1.3 87/05/29 3.2/4.3NFSSRC */
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)systm.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. /*
  29.  * Random set of variables
  30.  * used by more than one
  31.  * routine.
  32.  */
  33. extern    char version_string[];        /* system version */
  34.  
  35. /*
  36.  * Current cpu priority
  37.  */
  38. extern    int cpu_priority;
  39.  
  40. /*
  41.  * Nblkdev is the number of entries
  42.  * (rows) in the block switch. It is
  43.  * set in binit/bio.c by making
  44.  * a pass over the switch.
  45.  * Used in bounds checking on major
  46.  * device numbers.
  47.  */
  48. int    nblkdev;
  49.  
  50. /*
  51.  * Number of character switch entries.
  52.  * Set by cinit/prim.c
  53.  */
  54. int    nchrdev;
  55.  
  56. int    nswdev;            /* number of swap devices */
  57. int    mpid;            /* generic for unique process id's */
  58. char    runin;            /* scheduling flag */
  59. char    runout;            /* scheduling flag */
  60. int    runrun;            /* scheduling flag */
  61. char    kmapwnt;        /* kernel map want flag */
  62. char    curpri;            /* more scheduling */
  63.  
  64. int    maxmem;            /* actual max memory per process */
  65. int    physmem;        /* physical memory on this CPU */
  66.  
  67. int    nswap;            /* size of swap space */
  68. int    updlock;        /* lock for sync */
  69. daddr_t    rablock;        /* block to be read ahead */
  70. int    rasize;            /* size of block in rablock */
  71. extern    int intstack[];        /* stack for interrupts */
  72. dev_t    rootdev;        /* device of the root */
  73. struct vnode *rootvp;           /* vnode of root filesystem */
  74. dev_t    dumpdev;        /* device to take dumps on */
  75. long    dumplo;            /* offset into dumpdev */
  76. dev_t    vm_sw_dev;        /* swapping fake device see vm_sw.c */
  77. struct vnode    *swapdev_vp;    /* vnode equivalent to above */
  78. #ifdef    original_exec
  79. dev_t    argdev;            /* device for argument lists */
  80. struct vnode    *argdev_vp;    /* vnode equivalent to above */
  81. #endif    original_exec
  82.  
  83. #ifdef    arm
  84. extern    int icode[];        /* user init code */
  85. extern    int szicode;        /* its size */
  86. #endif    arm
  87.  
  88. #ifdef    vax
  89. extern    int icode[];        /* user init code */
  90. extern    int szicode;        /* its size */
  91. #endif    vax
  92.  
  93. daddr_t    bmap();
  94. caddr_t    calloc();
  95. unsigned max();
  96. unsigned min();
  97. int    memall();
  98. int    uchar(), schar();
  99. int    vmemall();
  100. caddr_t    wmemall();
  101. caddr_t kmem_alloc();    /*  Added for nfs routines  */
  102. swblk_t    vtod();
  103. struct vnode *bdevvp(); /*  Added for specfs routines  */
  104. struct vnode *specvp(); /*  Added for nfs routine nfs_vnodeops.c  */
  105.  
  106. /*
  107.  * Structure of the system-entry table
  108.  */
  109. extern struct sysent
  110. {
  111.     int    sy_narg;        /* total number of arguments */
  112.     int    (*sy_call)();        /* handler */
  113. } sysent[];
  114.  
  115. int    noproc;            /* no one is running just now */
  116. char    *panicstr;
  117. int    wantin;
  118. int    boothowto;        /* reboot flags, from console subsystem */
  119. int    selwait;
  120.  
  121. extern    char vmmap[];        /* poor name! */
  122.  
  123. /* casts to keep lint happy */
  124. #define    insque(q,p)    _insque((caddr_t)q,(caddr_t)p)
  125. #define    remque(q)    _remque((caddr_t)q)
  126. #define    queue(q,p)    _queue((caddr_t)q,(caddr_t)p)
  127. #define    dequeue(q)    _dequeue((caddr_t)q)
  128.