Subject: Re: sorting ps output
To: Takahiro Kambe <taca@back-street.net>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 03/08/2003 07:52:30
> It seems that default ps output has changed. Is it intended result?
>
> Output of "ps -ax" on current:
>
> PID TT STAT TIME COMMAND
> 348 p0 Rs 0:00.13 -zsh
> 1047 p0 R+ 0:00.00 ps ax
> 333 E0 SWs+ 0:00.02 /usr/libexec/getty Pc ttyE0
> 334 E1 SWs+ 0:00.01 /usr/libexec/getty Pc ttyE1
> 0 ?? DKs 0:00.01 [swapper]
> 1 ?? Ss 0:00.02 init
> 2 ?? DK 0:00.00 [atapibus0]
> 3 ?? DK 0:00.00 [usb0]
> 4 ?? DK 0:00.00 [usbtask]
There wasn't an intention to change it :-(
Index: keyword.c
===================================================================
RCS file: /cvsroot/src/bin/ps/keyword.c,v
retrieving revision 1.32
diff -u -p -r1.32 keyword.c
--- keyword.c 2003/03/06 09:04:21 1.32
+++ keyword.c 2003/03/08 07:43:42
@@ -179,7 +179,7 @@ VAR var[] = {
{"svgroup", "SVGROUP", LJUST, svgname},
UID("svuid", "SVUID", p_svuid),
{"svuser", "SVUSER", LJUST, svuname},
- {"tdev", "TDEV", 0, tdev, POFF(p_tdev), UINT32},
+ {"tdev", "TDEV", 0, tdev, POFF(p_tdev), INT32},
{"time", "TIME", 0, cputime, 0, CPUTIME},
PID("tpgid", "TGPID", p_tpgid),
PVAR("tsess", "TSESS", 0, p_tsess, KPTR, PRIx64),
Seems to fix it.
David
--
David Laight: david@l8s.co.uk