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 PROG_GET_CRED 3PROC
19 .Nd get process credentials
32 function is a convenient way to read the /proc cred file for the process
37 supplemental groups will be read and written into
39 in addition to the normal information.
42 is more than one, than it is up to the caller to have allocated enough
45 Callers could allocate it, using an expression similar to:
47 .Dl credp = malloc(sizeof (prcred_t) + (ngroups - 1) * sizeof (gid_t));
51 structure may be found in
54 Upon successful completion, the
60 is returned to indicate an error occurred.
61 .Sh INTERFACE STABILITY