home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / sys / kernel.h < prev    next >
Text File  |  1993-10-19  |  2KB  |  96 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 struct    timeval boottime;
  69. extern struct    timeval time;
  70. #if    NeXT
  71. /* do not support timezone in kernel */
  72. #else    NeXT
  73. extern struct    timezone tz;        /* XXX */
  74. #endif    NeXT
  75. extern int    hz;
  76. extern int    phz;            /* alternate clock's frequency */
  77. extern int    tick;
  78. extern int    lbolt;            /* awoken once a second */
  79. extern int    realitexpire();
  80.  
  81. #define LSCALE    1000        /* scaling for "fixed point" arithmetic */
  82. extern    long    avenrun[3];
  83. extern    long    mach_factor[3];
  84.  
  85. #ifdef    GPROF
  86. extern    int profiling;
  87. extern    char *s_lowpc;
  88. extern    u_long s_textsize;
  89. extern    u_short *kcount;
  90. #endif    GPROF
  91.  
  92. #endif    KERNEL
  93. #endif    _SYS_KERNEL_H_
  94.  
  95.  
  96.