Subject: bin/6433: vmstat no longer has -t option so remove it from source/manpage
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@primenet.com.au>
List: netbsd-bugs
Date: 11/13/1998 08:36:24
>Number:         6433
>Category:       bin
>Synopsis:       vmstat no longer has -t option so remove it from source/manpage
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 13 00:50:01 1998
>Last-Modified:
>Originator:     Geoff C. Wing
>Organization:
Geoff Wing   <gcw@pobox.com>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/
>Release:        -current 19981112
>Environment:
System: NetBSD coral.primenet.com.au 1.3H NetBSD 1.3H (CORAL) #1: Sat Oct 31 17:24:32 EST 1998 mason@coral.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/CORAL i386


>Description:
	vmstat.8 reports a -t option.  vmstat.c does a getopt() for a 't'
	option.  It doesn't get checked in the switch and seems obsolete.
	It's been removed from usage().

>How-To-Repeat:
	% vmstat -t
	Usage: vmstat .........

	Look for -t option w/
	% man vmstat 
	
>Fix:

*** /usr/src/usr.bin/vmstat/vmstat.c.org	Mon Aug 10 21:12:38 1998
--- /usr/src/usr.bin/vmstat/vmstat.c	Fri Nov 13 19:28:15 1998
***************
*** 237,245 ****
  	memf = nlistf = NULL;
  	interval = reps = todo = 0;
  #if defined(UVM)
! 	while ((c = getopt(argc, argv, "c:fh:HilM:mN:stw:")) != -1) {
  #else
! 	while ((c = getopt(argc, argv, "c:fiM:mN:stw:")) != -1) {
  #endif
  		switch (c) {
  		case 'c':
--- 237,245 ----
  	memf = nlistf = NULL;
  	interval = reps = todo = 0;
  #if defined(UVM)
! 	while ((c = getopt(argc, argv, "c:fh:HilM:mN:sw:")) != -1) {
  #else
! 	while ((c = getopt(argc, argv, "c:fiM:mN:sw:")) != -1) {
  #endif
  		switch (c) {
  		case 'c':
*** /usr/src/usr.bin/vmstat/vmstat.8.org	Thu Apr  2 22:22:43 1998
--- /usr/src/usr.bin/vmstat/vmstat.8	Fri Nov 13 19:28:33 1998
***************
*** 87,96 ****
  structure, giving the total number of several kinds of paging related
  events which have occurred since system startup.
  .TP
- \-t
- Report on the number of page in and page reclaims since system startup,
- and the amount of time required by each.
- .TP
  \-w
  Pause
  .I wait
--- 87,92 ----
>Audit-Trail:
>Unformatted: