library: add sequential access to that pids collection
To ease the transition to the new interface, for other than that top program, individual read provisions have been added to the <proc/pids.h> API. This represents a refinement of a position stated in a post noted below. Reference(s): http://www.freelists.org/post/procps/newlib-ps-fix Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
10
proc/pids.h
10
proc/pids.h
@@ -191,6 +191,16 @@ int procps_pids_new (
|
||||
int maxitems,
|
||||
enum pids_item *items);
|
||||
|
||||
struct pids_stack *procps_pids_read_next (
|
||||
struct procps_pidsinfo *info);
|
||||
|
||||
int procps_pids_read_open (
|
||||
struct procps_pidsinfo *info,
|
||||
enum pids_reap_type which);
|
||||
|
||||
int procps_pids_read_shut (
|
||||
struct procps_pidsinfo *info);
|
||||
|
||||
struct pids_reap *procps_pids_reap (
|
||||
struct procps_pidsinfo *info,
|
||||
enum pids_reap_type which);
|
||||
|
Reference in New Issue
Block a user