libproclist 1.0.2 reviewDownload
libproclist is a very simple and easy to use C library that returns the process listing using ps. It is very portable and is known
libproclist is a very simple and easy to use C library that returns the process listing using ps.
It is very portable and is known to work on Linux, Irix, AIX, Solaris and OpenBSD. libproclist doesn't, however, work for FreeBSD.
The installation is as simple as `configure', `make' and `make install'.
The interface of the library is:
struct pl_procinfo **pl_proclist;
Get the process list.
-1: Internal error
0: Error executing ps
>0: Number of processes
Just call pl_get_proclist() and it will allocate the pl_proclist table which will contain pl_proclist_count elements. Each element is a process.
libproclist 1.0.2 keywords