From owner-freebsd-bugs Sat Mar 24 16:10:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 88E9D37B71B for ; Sat, 24 Mar 2001 16:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2P0A1Y11460; Sat, 24 Mar 2001 16:10:01 -0800 (PST) (envelope-from gnats) Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id A8E8F37B719 for ; Sat, 24 Mar 2001 16:06:29 -0800 (PST) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 738303E25 for ; Sat, 24 Mar 2001 16:06:29 -0800 (PST) Received: (from dima@localhost) by spike.unixfreak.org (8.11.3/8.11.1) id f2P06SE13697; Sat, 24 Mar 2001 16:06:28 -0800 (PST) (envelope-from dima) Message-Id: <200103250006.f2P06SE13697@spike.unixfreak.org> Date: Sat, 24 Mar 2001 16:06:28 -0800 (PST) From: dd@freebsd.org Reply-To: dd@freebsd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/26057: [PATCH] Minor ps(1) fixes Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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