1 PSTATUS(3PROC)         Process Control Library Functions        PSTATUS(3PROC)
   2 
   3 NAME
   4      Pstatus - obtain process status structure
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      const pstatus_t *
  13      Pstatus(struct ps_prochandle *P);
  14 
  15 DESCRIPTION
  16      The Pstatus() function returns the status information about the process
  17      handle P.  The pstatus_t structure is defined in proc(4) and contains
  18      information about the process including its flags, the number of threads,
  19      the size of the stack, and more.
  20 
  21      The returned pointer is only valid as long as the process handle P is
  22      valid.  After a call to Prelease(3PROC), the returned data pointer is
  23      invalid.
  24 
  25 RETURN VALUES
  26      The Pstatus() function always returns a pointer to the process's status.
  27 
  28 INTERFACE STABILITY
  29      Uncommitted
  30 
  31 MT-LEVEL
  32      See LOCKING in libproc(3LIB).
  33 
  34 SEE ALSO
  35      libproc(3LIB), Prelease(3PROC), proc(4)
  36 
  37 illumos                          May 11, 2016                          illumos