PSTATUS(3PROC) Process Control Library Functions PSTATUS(3PROC)

Pstatus
obtain process status structure

Process Control Library (libproc, -lproc)

#include <libproc.h>

const pstatus_t *
Pstatus(struct ps_prochandle *P);

The Pstatus() function returns the status information about the process handle P. The pstatus_t structure is defined in proc(5) and contains information about the process including its flags, the number of threads, the size of the stack, and more.

The returned pointer is only valid as long as the process handle P is valid. After a call to Prelease(3PROC), the returned data pointer is invalid.

The Pstatus() function always returns a pointer to the process's status.

Uncommitted

See LOCKING in libproc(3LIB).

libproc(3LIB), Prelease(3PROC), proc(5)
May 11, 2016 OmniOS