Date: Wed, 5 Feb 2003 15:00:15 +0000 From: "Peter Edwards" <pmedwards@eircom.net> To: current@freebsd.org Subject: /bin/ps buggette Message-ID: <20030205150020.3A2AE43FA3@mx1.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
The keyword "mtxname" was changed to "logname" in the list of keywords
in bin/ps/keyword.c
Unfortunately, this table needs to be sorted, and the change broke the
sort-order.
The incredibly complex patch is included below, if someone wants to
commit it. :-)
Index: keyword.c
===================================================================
RCS file: /pub/FreeBSD/development/FreeBSD-CVS/src/bin/ps/keyword.c,v
retrieving revision 1.60
diff -u -r1.60 keyword.c
--- keyword.c 19 Jan 2003 00:31:15 -0000 1.60
+++ keyword.c 5 Feb 2003 14:56:16 -0000
@@ -98,6 +98,8 @@
{"label", "LABEL", NULL, LJUST|DSIZ, label, s_label, SHRT_MAX, 0, CHAR,
NULL, 0},
{"lim", "LIM", NULL, 0, maxrss, NULL, 5, 0, CHAR, NULL, 0},
+ {"lockname", "LOCK", NULL, LJUST, lockname, NULL, 6, 0, CHAR, NULL,
+ 0},
{"login", "LOGIN", NULL, LJUST, logname, NULL, MAXLOGNAME-1, 0, CHAR,
NULL, 0},
{"logname", "", "login", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},
@@ -111,8 +113,6 @@
LONG, "ld", 0},
{"msgsnd", "MSGSND", NULL, USER, rvar, NULL, 4, ROFF(ru_msgsnd),
LONG, "ld", 0},
- {"lockname", "LOCK", NULL, LJUST, lockname, NULL, 6, 0, CHAR, NULL,
- 0},
{"mwchan", "MWCHAN", NULL, LJUST, mwchan, NULL, 6, 0, CHAR, NULL, 0},
{"ni", "", "nice", 0, NULL, NULL, 0, 0, CHAR, NULL, 0},
{"nice", "NI", NULL, 0, kvar, NULL, 2, KOFF(ki_nice), CHAR, "d",
--
Peter Edwards.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030205150020.3A2AE43FA3>
