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/Psetcred.3proc.man.txt
+++ new/usr/src/man/man3proc/Psetcred.3proc.man.txt
1 1 PSETCRED(3PROC) Process Control Library Functions PSETCRED(3PROC)
2 2
3 3 NAME
4 4 Psetcred - set process credentials
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 Psetcred(struct ps_prochandle *P, const prcred_t *credp);
12 14
13 15 DESCRIPTION
14 16 The Psetcred() function updates the credentials of the process handle P
15 17 to the values set in credp. credp must be fully initialized. The
16 18 definition of the prcred_t structure may be found in proc(4).
17 19
18 20 Note, the credentials may only be updated for an active process. If the
19 21 process handle refers to a zombie process, core file, or a file, then
20 22 Psetcred() will fail.
21 23
22 24 RETURN VALUES
23 25 Upon successful completion, the Psetcred() function returns 0 and updates
24 26 the credentials of the process P. Otherwise, -1 is returned.
25 27
26 28 INTERFACE STABILITY
27 29 Uncommitted
28 30
29 31 MT-LEVEL
30 32 See LOCKING in libproc(3LIB).
31 33
32 34 SEE ALSO
33 35 libproc(3LIB), Pcred(3PROC), proc(4)
34 36
35 37 illumos May 11, 2016 illumos
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX