Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib result of getenv should be treated as read-o...



details:   https://anonhg.NetBSD.org/src/rev/a527c79b49f1
branches:  trunk
changeset: 535117:a527c79b49f1
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Aug 10 17:14:50 2002 +0000

description:
result of getenv should be treated as read-only.
from OpenBSD.

diffstat:

 lib/libc/stdlib/getenv.3 |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 8da4ee1f4d25 -r a527c79b49f1 lib/libc/stdlib/getenv.3
--- a/lib/libc/stdlib/getenv.3  Sat Aug 10 17:10:11 2002 +0000
+++ b/lib/libc/stdlib/getenv.3  Sat Aug 10 17:14:50 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getenv.3,v 1.12 2002/02/07 07:00:28 ross Exp $
+.\"    $NetBSD: getenv.3,v 1.13 2002/08/10 17:14:50 yamt Exp $
 .\"
 .\" Copyright (c) 1988, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -37,7 +37,7 @@
 .\"
 .\"     from: @(#)getenv.3     8.2 (Berkeley) 12/11/93
 .\"
-.Dd December 11, 1993
+.Dd August 11, 2002
 .Dt GETENV 3
 .Os
 .Sh NAME
@@ -123,6 +123,10 @@
 .Va errno
 is set to indicate the error and a
 \-1 is returned.
+.Pp
+If
+.Fn getenv
+is successful, the string returned should be considered read-only.
 .Sh ERRORS
 .Bl -tag -width Er
 .It Bq Er ENOMEM



Home | Main Index | Thread Index | Old Index