readproc man page on Kali

Man page or keyword search:  
man Server   9211 pages
apropos Keyword Search (all sections)
Output format
Kali logo
[printable version]

READPROC(3)		   Linux Programmer's Manual		   READPROC(3)

NAME
       readproc, freeproc  - read information from next /proc/## entry

SYNOPSIS
       #include <proc/readproc.h>

       proc_t* readproc(PROCTAB *PT, proc_t *return_buf);
       void freeproc(proc_t *p);

DESCRIPTION
       readproc reads the information for the next process matching the crite‐
       ria specified in	 PT  and  fills	 them  into  a	proc_t	structure.  If
       return_buf  is  not  NULL,  it  will  use  the  struct  pointed	at  by
       return_buf.  Otherwise it will allocate	a  new	proc_t	structure  and
       return  a  pointer  to  it.  Note that (if so specified in PT) readproc
       always allocates memory if it fills in the environ or cmdline parts  of
       proc_t.

       freeproc frees all memory allocated for the proc_t struct *p.

       The proc_t structure is defined in <proc/readproc.h>, please look there
       for a definition of all fields.

RETURN VALUE
       readproc returns a pointer to the next proc_t or NULL if there  are  no
       more processes left.

SEE ALSO
       openproc(3), readproctab(3), /usr/include/proc/readproc.h, /proc/#pid/,

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

Linux Manpage			 14 July 2014			   READPROC(3)
[top]

List of man pages available for Kali

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net