Deleted Added
full compact
cmdtab.c (118318) cmdtab.c (158160)
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

--- 19 unchanged lines hidden (view full) ---

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#include <sys/cdefs.h>
35
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

--- 19 unchanged lines hidden (view full) ---

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#include <sys/cdefs.h>
35
36__FBSDID("$FreeBSD: head/usr.bin/systat/cmdtab.c 118318 2003-08-01 20:28:20Z dwmalone $");
36__FBSDID("$FreeBSD: head/usr.bin/systat/cmdtab.c 158160 2006-04-30 04:26:46Z bde $");
37
38#ifdef lint
39static const char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93";
40#endif
41
42#include "systat.h"
43#include "extern.h"
44#include "mode.h"

--- 28 unchanged lines hidden (view full) ---

73 initicmp6, openicmp6, closeicmp6, cmdmode,
74 reseticmp6, CF_LOADAV },
75 { "ip6", showip6, fetchip6, labelip6,
76 initip6, openip6, closeip6, cmdmode,
77 resetip6, CF_LOADAV },
78#endif
79 { "tcp", showtcp, fetchtcp, labeltcp,
80 inittcp, opentcp, closetcp, cmdmode,
37
38#ifdef lint
39static const char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93";
40#endif
41
42#include "systat.h"
43#include "extern.h"
44#include "mode.h"

--- 28 unchanged lines hidden (view full) ---

73 initicmp6, openicmp6, closeicmp6, cmdmode,
74 reseticmp6, CF_LOADAV },
75 { "ip6", showip6, fetchip6, labelip6,
76 initip6, openip6, closeip6, cmdmode,
77 resetip6, CF_LOADAV },
78#endif
79 { "tcp", showtcp, fetchtcp, labeltcp,
80 inittcp, opentcp, closetcp, cmdmode,
81 resettcp, 0 },
81 resettcp, CF_LOADAV },
82 { "ifstat", showifstat, fetchifstat, labelifstat,
83 initifstat, openifstat, closeifstat, cmdifstat,
84 0, CF_LOADAV },
85 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0 }
86};
87struct cmdtab *curcmd = &cmdtab[0];
82 { "ifstat", showifstat, fetchifstat, labelifstat,
83 initifstat, openifstat, closeifstat, cmdifstat,
84 0, CF_LOADAV },
85 { NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0 }
86};
87struct cmdtab *curcmd = &cmdtab[0];