Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PGRAB_CORE(3PROC)      Process Control Library Functions     PGRAB_CORE(3PROC)
   2 
   3 NAME
   4      Pgrab_core, Pfgrab_core - grab a core file
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      struct ps_prochandle *
  11      Pgrab_core(const char *core, const char *aout, int gflag, int *perr);
  12 
  13      struct ps_prochandle *
  14      Pfgrab_core(int core_fd, const char *aout, int *perr);
  15 
  16 DESCRIPTION
  17      The Pgrab_core() and Pfgrab_core() functions open a core file for
  18      introspection.  Unlike live processes, core files cannot have their state
  19      modified; however, all of the functions that iterate or query state will
  20      work.  These functions work on all illumos core files and the core files
  21      of some other operating systems.  See both core(4) and the Core Files
  22      section of libproc(3LIB) for more information.
  23 
  24      The Pgrab_core() function attempts to open the core file specified by
  25      core.  The system attempts to determine the path of the original
  26      executable.  The argument aout may either be the path to that file, a
  27      path to a directory to search, or the NULL pointer, if neither is known.


   1 PGRAB_CORE(3PROC)      Process Control Library Functions     PGRAB_CORE(3PROC)
   2 
   3 NAME
   4      Pgrab_core, Pfgrab_core - grab a core file
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      struct ps_prochandle *
  13      Pgrab_core(const char *core, const char *aout, int gflag, int *perr);
  14 
  15      struct ps_prochandle *
  16      Pfgrab_core(int core_fd, const char *aout, int *perr);
  17 
  18 DESCRIPTION
  19      The Pgrab_core() and Pfgrab_core() functions open a core file for
  20      introspection.  Unlike live processes, core files cannot have their state
  21      modified; however, all of the functions that iterate or query state will
  22      work.  These functions work on all illumos core files and the core files
  23      of some other operating systems.  See both core(4) and the Core Files
  24      section of libproc(3LIB) for more information.
  25 
  26      The Pgrab_core() function attempts to open the core file specified by
  27      core.  The system attempts to determine the path of the original
  28      executable.  The argument aout may either be the path to that file, a
  29      path to a directory to search, or the NULL pointer, if neither is known.