- Recognize -g and -m in pstat(8) too.

- Document -g and -m support in swapinfo(8).

Reviewed by:	markm
This commit is contained in:
Ruslan Ermilov 2007-04-03 08:16:06 +00:00
parent bf75b79b29
commit ae35e8ad88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168292
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@
.\" @(#)pstat.8 8.5 (Berkeley) 5/13/94 .\" @(#)pstat.8 8.5 (Berkeley) 5/13/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd March 21, 2005 .Dd April 1, 2007
.Dt PSTAT 8 .Dt PSTAT 8
.Os .Os
.Sh NAME .Sh NAME
@ -44,10 +44,10 @@
.Nd display system data structures .Nd display system data structures
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl Tfhknst .Op Fl Tfghkmnst
.Op Fl M Ar core Op Fl N Ar system .Op Fl M Ar core Op Fl N Ar system
.Nm swapinfo .Nm swapinfo
.Op Fl hk .Op Fl ghkm
.Op Fl M Ar core Op Fl N Ar system .Op Fl M Ar core Op Fl N Ar system
.Sh DESCRIPTION .Sh DESCRIPTION
The The
@ -60,7 +60,7 @@ If invoked as
the the
.Fl s .Fl s
option is implied, and only the option is implied, and only the
.Fl [kmg] .Fl k , m , g ,
and and
.Fl h .Fl h
options are legal. options are legal.

View File

@ -125,8 +125,8 @@ main(int argc, char *argv[])
opts = "ghkmM:N:"; opts = "ghkmM:N:";
usagestr = "swapinfo [-ghkm] [-M core [-N system]]"; usagestr = "swapinfo [-ghkm] [-M core [-N system]]";
} else { } else {
opts = "TM:N:hfknst"; opts = "TM:N:fghkmnst";
usagestr = "pstat [-Tfhknst] [-M core [-N system]]"; usagestr = "pstat [-Tfghkmnst] [-M core [-N system]]";
} }
while ((ch = getopt(argc, argv, opts)) != -1) while ((ch = getopt(argc, argv, opts)) != -1)