Bug 13697 - pstat(8) command line option '-w' not functional
Summary: pstat(8) command line option '-w' not functional
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: dd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-11 16:10 UTC by monroyj
Modified: 2001-07-04 23:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description monroyj 1999-09-11 16:10:00 UTC
pstat(8) has an option '-w'; it does not work.
If used, the program returns with the terse usage message.

How-To-Repeat: pstat -n
Comment 1 chris freebsd_committer freebsd_triage 1999-09-11 19:33:49 UTC
State Changed
From-To: open->closed

There is no evidence of such flag in a man page or the code. 
If such an option once existed at 3.1-RELEASE, it has been removed.  Removal 
of such an option will not retroactively apply to an already-installed release. 
Comment 2 chris freebsd_committer freebsd_triage 1999-09-14 21:42:49 UTC
State Changed
From-To: closed->open

It has come to my attention that this PR refers to -n and its lack of decent 
documentation, or at least it _might_. 

Comment 3 Bruce Evans 1999-09-15 05:50:24 UTC
> State-Changed-Why: 
> It has come to my attention that this PR refers to -n and its lack of decent
> documentation, or at least it _might_.

-n seems to be documented decently: it causes device numbers instead
of device names to be printed if another option causes device names
to be printed at all.  The options that cause device names to be
printed are:

-t: broken by recent dev_t changes.  A line number of "0" is printed
    instead of the device name in the "fixed" case where the device
    name is returned by the kern.ttys sysctl.
-v: doesn't actually cause device names to be printed, since it is
    disabled.

Bruce
Comment 4 dd freebsd_committer freebsd_triage 2001-06-17 03:16:38 UTC
Responsible Changed
From-To: freebsd-bugs->dd

I have patches to fix `pstat -tn`.
Comment 5 dd freebsd_committer freebsd_triage 2001-07-04 23:53:22 UTC
State Changed
From-To: open->closed

`pstat -tn` fixed.