home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / bsd / sys / kernel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-27  |  2.1 KB  |  86 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * Copyright (c) 1988 Carnegie-Mellon University
  5.  * Copyright (c) 1987 Carnegie-Mellon University
  6.  * All rights reserved.  The CMU software License Agreement specifies
  7.  * the terms and conditions for use and redistribution.
  8.  */
  9. /*
  10.  * HISTORY
  11.  * $Log:    kernel.h,v $
  12.  * Revision 2.8  89/04/22  15:31:57  gm0w
  13.  *     Removed MACH_VFS code.  Changed domainname size to MAXDOMNAMELEN.
  14.  *     [89/04/14            gm0w]
  15.  * 
  16.  * Revision 2.7  89/03/09  22:05:23  rpd
  17.  *     More cleanup.
  18.  * 
  19.  * Revision 2.6  89/02/25  17:54:31  gm0w
  20.  *     Removed MACH conditionals. Put entire file under
  21.  *     an #ifdef KERNEL conditioanal.
  22.  *     [89/02/13            mrt]
  23.  * 
  24.  * Revision 2.5  89/01/18  01:16:41  jsb
  25.  *     Vnode support: declare domainname{,len}.
  26.  *     [89/01/13            jsb]
  27.  * 
  28.  * Revision 2.4  88/08/24  02:32:40  mwyoung
  29.  *     Adjusted include file references.
  30.  *     [88/08/17  02:15:39  mwyoung]
  31.  *
  32.  *  5-Feb-88  Joseph Boykin (boykin) at ENcore Computer Corporation
  33.  *    Added include of 'time.h'.
  34.  *
  35.  * 18-Nov-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  36.  *    Use MACH conditional.
  37.  */
  38. /*
  39.  * Copyright (c) 1982, 1986 Regents of the University of California.
  40.  * All rights reserved.  The Berkeley software License Agreement
  41.  * specifies the terms and conditions for redistribution.
  42.  *
  43.  *    @(#)kernel.h    7.1 (Berkeley) 6/4/86
  44.  */
  45.  
  46. #ifndef    _SYS_KERNEL_H_
  47. #define _SYS_KERNEL_H_
  48.  
  49. #ifdef    KERNEL
  50. #import <sys/types.h>
  51. #import <sys/time.h>
  52. #import <sys/param.h>        /* for MAXHOSTNAMELEN */
  53.  
  54. /*
  55.  * Global variables for the kernel
  56.  */
  57.  
  58. extern long    rmalloc();
  59.  
  60. /* 1.1 */
  61. extern long    hostid;
  62. extern char    hostname[MAXHOSTNAMELEN];
  63. extern int    hostnamelen;
  64. extern char    domainname[MAXDOMNAMELEN];
  65. extern int    domainnamelen;
  66.  
  67. /* 1.2 */
  68. extern int    hz;
  69. extern int    tick;
  70. extern int    lbolt;            /* awoken once a second */
  71. extern int    realitexpire();
  72.  
  73. #define LSCALE    1000        /* scaling for "fixed point" arithmetic */
  74. extern    long    avenrun[3];
  75. extern    long    mach_factor[3];
  76.  
  77. #ifdef    GPROF
  78. extern    int profiling;
  79. extern    char *s_lowpc;
  80. extern    u_long s_textsize;
  81. extern    u_short *kcount;
  82. #endif    GPROF
  83.  
  84. #endif    KERNEL
  85. #endif    _SYS_KERNEL_H_
  86.