cmdtab.c (1591) | cmdtab.c (29759) |
---|---|
1/*- 2 * Copyright (c) 1980, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint | 1/*- 2 * Copyright (c) 1980, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint |
35/* |
|
35static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93"; | 36static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93"; |
37*/ 38static const char rcsid[] = 39 "$Id$"; |
|
36#endif /* not lint */ 37 38#include "systat.h" 39#include "extern.h" | 40#endif /* not lint */ 41 42#include "systat.h" 43#include "extern.h" |
44#include "mode.h" |
|
40 41struct cmdtab cmdtab[] = { 42 { "pigs", showpigs, fetchpigs, labelpigs, 43 initpigs, openpigs, closepigs, 0, | 45 46struct cmdtab cmdtab[] = { 47 { "pigs", showpigs, fetchpigs, labelpigs, 48 initpigs, openpigs, closepigs, 0, |
44 CF_LOADAV }, | 49 0, CF_LOADAV }, |
45 { "swap", showswap, fetchswap, labelswap, 46 initswap, openswap, closeswap, 0, | 50 { "swap", showswap, fetchswap, labelswap, 51 initswap, openswap, closeswap, 0, |
47 CF_LOADAV }, | 52 0, CF_LOADAV }, |
48 { "mbufs", showmbufs, fetchmbufs, labelmbufs, 49 initmbufs, openmbufs, closembufs, 0, | 53 { "mbufs", showmbufs, fetchmbufs, labelmbufs, 54 initmbufs, openmbufs, closembufs, 0, |
50 CF_LOADAV }, | 55 0, CF_LOADAV }, |
51 { "iostat", showiostat, fetchiostat, labeliostat, 52 initiostat, openiostat, closeiostat, cmdiostat, | 56 { "iostat", showiostat, fetchiostat, labeliostat, 57 initiostat, openiostat, closeiostat, cmdiostat, |
53 CF_LOADAV }, | 58 0, CF_LOADAV }, |
54 { "vmstat", showkre, fetchkre, labelkre, 55 initkre, openkre, closekre, cmdkre, | 59 { "vmstat", showkre, fetchkre, labelkre, 60 initkre, openkre, closekre, cmdkre, |
56 0 }, | 61 0, 0 }, |
57 { "netstat", shownetstat, fetchnetstat, labelnetstat, 58 initnetstat, opennetstat, closenetstat, cmdnetstat, | 62 { "netstat", shownetstat, fetchnetstat, labelnetstat, 63 initnetstat, opennetstat, closenetstat, cmdnetstat, |
59 CF_LOADAV }, | 64 0, CF_LOADAV }, 65 { "icmp", showicmp, fetchicmp, labelicmp, 66 initicmp, openicmp, closeicmp, cmdmode, 67 reseticmp, CF_LOADAV }, |
60 { 0 } 61}; 62struct cmdtab *curcmd = &cmdtab[0]; | 68 { 0 } 69}; 70struct cmdtab *curcmd = &cmdtab[0]; |