summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getenv.3
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>1999-06-29 18:36:15 +0000
committeraaron <aaron@openbsd.org>1999-06-29 18:36:15 +0000
commitc5a79f6d698828f596844fbde12b62d467ed1d5a (patch)
tree700f79971495b8a8111e0f399d6e2fc79b9f6766 /lib/libc/stdlib/getenv.3
parentrepairs (diff)
downloadwireguard-openbsd-c5a79f6d698828f596844fbde12b62d467ed1d5a.tar.xz
wireguard-openbsd-c5a79f6d698828f596844fbde12b62d467ed1d5a.zip
first round of repairs on stdlib
Diffstat (limited to 'lib/libc/stdlib/getenv.3')
-rw-r--r--lib/libc/stdlib/getenv.330
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index 79556f30e87..c7858b55b0d 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getenv.3,v 1.4 1999/05/25 13:06:46 aaron Exp $
+.\" $OpenBSD: getenv.3,v 1.5 1999/06/29 18:36:20 aaron Exp $
.\"
.Dd December 11, 1993
.Dt GETENV 3
@@ -60,10 +60,10 @@ host
.Em environment list .
For compatibility with differing environment conventions,
the given arguments
-.Ar name
+.Fa name
and
-.Ar value
-may be appended and prepended,
+.Fa value
+may be appended and prepended,
respectively,
with an equal sign
.Dq Li \&= .
@@ -71,30 +71,30 @@ with an equal sign
The
.Fn getenv
function obtains the current value of the environment variable,
-.Ar name .
+.Fa name .
If the variable
-.Ar name
+.Fa name
is not in the current environment,
a null pointer is returned.
.Pp
The
.Fn setenv
function inserts or resets the environment variable
-.Ar name
+.Fa name
in the current environment list.
If the variable
-.Ar name
+.Fa name
does not exist in the list,
it is inserted with the given
-.Ar value .
+.Fa value .
If the variable does exist, the argument
-.Ar overwrite
+.Fa overwrite
is tested; if
-.Ar overwrite is
-zero, the
-variable is not reset, otherwise it is reset
+.Fa overwrite
+is zero,
+the variable is not reset, otherwise it is reset
to the given
-.Ar value .
+.Fa value .
.Pp
The
.Fn putenv
@@ -122,7 +122,7 @@ is set to indicate the error and a
.Pp
If
.Fn getenv
-is succesful, the string returned should be considered read-only.
+is succesful, the string returned should be considered read-only.
.Sh ERRORS
.Bl -tag -width [ENOMEM]
.It Bq Er ENOMEM