aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2006-11-03 08:38:26 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2006-11-03 08:38:26 +0000
commit9b053d73cd2eb4fa166089b2b1fc5e46938419f5 (patch)
tree0a373c3e99724d67985dd8476c559ccc56808928 /lib
parent27e5dc8960b97acd07ebfea2cc86ae6dad340d9b (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getobjformat.33
-rw-r--r--lib/libc/stdlib/getenv.39
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/gen/getobjformat.3 b/lib/libc/gen/getobjformat.3
index 8705f0166622..051b0099a860 100644
--- a/lib/libc/gen/getobjformat.3
+++ b/lib/libc/gen/getobjformat.3
@@ -116,7 +116,8 @@ vector supplied by the caller are indeterminate.
If the environment variable
.Ev OBJFORMAT
is set, it overrides the default object file format.
-.Ev OBJFORMAT takes precedence over
+.Ev OBJFORMAT
+takes precedence over
.Pa /etc/objformat .
.El
.Sh FILES
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index a75e49fc1155..2f2fabf87af2 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -36,7 +36,7 @@
.\" @(#)getenv.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd December 11, 1993
+.Dd October 12, 2006
.Dt GETENV 3
.Os
.Sh NAME
@@ -75,6 +75,10 @@ The
.Fn getenv
function obtains the current value of the environment variable,
.Fa name .
+The application should not modify the string pointed
+to by the
+.Fn getenv
+function.
.Pp
The
.Fn setenv
@@ -90,8 +94,7 @@ If the variable does exist, the argument
.Fa overwrite
is tested; if
.Fa overwrite
-is
-zero, the
+is zero, the
variable is not reset, otherwise it is reset
to the given
.Fa value .