]> granicus.if.org Git - procps-ng/commit
library: add real string vectors to the pids interface
authorJim Warner <james.warner@comcast.net>
Wed, 26 Aug 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 27 Aug 2015 12:21:30 +0000 (22:21 +1000)
commitf69c421295051d755e078c48028891ac0a510849
tree5b54d51989f881963642226c3746bd262d0134b1
parent9ecc0c847331fc6d7440234c92de3ff58bbfb5bd
library: add real string vectors to the pids interface

After experimenting with an adaptation of pidof to the
new pids interface, it became apparent that vectorized
versions of those command lines would be necessary. So
this commit adds that option and the strv result type.

And since the stage had been set, a vectorized version
of PROCPS_PIDS_ENVIRON & PROCPS_PIDS_CGROUP was added.

Lastly, any use of 'const' in the result structure was
removed so callers need not be bothered with casts and
compiler warnings. Hopefully, they'll respect a stack.

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