# READPROCTAB(3) - man - phpman

[READPROCTAB(3)](https://www.chedong.com/phpMan.php/man/READPROCTAB/3/markdown)                        Linux Programmer's Manual                       [READPROCTAB(3)](https://www.chedong.com/phpMan.php/man/READPROCTAB/3/markdown)



## NAME
       readproctab, freeproctab  - read information for all current processes at once

## SYNOPSIS
### #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)](https://www.chedong.com/phpMan.php/man/openproc/3/markdown).

       **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.


## SEE ALSO
       [**openproc**(3)](https://www.chedong.com/phpMan.php/man/openproc/3/markdown), [**readproc**(3)](https://www.chedong.com/phpMan.php/man/readproc/3/markdown), **/proc/**, **/usr/include/proc/readproc.h**.

## REPORTING BUGS
       Please send bug reports to ⟨<procps@freelists.org>⟩



Linux Manpage                               14 July 2014                              [READPROCTAB(3)](https://www.chedong.com/phpMan.php/man/READPROCTAB/3/markdown)
