2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PROC_GET_PRIV 3PROC
20 .Nd get process privileges
35 function is a convenient way to read the /proc privilege file for the
40 function takes care of allocating memory for the privilege set and
41 ensures that it is large enough to hold all of the privilege sets.
44 structure may be found in
49 function releases the memory that was allocated by a call to
51 It is safe to pass the
55 the function will simply return without taking any action in that case.
57 Upon successful completion, the
59 function returns a pointer to an allocated
61 with the privileges of
65 is returned to indicate an error occurred.
66 .Sh INTERFACE STABILITY