]> granicus.if.org Git - procps-ng/commit
library: added PROCPS_PIDS_CGNAME for <pids> interface
authorJim Warner <james.warner@comcast.net>
Mon, 12 Oct 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 14 Oct 2015 10:48:41 +0000 (21:48 +1100)
commita59a269661f495094785ca12f4f9b71de513335d
tree11d4da0bbd9acc1e45cf2ad7ea1fa5108be1c9a3
parentd53e98ff9730ae230bf217bdc84823f513a6ccb6
library: added PROCPS_PIDS_CGNAME for <pids> interface

The ps program was modified to print the control group
names, based on the library provided list of all those
control groups to which a process belongs. But this is
probably something the newlib should be doing for all.

So this commit borrows the ps approach to cg names and
thus will make that available to all future consumers.

[ but stay tuned! there is a commit coming soon that ]
[ represents a rather major internal redesign, which ]
[ was prompted by the ps and top adaptation testing. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h