pstat.c (16fc3635f7aec3852abfc6dd77f89baef91f22fa) pstat.c (8482be06ec5ec00b81e77a45c1a0ee17db04d2d0)
1/*-
2 * Copyright (c) 1980, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technologies, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

119 opts = strrchr(argv[0], '/');
120 if (opts)
121 opts++;
122 else
123 opts = argv[0];
124 if (!strcmp(opts, "swapinfo")) {
125 swapflag = 1;
126 opts = "kM:N:";
1/*-
2 * Copyright (c) 1980, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2002 Networks Associates Technologies, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed for the FreeBSD Project by
8 * ThinkSec AS and NAI Labs, the Security Research Division of Network

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

119 opts = strrchr(argv[0], '/');
120 if (opts)
121 opts++;
122 else
123 opts = argv[0];
124 if (!strcmp(opts, "swapinfo")) {
125 swapflag = 1;
126 opts = "kM:N:";
127 usagestr = "swapinfo [-k] [-M core] [-N system]";
127 usagestr = "swapinfo [-k] [-M core [-N system]]";
128 } else {
129 opts = "TM:N:fknst";
128 } else {
129 opts = "TM:N:fknst";
130 usagestr = "pstat [-Tfknst] [-M core] [-N system]";
130 usagestr = "pstat [-Tfknst] [-M core [-N system]]";
131 }
132
133 while ((ch = getopt(argc, argv, opts)) != -1)
134 switch (ch) {
135 case 'f':
136 fileflag = 1;
137 break;
138 case 'k':

--- 455 unchanged lines hidden ---
131 }
132
133 while ((ch = getopt(argc, argv, opts)) != -1)
134 switch (ch) {
135 case 'f':
136 fileflag = 1;
137 break;
138 case 'k':

--- 455 unchanged lines hidden ---