library: changed use of 'fill' to 'select', <pids> API

Remove a remnant of this new API's evolution.  Here we
no longer fill stacks, rather we reap and select them.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2016-04-18 00:00:00 -05:00
committed by Craig Small
parent e7585992d9
commit edb124ec86
2 changed files with 7 additions and 7 deletions

View File

@@ -1386,7 +1386,7 @@ PROCPS_EXPORT struct pids_reap *procps_pids_select (
struct procps_pidsinfo *info,
unsigned *these,
int maxthese,
enum pids_fill_type which)
enum pids_select_type which)
{
unsigned ids[FILL_ID_MAX + 1];
int rc;
@@ -1395,10 +1395,10 @@ PROCPS_EXPORT struct pids_reap *procps_pids_select (
return NULL;
if (maxthese < 1 || maxthese > FILL_ID_MAX)
return NULL;
if (which != PROCPS_FILL_PID && which != PROCPS_FILL_UID)
if (which != PROCPS_SELECT_PID && which != PROCPS_SELECT_UID)
return NULL;
// this zero delimiter is really only needed with PROCPS_FILL_PID
// this zero delimiter is really only needed with PROCPS_SELECT_PID
memcpy(ids, these, sizeof(unsigned) * maxthese);
ids[maxthese] = 0;