Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PRELEASE(3PROC)        Process Control Library Functions       PRELEASE(3PROC)
   2 
   3 NAME
   4      Prelease, Pfree - release a process control handle
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      void
  11      Prelease(struct ps_prochandle *P, int flags);
  12 
  13      void
  14      Pfree(struct ps_prochandle *P);
  15 
  16 DESCRIPTION
  17      The Prelease() function is used to release all of the resources
  18      associated with a libproc handle.  It is suitable for handles to core
  19      files, created processes, and grabbed processes from the
  20      Pgrab_core(3PROC), Pcreate(3PROC), Pgrab(3PROC), and Pgrab_file(3PROC)
  21      functions.
  22 
  23      After calling the Prelease() function, all data that was returned via the
  24      handle will no longer be valid.  For example, the data from calls to
  25      Pctlfd(3PROC), Pgetauxvec(3PROC), Pstatus(3PROC), and others.
  26 
  27      The behavior of the released process is controlled by the flags argument.


   1 PRELEASE(3PROC)        Process Control Library Functions       PRELEASE(3PROC)
   2 
   3 NAME
   4      Prelease, Pfree - release a process control handle
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      void
  13      Prelease(struct ps_prochandle *P, int flags);
  14 
  15      void
  16      Pfree(struct ps_prochandle *P);
  17 
  18 DESCRIPTION
  19      The Prelease() function is used to release all of the resources
  20      associated with a libproc handle.  It is suitable for handles to core
  21      files, created processes, and grabbed processes from the
  22      Pgrab_core(3PROC), Pcreate(3PROC), Pgrab(3PROC), and Pgrab_file(3PROC)
  23      functions.
  24 
  25      After calling the Prelease() function, all data that was returned via the
  26      handle will no longer be valid.  For example, the data from calls to
  27      Pctlfd(3PROC), Pgetauxvec(3PROC), Pstatus(3PROC), and others.
  28 
  29      The behavior of the released process is controlled by the flags argument.