Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PSETWAPT(3PROC)        Process Control Library Functions       PSETWAPT(3PROC)
   2 
   3 NAME
   4      Psetwapt - set a watchpoint in a process
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Psetwapt(struct ps_prochandle *P, const prwatch_t *wp);
  12 
  13 DESCRIPTION
  14      The Psetwapt() function adds a watchpoint to the process handle P.
  15      Allowing the hardware to generate a trap when the specified area is
  16      accessed.  The watchpoint's parameters are described in wp.  For more
  17      information on watchpoints and the prwatch_t structure, see the PCWATCH
  18      section in proc(4).  The watched area will persist until a subsequent
  19      call to Pdelwapt(3PROC).
  20 
  21      Note, only active processes support watchpoints.  It is an error to call
  22      this function on process handles that correspond to core files, zombie
  23      processes, or files.
  24 
  25 RETURN VALUES
  26      Upon successful completion, the Psetwapt() function returns 0 and
  27      installs the watchpoint in P.  Otherwise, -1 is returned and errno is
   1 PSETWAPT(3PROC)        Process Control Library Functions       PSETWAPT(3PROC)
   2 
   3 NAME
   4      Psetwapt - set a watchpoint in a process
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Psetwapt(struct ps_prochandle *P, const prwatch_t *wp);
  14 
  15 DESCRIPTION
  16      The Psetwapt() function adds a watchpoint to the process handle P.
  17      Allowing the hardware to generate a trap when the specified area is
  18      accessed.  The watchpoint's parameters are described in wp.  For more
  19      information on watchpoints and the prwatch_t structure, see the PCWATCH
  20      section in proc(4).  The watched area will persist until a subsequent
  21      call to Pdelwapt(3PROC).
  22 
  23      Note, only active processes support watchpoints.  It is an error to call
  24      this function on process handles that correspond to core files, zombie
  25      processes, or files.
  26 
  27 RETURN VALUES
  28      Upon successful completion, the Psetwapt() function returns 0 and
  29      installs the watchpoint in P.  Otherwise, -1 is returned and errno is