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/Psetpriv.3proc.man.txt
+++ new/usr/src/man/man3proc/Psetpriv.3proc.man.txt
1 1 PSETPRIV(3PROC) Process Control Library Functions PSETPRIV(3PROC)
2 2
3 3 NAME
4 4 Psetpriv - set process privileges
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 Psetpriv(struct ps_prochandle *P, prpriv_t *pprv);
12 14
13 15 DESCRIPTION
14 16 The Psetpriv() function updates the privileges of the process handle P to
15 17 the set described by pprv. The updated privilege set has restrictions on
16 18 what it may change for a process which are documented in the PCSPRIV
17 19 section of proc(4). In addition, the definition of the prpriv_t
18 20 structure is described in proc(4).
19 21
20 22 The current privilege set for the process may be obtained through a call
21 23 to Ppriv(3PROC).
22 24
23 25 Note, the privilege set may only be updated for active processes.
24 26 Process handles which correspond to core files, zombie processes, and
25 27 files, may not have their privilege sets updated.
26 28
27 29 RETURN VALUES
28 30 Upon successful completion, the Psetpriv() function returns 0 and updates
29 31 the privilege sets of the process. Otherwise, -1 is returned and errno
30 32 is set to indicate the error.
31 33
32 34 ERRORS
33 35 For a full list of possible errors see the DIAGNOSTICS section in
34 36 proc(4).
35 37
36 38 The Psetpriv() function will fail if:
37 39
38 40 EBADF P doesn't refer to an active process, but a core file,
39 41 zombie, or a file.
40 42
41 43 INTERFACE STABILITY
42 44 Uncommitted
43 45
44 46 MT-LEVEL
45 47 See LOCKING in libproc(3LIB).
46 48
47 49 SEE ALSO
48 50 libproc(3LIB), Ppriv(3PROC), proc(4), privileges(5)
49 51
50 52 illumos May 11, 2016 illumos
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX