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


   8      #include <libproc.h>
   9 
  10      int
  11      Pasfd(struct ps_prochandle *P);
  12 
  13 DESCRIPTION
  14      The Pasfd() funtion returns a file descriptor that allows direct access
  15      to the address space of the process handle P.  A defined file descriptor
  16      is provided when using the Pcreate(3PROC), Pgrab(3PROC),
  17      Pgrab_file(3PROC), and Pgrab_core(3PROC) functions.  Note that the
  18      address space may be different in each of these cases and doesn't
  19      necessarily correspond to the /proc as file, except for live processes.
  20      Other means of obtaining a libproc process handle may not define a file
  21      descriptor that contains the address space.
  22 
  23      The returned file descriptor must not be closed and is only valid for as
  24      long as the corresponding process handle P is valid.  After a call to
  25      Prelease(3PROC) the file descriptor is invalidated.
  26 
  27 RETURN VALUES
   1 PASFD(3PROC)           Process Control Library Functions          PASFD(3PROC)
   2 
   3 NAME
   4      Pasfd - obtain the process address space file descriptor
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Pasfd(struct ps_prochandle *P);
  14 
  15 DESCRIPTION
  16      The Pasfd() funtion returns a file descriptor that allows direct access
  17      to the address space of the process handle P.  A defined file descriptor
  18      is provided when using the Pcreate(3PROC), Pgrab(3PROC),
  19      Pgrab_file(3PROC), and Pgrab_core(3PROC) functions.  Note that the
  20      address space may be different in each of these cases and doesn't
  21      necessarily correspond to the /proc as file, except for live processes.
  22      Other means of obtaining a libproc process handle may not define a file
  23      descriptor that contains the address space.
  24 
  25      The returned file descriptor must not be closed and is only valid for as
  26      long as the corresponding process handle P is valid.  After a call to
  27      Prelease(3PROC) the file descriptor is invalidated.
  28 
  29 RETURN VALUES