readproctab (3)
Leading comments
Copyright 1996 Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de> Copyright 2014 Jaromir Capik <jcapik@redhat.com> Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission not...
NAME
readproctab, freeproctab - read information for all current processes at onceSYNOPSIS
#include <proc/readproc.h>
proc_t** readproctab(int flags, ... );
void freeproctab(proc_t **p);
DESCRIPTION
readproctab reads information on all processes matching the criteria from flags, allocating memory for everything as needed. It returns a NULL-terminated list of proc_t pointers. For more information on the arguments of readproctab, see openproc(3).
freeproctab frees all memory allocated by readproctab.
The proc_t structure is defined in <proc/readproc.h>, please look there for a definition of all fields.