1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/bin/ps
Garance A Drosehn c675340a5c Rewrite the kludge-option processing to improve how it handles a few
more special situations.  This is the code which process `ps blah',
when "blah" does not include a leading '-'.

This change also removes a long-undocumented BACKWARD_COMPATIBILITY
compile-time option, where:
     ps -options arg1 arg2
(with no '-' on "arg1" and "arg2") was treated as:
    ps -options -N arg1 -M arg2

This also changes `ps' to check for any additional arguments after
processing all the '-'-options, and attempt to use those arguments as
a pid or pidlist.  If an extra argument is not a valid pidlist, then
`ps' will print an error and exit.  This seems a more generally useful
extension of the kludge-option processing than the -N/-M behavior, and
has fewer confusing side-effects.

Reviewed by:	freebsd-arch
2004-06-01 02:03:21 +00:00
..
extern.h Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
fmt.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
keyword.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
Makefile style.Makefile: 2004-02-23 20:05:14 +00:00
nlist.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
print.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
ps.1 Add pgrep(1) and pkill(1) to the cross-reference section of ps(1). 2004-05-25 14:05:25 +00:00
ps.c Rewrite the kludge-option processing to improve how it handles a few 2004-06-01 02:03:21 +00:00
ps.h Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00