PROC_GET_PSINFO(3PROC) Process Control Library Functions

NAME


proc_get_psinfo - get process ps information

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
proc_get_psinfo(pid_t pid, psinfo_t *psp);

DESCRIPTION


The proc_get_psinfo() function is a convenient way to read the /proc
psinfo file for the process pid. The ps(1) related information of the
process will be filled into psp. The definition of the psinfo_t
structure may be found in proc(5).

RETURN VALUES


Upon successful completion, the proc_get_psinfo() function returns 0.
Otherwise, -1 is returned to indicate an error occurred.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
MT-Safe

SEE ALSO


libproc(3LIB), proc(5)

illumos November 27, 2023 illumos

tribblix@gmail.com :: GitHub :: Privacy