summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorespie <>1998-11-10 22:27:30 +0000
committerespie <>1998-11-10 22:27:30 +0000
commit7af4f54b73efee5df67dff662470166211acbb71 (patch)
tree838045edb6384d26d7906a1a7a0c09f71b1fbbc9
parent6305298cf8d6711b0977b92f825d3c386f80e8d2 (diff)
downloadopenbsd-7af4f54b73efee5df67dff662470166211acbb71.tar.gz
openbsd-7af4f54b73efee5df67dff662470166211acbb71.tar.bz2
openbsd-7af4f54b73efee5df67dff662470166211acbb71.zip
getenv() result is read-only, unless you're looking for trouble.
-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