[procps] Re: newlib, ps fix
- From: Craig Small <csmall-procps@xxxxxxxxxx>
- To: procps@xxxxxxxxxxxxx
- Date: Sun, 30 Aug 2015 22:06:02 +1000
On Sun, Aug 30, 2015 at 10:05:23PM +1000, Craig Small wrote:
I'll attach my test program. I'm probably doing something wrong but it
means the library should be saying what and not crashing about it
either.
Now attach it.
--
Craig Small (@smallsees)
http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux
http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5
#include <stdio.h>
#include <proc/pids.h>
#include <include/c.h>
int main(int argc, char *argv[])
{
struct procps_pidsinfo *info=NULL;
struct pids_reap *reap;
if (procps_pids_new(&info, 3, PROCPS_REAP_TASKS_ONLY) < 0)
xerr(EXIT_FAILURE, "problem with pids_new");
if ( (reap = procps_pids_reap(info, PROCPS_REAP_TASKS_ONLY)) == NULL)
xerr(EXIT_FAILURE, "problem with pids_reap");
return EXIT_SUCCESS;
}
Other related posts:
- » [procps] newlib, ps fix- Jim Warner
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix- Jim Warner
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix- Jim Warner
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix - Craig Small
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix- Jim Warner
- » [procps] Re: newlib, ps fix- Craig Small
- » [procps] Re: newlib, ps fix- Jim Warner