extern.h revision 1.13
1/*	$NetBSD: extern.h,v 1.13 1999/12/16 04:49:33 jwise Exp $	*/
2
3/*-
4 * Copyright (c) 1991, 1993
5 *	The Regents of the University of California.  All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 *    must display the following acknowledgement:
17 *	This product includes software developed by the University of
18 *	California, Berkeley and its contributors.
19 * 4. Neither the name of the University nor the names of its contributors
20 *    may be used to endorse or promote products derived from this software
21 *    without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 *      @(#)extern.h	8.1 (Berkeley) 6/6/93
36 */
37
38#include <sys/cdefs.h>
39#include <fcntl.h>
40#include <kvm.h>
41
42extern struct	command global_commands[];
43extern struct	mode *curmode;
44extern struct	mode modes[];
45extern struct	text *xtext;
46extern WINDOW	*wnd;
47extern char	**dr_name;
48extern char	c, *namp, hostname[];
49extern double	avenrun[3];
50extern float	*dk_mspw;
51extern kvm_t	*kd;
52extern long	ntext, textp;
53extern int	*dk_select;
54extern int	CMDLINE;
55extern int	dk_ndrive;
56extern int	hz, stathz;
57extern int	naptime, col;
58extern int	nhosts;
59extern int	nports;
60extern int	protos;
61extern int	verbose;
62
63struct inpcb;
64
65int	 checkhost __P((struct inpcb *));
66int	 checkport __P((struct inpcb *));
67void	 closebufcache __P((WINDOW *));
68void	 closeicmp __P ((WINDOW *));
69void	 closeiostat __P((WINDOW *));
70void	 closeip __P ((WINDOW *));
71void	 closekre __P((WINDOW *));
72void	 closembufs __P((WINDOW *));
73void	 closenetstat __P((WINDOW *));
74void	 closepigs __P((WINDOW *));
75void	 closeswap __P((WINDOW *));
76void	 closetcp __P ((WINDOW *));
77int	 cmdiostat __P((char *, char *));
78int	 cmdkre __P((char *, char *));
79int	 cmdnetstat __P((char *, char *));
80struct	 mode *lookup __P((char *));
81void	 command __P((char *));
82void	 die __P((int));
83void	 display __P((int));
84int	 dkcmd __P((char *, char *));
85int	 dkinit __P((int, gid_t));
86void	 error __P((const char *fmt, ...));
87void	 fetchbufcache __P((void));
88void	 fetchicmp __P((void));
89void	 fetchiostat __P((void));
90void	 fetchip __P((void));
91void	 fetchkre __P((void));
92void	 fetchmbufs __P((void));
93void	 fetchnetstat __P((void));
94void	 fetchpigs __P((void));
95void	 fetchswap __P((void));
96void	 fetchtcp __P((void));
97void	 global_help __P((char *args));
98void	 global_load __P((char *args));
99void	 global_quit __P((char *args));
100void	 global_stop __P((char *args));
101int	 initbufcache __P((void));
102int	 initicmp __P((void));
103int	 initiostat __P((void));
104int	 initip __P((void));
105int	 initkre __P((void));
106int	 initmbufs __P((void));
107int	 initnetstat __P((void));
108int	 initpigs __P((void));
109int	 initswap __P((void));
110int	 inittcp __P((void));
111int	 keyboard __P((void)) __attribute__((__noreturn__));
112ssize_t	 kvm_ckread __P((void *, void *, size_t));
113void	 labelbufcache __P((void));
114void	 labelicmp __P((void));
115void	 labeliostat __P((void));
116void	 labelip __P((void));
117void	 labelkre __P((void));
118void	 labelmbufs __P((void));
119void	 labelnetstat __P((void));
120void	 labelpigs __P((void));
121void	 labelps __P((void));
122void	 labels __P((void));
123void	 labelswap __P((void));
124void	 labeltcp __P((void));
125void	 labeltcpsyn __P((void));
126int	 netcmd __P((char *, char *));
127void	 nlisterr __P((struct nlist []));
128WINDOW	*openbufcache __P((void));
129WINDOW	*openicmp __P((void));
130WINDOW	*openiostat __P((void));
131WINDOW	*openip __P((void));
132WINDOW	*openkre __P((void));
133WINDOW	*openmbufs __P((void));
134WINDOW	*opennetstat __P((void));
135WINDOW	*openpigs __P((void));
136WINDOW	*openswap __P((void));
137WINDOW	*opentcp __P((void));
138int	 prefix __P((char *, char *));
139void	 redraw __P((int));
140void	 showbufcache __P((void));
141void	 showicmp __P((void));
142void	 showiostat __P((void));
143void	 showip __P((void));
144void	 showkre __P((void));
145void	 showmbufs __P((void));
146void	 shownetstat __P((void));
147void	 showpigs __P((void));
148void	 showps __P((void));
149void	 showswap __P((void));
150void	 showtcp __P((void));
151void	 showtcpsyn __P((void));
152void	 status __P((void));
153void	 suspend __P((int));
154