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
MT-LEVEL
See LOCKING in libproc(3LIB).
libproc(3LIB), Prelease(3PROC), proc(5)
illumos May 11, 2016 illumos
NAME
Pstatus - obtain process status structure
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h>
const pstatus_t *
Pstatus(struct ps_prochandle *P);
DESCRIPTION
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.
RETURN VALUES
The Pstatus() function always returns a pointer to the process's
status.
INTERFACE STABILITY
Uncommitted
MT-LEVEL
See LOCKING in libproc(3LIB).
SEE ALSO
libproc(3LIB), Prelease(3PROC), proc(5)
illumos May 11, 2016 illumos