xref: /original-bsd/sys/sys/kernel.h (revision 262b24ac)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)kernel.h	7.1 (Berkeley) 06/04/86
7  */
8 
9 /*
10  * Global variables for the kernel
11  */
12 
13 long	rmalloc();
14 
15 /* 1.1 */
16 long	hostid;
17 char	hostname[MAXHOSTNAMELEN];
18 int	hostnamelen;
19 
20 /* 1.2 */
21 struct	timeval boottime;
22 struct	timeval time;
23 struct	timezone tz;			/* XXX */
24 int	hz;
25 int	phz;				/* alternate clock's frequency */
26 int	tick;
27 int	lbolt;				/* awoken once a second */
28 int	realitexpire();
29 
30 double	avenrun[3];
31 
32 #ifdef GPROF
33 extern	int profiling;
34 extern	char *s_lowpc;
35 extern	u_long s_textsize;
36 extern	u_short *kcount;
37 #endif
38