Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Psetwapt.3proc.man.txt
+++ new/usr/src/man/man3proc/Psetwapt.3proc.man.txt
1 1 PSETWAPT(3PROC) Process Control Library Functions PSETWAPT(3PROC)
2 2
3 3 NAME
4 4 Psetwapt - set a watchpoint in a process
5 5
6 -SYNOPSIS
6 +LIBRARY
7 7 Process Control Library (libproc, -lproc)
8 +
9 +SYNOPSIS
8 10 #include <libproc.h>
9 11
10 12 int
11 13 Psetwapt(struct ps_prochandle *P, const prwatch_t *wp);
12 14
13 15 DESCRIPTION
14 16 The Psetwapt() function adds a watchpoint to the process handle P.
15 17 Allowing the hardware to generate a trap when the specified area is
16 18 accessed. The watchpoint's parameters are described in wp. For more
17 19 information on watchpoints and the prwatch_t structure, see the PCWATCH
18 20 section in proc(4). The watched area will persist until a subsequent
19 21 call to Pdelwapt(3PROC).
20 22
21 23 Note, only active processes support watchpoints. It is an error to call
22 24 this function on process handles that correspond to core files, zombie
23 25 processes, or files.
24 26
25 27 RETURN VALUES
26 28 Upon successful completion, the Psetwapt() function returns 0 and
27 29 installs the watchpoint in P. Otherwise, -1 is returned and errno is
28 30 set.
29 31
30 32 ERRORS
31 33 For a full list of possible errors see the DIAGNOSTICS section in
32 34 proc(4).
33 35
34 36 The Psetwapt() function will fail if:
35 37
36 38 ENOENT P does not refer to an active process.
37 39
38 40 INTERFACE STABILITY
39 41 Uncommitted
40 42
41 43 MT-LEVEL
42 44 See LOCKING in libproc(3LIB).
43 45
44 46 SEE ALSO
45 47 libproc(3LIB), Pdelwapt(3PROC), proc(4)
46 48
47 49 illumos May 11, 2016 illumos
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX