Hello -hackers
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:
dd@ref5% ps -j
ps: sess: keyword not found
[ normal ps(1) output follows ]
Attached is a patch that fixes this bug, and updates the man page.
Comments? If this is okay, could someone please commit at least the
source part?
Thanks
Dima Dorfman
[EMAIL PROTECTED]
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";
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message