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/Ppriv.3proc.man.txt
+++ new/usr/src/man/man3proc/Ppriv.3proc.man.txt
1 1 PPRIV(3PROC) Process Control Library Functions PPRIV(3PROC)
2 2
3 3 NAME
4 4 Ppriv, Ppriv_free - get and free process privilege sets
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 Ppriv(struct ps_prochandle *P, prpriv_t **pprv);
12 14
13 15 void
14 16 Ppriv_free(struct ps_prochandle *P, prpriv_t *prv);
15 17
16 18 DESCRIPTION
17 19 The Ppriv() function obtains the privilege set of the process handle P.
18 20 The privilege set, if it exists, will be dynamically allocated and a
19 21 pointer to it will be placed in pprv. It must be released with a call to
20 22 Ppriv_free(). The definition of the prpriv_t structure is documented in
21 23 proc(4).
22 24
23 25 The Ppriv_free() function releases the storage in prv that was allocated
24 26 as a result of calling Ppriv().
25 27
26 28 RETURN VALUES
27 29 Upon successful completion, the Ppriv() function returns 0 and pprv is
28 30 updated with a pointer to the allocated privilege set. Otherwise, -1 is
29 31 returned and pprv is not updated.
30 32
31 33 INTERFACE STABILITY
32 34 Uncommitted
33 35
34 36 MT-LEVEL
35 37 See LOCKING in libproc(3LIB).
36 38
37 39 SEE ALSO
38 40 libproc(3LIB), proc(4), privileges(5)
39 41
40 42 illumos May 11, 2016 illumos
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX