Subject: ps with more POSIX/SUSv3 support
To: None <firstname.lastname@example.org>
From: Zafer Aydogan <email@example.com>
Date: 11/18/2005 22:09:41
I've added the -A Option to 'ps' which I was missing a long time. -A is the
same as '-ax' but SUSv3. I've taken the describing comment from FreeBSD.
I've added a patch. I'd be glad to see this in Tree.
--- ps.c 2005-11-18 21:55:39.761165459 +0100
+++ ps.c.new 2005-11-18 22:01:16.680524214 +0100
@@ -110,7 +110,7 @@
* ARGOPTS must contain all option characters that take arguments
* (except for 't'!) - it is used in kludge_oldps_options()
-#define GETOPTSTR "acCeghjk:LlM:mN:O:o:p:rSsTt:U:uvW:wx"
+#define GETOPTSTR "aAcCeghjk:LlM:mN:O:o:p:rSsTt:U:uvW:wx"
#define ARGOPTS "kMNOopUW"
struct kinfo_proc2 *kinfo;
@@ -181,6 +181,16 @@
what = KERN_PROC_ALL;
flag = 0;
+ case 'A':
+ * Exactly the same as `-ax'. This has been
+ * added for compatability with SUSv3, but for
+ * now it will not be described in the man page.
+ what = KERN_PROC_ALL;
+ flag = 0;
+ xflg = 1;
commandonly = 1;