Commit | Line | Data |
---|---|---|
07ed1e09 KM |
1 | /* |
2 | * Copyright (c) 1980 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 | ||
e405f699 | 7 | #ifndef lint |
07ed1e09 KM |
8 | static char sccsid[] = "@(#)cmdtab.c 5.1 (Berkeley) %G%"; |
9 | #endif not lint | |
e405f699 SL |
10 | |
11 | #include "systat.h" | |
12 | ||
855ff304 KM |
13 | int showpigs(), fetchpigs(), labelpigs(); |
14 | int initpigs(), closepigs(); | |
e405f699 | 15 | WINDOW *openpigs(); |
855ff304 KM |
16 | int showswap(), fetchswap(), labelswap(); |
17 | int initswap(), closeswap(); | |
e405f699 | 18 | WINDOW *openswap(); |
855ff304 KM |
19 | int showmbufs(), fetchmbufs(), labelmbufs(); |
20 | int initmbufs(), closembufs(); | |
e405f699 | 21 | WINDOW *openmbufs(); |
855ff304 KM |
22 | int showiostat(), fetchiostat(), labeliostat(); |
23 | int initiostat(), closeiostat(), cmdiostat(); | |
e405f699 | 24 | WINDOW *openiostat(); |
9c0c7319 SL |
25 | int showkre(), fetchkre(), labelkre(); |
26 | int initkre(), closekre(), cmdkre(); | |
27 | WINDOW *openkre(); | |
8b299806 SL |
28 | int shownetstat(), fetchnetstat(), labelnetstat(); |
29 | int initnetstat(), closenetstat(), cmdnetstat(); | |
30 | WINDOW *opennetstat(); | |
e405f699 SL |
31 | |
32 | struct cmdtab cmdtab[] = { | |
33 | { "pigs", showpigs, fetchpigs, labelpigs, | |
9c0c7319 SL |
34 | initpigs, openpigs, closepigs, 0, |
35 | CF_LOADAV }, | |
e405f699 | 36 | { "swap", showswap, fetchswap, labelswap, |
9c0c7319 SL |
37 | initswap, openswap, closeswap, 0, |
38 | CF_LOADAV }, | |
e405f699 | 39 | { "mbufs", showmbufs, fetchmbufs, labelmbufs, |
9c0c7319 SL |
40 | initmbufs, openmbufs, closembufs, 0, |
41 | CF_LOADAV }, | |
e405f699 | 42 | { "iostat", showiostat, fetchiostat, labeliostat, |
9c0c7319 SL |
43 | initiostat, openiostat, closeiostat, cmdiostat, |
44 | CF_LOADAV }, | |
45 | { "vmstat", showkre, fetchkre, labelkre, | |
46 | initkre, openkre, closekre, cmdkre, | |
47 | 0 }, | |
8b299806 SL |
48 | { "netstat", shownetstat, fetchnetstat, labelnetstat, |
49 | initnetstat, opennetstat, closenetstat, cmdnetstat, | |
50 | CF_LOADAV }, | |
e405f699 SL |
51 | { 0 } |
52 | }; | |
53 | struct cmdtab *curcmd = &cmdtab[0]; |