Subject: CVS commit: src/bin/ps
To: None <source-changes@NetBSD.org>
From: Alan Barrett <apb@netbsd.org>
List: source-changes
Date: 10/02/2006 17:54:35
Module Name:	src
Committed By:	apb
Date:		Mon Oct  2 17:54:35 UTC 2006

Modified Files:
	src/bin/ps: extern.h keyword.c print.c ps.c ps.h

Log Message:
* When all columns are given null customised headers, the blank header
  line is not printed at all.  This is specified in P1003.1-2004
  (SUSv3), and is useful.

* Customised headers may contain embedded space, commas and equals
  signs.  To specify multiple customised headers, use multiple -o or -O
  options.  This is specified (for "-o", not for "-O") in P1003.1-2004
  (SUSv3), and is useful.

* When a column is given a null (blank) customised header, it keeps its
  default minimum width.  This is specified in P1003.1-2004 (SUSv3), and
  seems harmless.

* Fix a bug that made it impossible to print the same keyword multiple
  times, with different customised headers each time.  (Previously, the
  last customised header was used for all instances of the keyword.)

* Make the behaviour of "-O" more useful.  The first -O option adds
  the default keywords only if there have not yet been any formatting
  options, and multiple -O options now insert their keywords in adjacent
  positions.  Now {ps -j -O %cpu} is like {ps -j} with one extra column;
  Previously, it would have had all the columns implied by "-j", plus
  all the default columns, plus the extra column specified by "-O".

* Convert from home-grown linked lists to SIMPLEQ lists.

Discussed in tech-userlevel.


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 src/bin/ps/extern.h
cvs rdiff -r1.46 -r1.47 src/bin/ps/keyword.c
cvs rdiff -r1.94 -r1.95 src/bin/ps/print.c
cvs rdiff -r1.60 -r1.61 src/bin/ps/ps.c
cvs rdiff -r1.25 -r1.26 src/bin/ps/ps.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.