From edb124ec86e4da781a6fd87d5ce8b74748aef250 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 18 Apr 2016 00:00:00 -0500 Subject: [PATCH] library: changed use of 'fill' to 'select', 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 --- proc/pids.c | 6 +++--- proc/pids.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/proc/pids.c b/proc/pids.c index 69c720c5..05a830a0 100644 --- a/proc/pids.c +++ b/proc/pids.c @@ -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; diff --git a/proc/pids.h b/proc/pids.h index 2d2abb49..9ebaf00d 100644 --- a/proc/pids.h +++ b/proc/pids.h @@ -148,9 +148,9 @@ enum pids_item { PROCPS_PIDS_WCHAN_NAME, // str }; -enum pids_fill_type { - PROCPS_FILL_PID = 0x1000, - PROCPS_FILL_UID = 0x4000 +enum pids_select_type { + PROCPS_SELECT_PID = 0x1000, + PROCPS_SELECT_UID = 0x4000 }; enum pids_reap_type { @@ -234,7 +234,7 @@ struct pids_reap *procps_pids_select ( struct procps_pidsinfo *info, unsigned *these, int maxthese, - enum pids_fill_type which); + enum pids_select_type which); struct pids_stack **procps_pids_sort ( struct procps_pidsinfo *info,