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
+++ new/usr/src/man/man3proc/Psetcred.3proc
1 1 .\"
2 2 .\" This file and its contents are supplied under the terms of the
3 3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 4 .\" You may only use this file in accordance with the terms of version
5 5 .\" 1.0 of the CDDL.
6 6 .\"
7 7 .\" A full copy of the text of the CDDL should have accompanied this
8 8 .\" source. A copy of the CDDL is also available via the Internet at
9 9 .\" http://www.illumos.org/license/CDDL.
↓ open down ↓ |
9 lines elided |
↑ open up ↑ |
10 10 .\"
11 11 .\"
12 12 .\" Copyright 2015 Joyent, Inc.
13 13 .\"
14 14 .Dd May 11, 2016
15 15 .Dt PSETCRED 3PROC
16 16 .Os
17 17 .Sh NAME
18 18 .Nm Psetcred
19 19 .Nd set process credentials
20 -.Sh SYNOPSIS
20 +.Sh LIBRARY
21 21 .Lb libproc
22 +.Sh SYNOPSIS
22 23 .In libproc.h
23 24 .Ft int
24 25 .Fo Psetcred
25 26 .Fa "struct ps_prochandle *P"
26 27 .Fa "const prcred_t *credp"
27 28 .Fc
28 29 .Sh DESCRIPTION
29 30 The
30 31 .Fn Psetcred
31 32 function updates the credentials of the process handle
32 33 .Fa P
33 34 to the values set in
34 35 .Fa credp .
35 36 .Fa credp
36 37 must be fully initialized.
37 38 The definition of the
38 39 .Sy prcred_t
39 40 structure may be found in
40 41 .Xr proc 4 .
41 42 .Pp
42 43 Note, the credentials may only be updated for an active process.
43 44 If the process handle refers to a zombie process, core file, or a file, then
44 45 .Fn Psetcred
45 46 will fail.
46 47 .Sh RETURN VALUES
47 48 Upon successful completion, the
48 49 .Fn Psetcred
49 50 function returns
50 51 .Sy 0
51 52 and updates the credentials of the process
52 53 .Fa P .
53 54 Otherwise,
54 55 .Sy -1
55 56 is returned.
56 57 .Sh INTERFACE STABILITY
57 58 .Sy Uncommitted
58 59 .Sh MT-LEVEL
59 60 See
60 61 .Sy LOCKING
61 62 in
62 63 .Xr libproc 3LIB .
63 64 .Sh SEE ALSO
64 65 .Xr libproc 3LIB ,
65 66 .Xr Pcred 3PROC ,
66 67 .Xr proc 4
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX