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

NAME


Lstatus - obtain thread status structure

SYNOPSIS


Process Control Library (libproc, -lproc)
#include <libproc.h>

const lwpstatus_t *
Pstatus(struct ps_lwphandle *L);

DESCRIPTION


The Lstatus() function returns the status information about the thread
handle L. The lwpstatus_t structure is defined in proc(4) and contains
information about the thread including its flags, the size of its stack,
its user and system time, and more.

The returned pointer is only valid as long as the thread handle L is valid.
After a call to Lfree(3PROC), the returned data pointer is invalid.

RETURN VALUES


Upon successful completion, the Lstatus() function returns a pointer to the
status information of the process. It always succeeds.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), Lfree(3PROC), proc(4)

illumos May 11, 2016 illumos