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

Lstatus
obtain thread status structure

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

const lwpstatus_t *
Pstatus(struct ps_lwphandle *L);

The Lstatus() function returns the status information about the thread handle L. The lwpstatus_t structure is defined in proc(5) 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.

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

Uncommitted

See LOCKING in libproc(3LIB).

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