home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / sys / systm.h < prev    next >
Text File  |  1993-10-19  |  3KB  |  114 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * 19-Mar-90  Gregg Kellogg (gk) at NeXT
  10.  *    Made variable definitions extern.  Panicstr is const char *.
  11.  *
  12.  * 27-Sep-89  Morris Meyer (mmeyer) at NeXT
  13.  *    NFS 4.0 Changes: added dump_vp (so we can get core dumps working)
  14.  *             removed extranious cruft from 3.2 port.
  15.  *
  16.  * 11-Aug-87  Peter King (king) at NeXT
  17.  *    SUN_VFS: Added *rootvp and *specvp for the nfs routines.
  18.  *         Added *bdevp for the specfs routines.
  19.  *
  20.  * 19-Mar-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  21.  *    Make redefinitions of insque/remque always ifdef'ed on lint.
  22.  *
  23.  * 24-Sep-86  Michael Young (mwyoung) at Carnegie-Mellon University
  24.  *    Changed to directly import declaration of boolean.
  25.  *
  26.  * 29-Aug-86  Michael Young (mwyoung) at Carnegie-Mellon University
  27.  *    Converted from "bool" type to "boolean_t" where necessary.
  28.  *
  29.  *  4-Nov-85  Avadis Tevanian (avie) at Carnegie-Mellon University
  30.  *    Add sy_parallel flag to the system call entries to specify
  31.  *    whether or not the system call can be executed in parallel.
  32.  *
  33.  * 03-Aug-85  Mike Accetta (mja) at Carnegie-Mellon University
  34.  *    CS_RPAUSE:  Added rpause() and fspause() declarations.
  35.  */
  36.  
  37. /*
  38.  * Copyright (c) 1982, 1986 Regents of the University of California.
  39.  * All rights reserved.  The Berkeley software License Agreement
  40.  * specifies the terms and conditions for redistribution.
  41.  *
  42.  *    @(#)systm.h    7.1 (Berkeley) 6/4/86
  43.  */
  44.  
  45. /* @(#)systm.h    1.3 87/05/29 3.2/4.3NFSSRC */
  46.  
  47. /*
  48.  * Random set of variables
  49.  * used by more than one
  50.  * routine.
  51.  */
  52. extern    char version[];        /* system version */
  53.  
  54. /*
  55.  * Nblkdev is the number of entries
  56.  * (rows) in the block switch.
  57.  * Used in bounds checking on major
  58.  * device numbers.
  59.  */
  60. extern int    nblkdev;
  61.  
  62. /*
  63.  * Number of character switch entries.
  64.  */
  65. extern int    nchrdev;
  66.  
  67. extern int    mpid;            /* generic for unique process id's */
  68.  
  69. extern daddr_t    rablock;        /* block to be read ahead */
  70. extern int    rasize;            /* size of block in rablock */
  71. extern dev_t    rootdev;        /* device of the root */
  72. extern struct vnode *rootvp;           /* vnode of root filesystem */
  73. extern struct vnode *dumpvp;        /* vnode to dump on */
  74. extern long    dumpsize;
  75. extern dev_t    dumpdev;        /* device to take dumps on */
  76. extern long    dumplo;            /* offset into dumpdev */
  77.  
  78. extern daddr_t    bmap();
  79. #if    NeXT
  80. #else    NeXT
  81. caddr_t    calloc();
  82. #endif    NeXT
  83. unsigned max();            /* SUN_VFS */
  84. unsigned min();            /* SUN_VFS */
  85. int    uchar(), schar();    /* SUN_VFS */
  86. struct vnode *bdevvp();
  87. struct vnode *specvp();
  88. #import <mach/boolean.h>    /* CS_RPAUSE */
  89. int    rpause();        /* CS_RPAUSE */
  90. boolean_t    fspause();    /* CS_RPAUSE */
  91.  
  92. /*
  93.  * Structure of the system-entry table
  94.  */
  95. extern struct sysent
  96. {
  97.     short    sy_narg;        /* total number of arguments */
  98.     short    sy_parallel;        /* can execute in parallel */
  99.     int    (*sy_call)();        /* handler */
  100. } sysent[];
  101. extern int    nsysent;
  102.  
  103. extern const char *panicstr;
  104. extern int    boothowto;    /* reboot flags, from console subsystem */
  105. extern int    show_space;
  106. extern int    selwait;
  107.  
  108. #ifdef    lint
  109. /* casts to keep lint happy */
  110. #define    insque(q,p)    _insque((caddr_t)q,(caddr_t)p)
  111. #define    remque(q)    _remque((caddr_t)q)
  112. #endif    lint
  113.  
  114.