summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/getenv.36
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3
index 24a8d3d095..ed89ccbe7d 100644
--- a/src/lib/libc/stdlib/getenv.3
+++ b/src/lib/libc/stdlib/getenv.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: getenv.3,v 1.2 1996/08/10 05:03:00 tholo Exp $ 36.\" $OpenBSD: getenv.3,v 1.3 1998/11/10 22:27:30 espie Exp $
37.\" 37.\"
38.Dd December 11, 1993 38.Dd December 11, 1993
39.Dt GETENV 3 39.Dt GETENV 3
@@ -119,6 +119,10 @@ return zero if successful; otherwise the global variable
119.Va errno 119.Va errno
120is set to indicate the error and a 120is set to indicate the error and a
121\-1 is returned. 121\-1 is returned.
122.Pp
123If
124.Fn getenv
125is succesful, the string returned should be considered read-only.
122.Sh ERRORS 126.Sh ERRORS
123.Bl -tag -width [ENOMEM] 127.Bl -tag -width [ENOMEM]
124.It Bq Er ENOMEM 128.It Bq Er ENOMEM