Annotation of src/usr.bin/systat/extern.h, Revision 1.7
1.7 ! deraadt 1: /* $OpenBSD: extern.h,v 1.6 1997/11/04 12:20:18 kstailey Exp $ */
1.2 deraadt 2: /* $NetBSD: extern.h,v 1.3 1996/05/10 23:16:34 thorpej Exp $ */
1.1 deraadt 3:
4: /*-
5: * Copyright (c) 1991, 1993
6: * The Regents of the University of California. All rights reserved.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
16: * 3. All advertising materials mentioning features or use of this software
17: * must display the following acknowledgement:
18: * This product includes software developed by the University of
19: * California, Berkeley and its contributors.
20: * 4. Neither the name of the University nor the names of its contributors
21: * may be used to endorse or promote products derived from this software
22: * without specific prior written permission.
23: *
24: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34: * SUCH DAMAGE.
35: *
36: * @(#)extern.h 8.1 (Berkeley) 6/6/93
37: */
38:
39: #include <sys/cdefs.h>
40: #include <fcntl.h>
41: #include <kvm.h>
42:
43: extern struct cmdtab *curcmd;
44: extern struct cmdtab cmdtab[];
45: extern struct text *xtext;
46: extern WINDOW *wnd;
47: extern char **dr_name;
48: extern char c, *namp, hostname[];
49: extern double avenrun[3];
50: extern float *dk_mspw;
51: extern kvm_t *kd;
52: extern long ntext, textp;
53: extern int *dk_select;
1.4 millert 54: extern long CMDLINE;
1.1 deraadt 55: extern int dk_ndrive;
56: extern int hz, stathz;
57: extern int naptime, col;
58: extern int nhosts;
59: extern int nports;
60: extern int protos;
61: extern int verbose;
62:
63: struct inpcb;
64:
65: int checkhost __P((struct inpcb *));
66: int checkport __P((struct inpcb *));
67: void closeiostat __P((WINDOW *));
68: void closekre __P((WINDOW *));
69: void closembufs __P((WINDOW *));
70: void closenetstat __P((WINDOW *));
71: void closepigs __P((WINDOW *));
72: void closeswap __P((WINDOW *));
73: int cmdiostat __P((char *, char *));
74: int cmdkre __P((char *, char *));
75: int cmdnetstat __P((char *, char *));
76: struct cmdtab *lookup __P((char *));
77: void command __P((char *));
1.7 ! deraadt 78: void sigdie __P((int));
! 79: void die __P((void));
! 80: void sigdisplay __P((int));
! 81: void display __P((void));
1.2 deraadt 82: int dkinit __P((int));
1.1 deraadt 83: int dkcmd __P((char *, char *));
84: void error __P((const char *fmt, ...));
85: void fetchiostat __P((void));
86: void fetchkre __P((void));
87: void fetchmbufs __P((void));
88: void fetchnetstat __P((void));
89: void fetchpigs __P((void));
90: void fetchswap __P((void));
91: int initiostat __P((void));
92: int initkre __P((void));
93: int initmbufs __P((void));
94: int initnetstat __P((void));
95: int initpigs __P((void));
96: int initswap __P((void));
1.5 kstailey 97: void keyboard __P((void));
1.1 deraadt 98: int kvm_ckread __P((void *, void *, int));
99: void labeliostat __P((void));
100: void labelkre __P((void));
101: void labelmbufs __P((void));
102: void labelnetstat __P((void));
103: void labelpigs __P((void));
104: void labels __P((void));
105: void labelswap __P((void));
106: void load __P((void));
107: int netcmd __P((char *, char *));
108: void nlisterr __P((struct nlist []));
109: WINDOW *openiostat __P((void));
110: WINDOW *openkre __P((void));
111: WINDOW *openmbufs __P((void));
112: WINDOW *opennetstat __P((void));
113: WINDOW *openpigs __P((void));
114: WINDOW *openswap __P((void));
115: int prefix __P((char *, char *));
1.7 ! deraadt 116: void sigwinch __P((int));
1.1 deraadt 117: void showiostat __P((void));
118: void showkre __P((void));
119: void showmbufs __P((void));
120: void shownetstat __P((void));
121: void showpigs __P((void));
122: void showswap __P((void));
123: void status __P((void));
124: void suspend __P((int));
1.7 ! deraadt 125: void gethz __P((void));
! 126:
! 127: extern volatile sig_atomic_t gotdie;
! 128: extern volatile sig_atomic_t gotdisplay;
! 129: extern volatile sig_atomic_t gotwinch;
! 130:
! 131: extern double dellave;
! 132: extern WINDOW *wload;