Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PCTFLD(3PROC)          Process Control Library Functions         PCTFLD(3PROC)
   2 
   3 NAME
   4      Pctlfd - obtain the process control file descriptor
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Pctlfd(struct ps_prochandle *P);
  12 
  13 DESCRIPTION
  14      The Pctlfd() function returns a file descriptor to the underlying /proc
  15      file system ctl file for the process identified by the handle P.  This
  16      may be used for injecting control operations manually; however, many
  17      interfaces for using it are provided by libproc(3LIB) itself.
  18 
  19      Only live processes have a control file descriptor.  Process handles that
  20      correspond to files and cores, created through Pgrab_file(3PROC) and
  21      Pgrab_core(3PROC), do not have a corresponding file descriptor.
  22 
  23      The file descriptor is invalidated when the process handle is released
  24      through Prelease(3PROC) or if control is lost and the handle is reopened.
  25 
  26 RETURN VALUES
  27      Upon successful completion, the Pctlfd() function returns a valid file
   1 PCTFLD(3PROC)          Process Control Library Functions         PCTFLD(3PROC)
   2 
   3 NAME
   4      Pctlfd - obtain the process control file descriptor
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Pctlfd(struct ps_prochandle *P);
  14 
  15 DESCRIPTION
  16      The Pctlfd() function returns a file descriptor to the underlying /proc
  17      file system ctl file for the process identified by the handle P.  This
  18      may be used for injecting control operations manually; however, many
  19      interfaces for using it are provided by libproc(3LIB) itself.
  20 
  21      Only live processes have a control file descriptor.  Process handles that
  22      correspond to files and cores, created through Pgrab_file(3PROC) and
  23      Pgrab_core(3PROC), do not have a corresponding file descriptor.
  24 
  25      The file descriptor is invalidated when the process handle is released
  26      through Prelease(3PROC) or if control is lost and the handle is reopened.
  27 
  28 RETURN VALUES
  29      Upon successful completion, the Pctlfd() function returns a valid file