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

Pdelwaptremove a watchpoint in a process

Process Control Library (libproc, -lproc)

#include <libproc.h>

int
Pdelwapt(struct ps_prochandle *P, const prwatch_t *wp);

The () 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 operation.

The () 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 . Otherwise, is returned, is set to indicate the error.

For a full list of possible errors see the section in proc(5).

The Pdelwapt() function will fail with:

The handle P refers to a grabbed core file, a zombie process, or an ELF object.

See in libproc(3LIB).

libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC), Pgrab_file(3PROC), Psetwapt(3PROC), proc(5)

May 11, 2016 OmniOS