]> granicus.if.org Git - procps-ng/commit
library: reduce copies of items to minimum, <STAT> api
authorJim Warner <james.warner@comcast.net>
Fri, 1 Jul 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 2 Jul 2016 06:33:01 +0000 (16:33 +1000)
commit4fe52ccd441a23b554828f7c273582d32e16666f
tree77df94a92a5202b89943afbfb7839d51813f7a87
parent8cd1214aac359adf14c7fa7f8083b8374c709a2f
library: reduce copies of items to minimum, <STAT> api

This commit will consolidate the three separate copies
of the item enumerators currently supporting that reap
function (summary, cpus & nodes) into one shared copy.

That select function will continue to maintain its own
dedicated items copy, albeit via a new item structure.

[ and while we're at it, we'll move the 'select' guy ]
[ to its proper alphabetical place, after our 'reap' ]

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