summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2003-02-05 19:22:39 +0000
committersobomax <sobomax@FreeBSD.org>2003-02-05 19:22:39 +0000
commit09fd7460b14c1b909b23128432e5aa17d8d16c95 (patch)
tree544e04a326a4b60920d9ab50a2b2a2d9a7879101 /bin/ps
parentb2a8459286cac778b121c49cd13839b08671d037 (diff)
downloadFreeBSD-src-09fd7460b14c1b909b23128432e5aa17d8d16c95.zip
FreeBSD-src-09fd7460b14c1b909b23128432e5aa17d8d16c95.tar.gz
Fix slight disorder that broke sorting. Put in bold warning about the
fact that in this case order matters. Submitted by: Peter Edwards <pmedwards@eircom.net>
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 2d8718a..5456945 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -67,6 +67,7 @@ static int vcmp(const void *, const void *);
#define PIDLEN 5
#define USERLEN (MAXLOGNAME - 1)
+/* PLEASE KEEP THE TABLE BELOW SORTED ALPHABETICALLY!!! */
static VAR var[] = {
{"%cpu", "%CPU", NULL, 0, pcpu, NULL, 4, 0, CHAR, NULL, 0},
{"%mem", "%MEM", NULL, 0, pmem, NULL, 4, 0, CHAR, NULL, 0},
@@ -98,6 +99,8 @@ static VAR var[] = {
{"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 +114,6 @@ static VAR var[] = {
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",
OpenPOWER on IntegriCloud