1 PROC_GET_STATUS(3PROC)                       Process Control Library Functions
   2 
   3 NAME
   4      proc_get_status - get process status information
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)
   8      #include <libproc.h>
   9 
  10      int
  11      proc_get_status(pid_t pid, pstatus_t *psp);
  12 
  13 DESCRIPTION
  14      The proc_get_status() function is a convenient way to read the /proc
  15      status file for the process pid.  The status information of the process
  16      will be filled into psp.  The definition of the pstatus_t structure may
  17      be found in proc(4).
  18 
  19 RETURN VALUES
  20      Upon successful completion, the proc_get_status() function returns 0.
  21      Otherwise, -1 is returned to indicate an error occurred.
  22 
  23 INTERFACE STABILITY
  24      Uncommitted
  25 
  26 MT-LEVEL
  27      MT-Safe
  28 
  29 SEE ALSO
  30      libproc(3LIB), proc(4)
  31 
  32 illumos                         August 20, 2019                        illumos