Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 16:06:28 -0800 (PST)
From:      dd@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/26057: [PATCH] Minor ps(1) fixes
Message-ID:  <200103250006.f2P06SE13697@spike.unixfreak.org>

next in thread | raw e-mail | index | archive | help

>Number:         26057
>Category:       bin
>Synopsis:       [PATCH] Minor ps(1) fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 24 16:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dima Dorfman
>Release:        FreeBSD 5.0-20010310-CURRENT i386
>Organization:
Private
>Environment:
System: FreeBSD spike.unixfreak.org 5.0-20010310-CURRENT FreeBSD 5.0-20010310-CURRENT #22: Sat Mar 24 13:28:08 PST 2001 dima@spike.unixfreak.org:/c/home/dima/w/f/src/sys/compile/SPIKE i386

>Description:

When the kinfo_proc structure was introduced, the ps(1) manual page
was not updated.  Thus, it still talks about keywords that don't
exist.  Also, one line in ps.c was forgotten.  The latter results in
an annoying warning when using ps(1) with the -j flag (see
how-to-repeat).

>How-To-Repeat:

        dd@ref5% ps -j
        ps: sess: keyword not found
        [ normal ps(1) output follows ]

>Fix:

The following patch fixes the warning and updates the man page.  I'm
only a doc committer, so someone else needs to commit the src/ part.

Index: ps.1
===================================================================
RCS file: /st/src/FreeBSD/src/bin/ps/ps.1,v
retrieving revision 1.30
diff -u -r1.30 ps.1
--- ps.1	2001/02/01 16:24:50	1.30
+++ ps.1	2001/03/20 03:34:55
@@ -99,7 +99,7 @@
 header per page of information.
 .It Fl j
 Print information associated with the following keywords:
-user, pid, ppid, pgid, sess, jobc, state, tt, time and command.
+user, pid, ppid, pgid, jobc, state, tt, time and command.
 .It Fl L
 List the set of available keywords.
 .It Fl l
@@ -367,8 +367,6 @@
 job control count
 .It ktrace
 tracing flags
-.It ktracep
-tracing vnode
 .It lim
 memoryuse limit
 .It logname
@@ -400,8 +398,6 @@
 wait channel (as an address)
 .It oublk
 total blocks written (alias oublock)
-.It p_ru
-resource usage (valid only for zombie)
 .It paddr
 swap address
 .It pagein
@@ -427,8 +423,6 @@
 reverse link on run queue, or 0
 .It rss
 resident set size
-.It rsz
-resident set size + (text size / text use count) (alias rssize)
 .It rtprio
 realtime priority (101 = not a realtime process)
 .It ruid
@@ -436,8 +430,6 @@
 .Tn ID
 .It ruser
 user name (from ruid)
-.It sess
-session pointer
 .It sig
 pending signals (alias pending)
 .It sigcatch
Index: ps.c
===================================================================
RCS file: /st/src/FreeBSD/src/bin/ps/ps.c,v
retrieving revision 1.36
diff -u -r1.36 ps.c
--- ps.c	2001/03/03 01:46:58	1.36
+++ ps.c	2001/03/20 03:34:55
@@ -104,7 +104,7 @@
 static uid_t	*getuids(const char *, int *);
 
 char dfmt[] = "pid tt state time command";
-char jfmt[] = "user pid ppid pgid sess jobc state tt time command";
+char jfmt[] = "user pid ppid pgid jobc state tt time command";
 char lfmt[] = "uid pid ppid cpu pri nice vsz rss wchan state tt time command";
 char   o1[] = "pid";
 char   o2[] = "tt state time command";


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103250006.f2P06SE13697>