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.
19 .Nd get process environment variable
26 .Fa "struct ps_prochandle *P"
27 .Fa "const char *name"
34 function searches the environment of the process handle
36 for the environment variable named
38 If found it copies up to
40 characters of the value, including the null terminator, into the buffer
46 Upon successful completion, the
48 function returns the pointer
50 Otherwise, if the environment variable was not found,
53 .Sh INTERFACE STABILITY