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/Pgetenv.3proc.man.txt
+++ new/usr/src/man/man3proc/Pgetenv.3proc.man.txt
1 1 PGETENV(3PROC) Process Control Library Functions PGETENV(3PROC)
2 2
3 3 NAME
4 4 Pgetenv - get process environment variable
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 char *
11 13 Pgetenv(struct ps_prochandle *P, const char *name, char *buf,
12 14 size_t buflen);
13 15
14 16 DESCRIPTION
15 17 The Pgetenv function searches the environment of the process handle P for
16 18 the environment variable named name. If found it copies up to buflen
17 19 characters of the value, including the null terminator, into the buffer
18 20 buf. Everything after the = sign is copied.
19 21
20 22 RETURN VALUES
21 23 Upon successful completion, the Pgetenv() function returns the pointer
22 24 buf. Otherwise, if the environment variable was not found, NULL is
23 25 returned.
24 26
25 27 INTERFACE STABILITY
26 28 Uncommitted
27 29
28 30 MT-LEVEL
29 31 See LOCKING in libproc(3LIB).
30 32
31 33 SEE ALSO
32 34 libproc(3LIB), Penv_iter(3PROC), environ(5)
33 35
34 36 illumos May 11, 2016 illumos
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX