1 PCONTENT(3PROC)        Process Control Library Functions       PCONTENT(3PROC)
   2 
   3 NAME
   4      Pcontent - obtain process content types available
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      core_content_t
  13      Pcontent(struct ps_prochandle *P);
  14 
  15 DESCRIPTION
  16      The Pcontent() function describes information available from the process
  17      handle P.
  18 
  19      Different types of process handles have different kinds of content
  20      available to them.  For example, handles to active and running processes
  21      have more information available than various core files, as the core file
  22      retains a subset of information available in the running process.
  23      Handles that refer to ELF objects, obtained through Pgrab_file(3PROC),
  24      will not have information such as a stack available.  The content of core
  25      files is controlled by coreadm(1M).
  26 
  27      The symbols that may be returned are listed in the core_content_t heading
  28      in the TYPES section in libproc(3LIB).
  29 
  30 RETURN VALUES
  31      Upon successful completion, the Pcontent() function returns the bitwise-
  32      inclusive-OR of content types.  Otherwise, CC_CONTENT_INVALID is returned
  33      to indicate an error.
  34 
  35 INTERFACE STABILITY
  36      Uncommitted
  37 
  38 MT-LEVEL
  39      See LOCKING in libproc(3LIB).
  40 
  41 SEE ALSO
  42      libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC),
  43      Pgrab_file(3PROC), proc(4)
  44 
  45 illumos                         August 20, 2019                        illumos