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

Lstatusobtain thread status structure

Process Control Library (libproc, -lproc)

#include <libproc.h>

const lwpstatus_t *
Pstatus(struct ps_lwphandle *L);

The () function returns the status information about the thread handle L. The 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.

See in libproc(3LIB).

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

November 27, 2023 OmniOS