PDELWAPT(3PROC) Process Control Library Functions PDELWAPT(3PROC)

Pdelwapt
remove a watchpoint in a process

Process Control Library (libproc, -lproc)

#include <libproc.h>
int
Pdelwapt(struct ps_prochandle *P, const prwatch_t *wp);

The Pdelwapt() function removes the watchpoint specified by wp from the process represented by the handle P. The watchpoint should have been installed with either Psetwapt(3PROC) or the underlying /proc file system PCWATCH operation.
The Pdelwapt() function only works on running processes, such as those created through Pgrab(3PROC) and Pcreate(3PROC). Attempting to remove a watchpoint from process handles to core files, zombie processes, or ELF objects will fail.

Upon successful completion, the Pdelwapt() function removes the watchpoint and returns 0. Otherwise, -1 is returned, errno is set to indicate the error.

For a full list of possible errors see the DIAGNOSTICS section in proc(4).
The Pdelwapt() function will fail with:
 
 
The handle P refers to a grabbed core file, a zombie process, or an ELF object.

Uncommitted

See LOCKING in libproc(3LIB).

libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC), Pgrab_file(3PROC), Psetwapt(3PROC), proc(4)
May 11, 2016 illumos