1 PDELWAPT(3PROC)        Process Control Library Functions       PDELWAPT(3PROC)
   2 
   3 NAME
   4      Pdelwapt - remove 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      Pdelwapt(struct ps_prochandle *P, const prwatch_t *wp);
  14 
  15 DESCRIPTION
  16      The Pdelwapt() function removes the watchpoint specified by wp from the
  17      process represented by the handle P.  The watchpoint should have been
  18      installed with either Psetwapt(3PROC) or the underlying /proc file system
  19      PCWATCH operation.
  20 
  21      The Pdelwapt() function only works on running processes, such as those
  22      created through Pgrab(3PROC) and Pcreate(3PROC).  Attempting to remove a
  23      watchpoint from process handles to core files, zombie processes, or ELF
  24      objects will fail.
  25 
  26 RETURN VALUES
  27      Upon successful completion, the Pdelwapt() function removes the
  28      watchpoint and returns 0.  Otherwise, -1 is returned, errno is set to
  29      indicate the error.
  30 
  31 ERRORS
  32      For a full list of possible errors see the DIAGNOSTICS section in
  33      proc(4).
  34 
  35      The Pdelwapt() function will fail with:
  36 
  37      ENOENT             The handle P refers to a grabbed core file, a zombie
  38                         process, or an ELF object.
  39 
  40 INTERFACE STABILITY
  41      Uncommitted
  42 
  43 MT-LEVEL
  44      See LOCKING in libproc(3LIB).
  45 
  46 SEE ALSO
  47      libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC),
  48      Pgrab_file(3PROC), Psetwapt(3PROC), proc(4)
  49 
  50 illumos                          May 11, 2016                          illumos