summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getenv.3
diff options
context:
space:
mode:
authoraaron <>1999-06-29 18:36:24 +0000
committeraaron <>1999-06-29 18:36:24 +0000
commit5771e6280ed94b6457e5db9facb5899254e4fb7f (patch)
tree95397a7ed19a0cddf5a2ebb73dee20cf20fe2c29 /src/lib/libc/stdlib/getenv.3
parent403f5844d16c63a63b8ce33a354e4871cb93df4c (diff)
downloadopenbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.gz
openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.bz2
openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.zip
first round of repairs on stdlib
Diffstat (limited to 'src/lib/libc/stdlib/getenv.3')
-rw-r--r--src/lib/libc/stdlib/getenv.330
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3
index 79556f30e8..c7858b55b0 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.4 1999/05/25 13:06:46 aaron Exp $ 36.\" $OpenBSD: getenv.3,v 1.5 1999/06/29 18:36:20 aaron Exp $
37.\" 37.\"
38.Dd December 11, 1993 38.Dd December 11, 1993
39.Dt GETENV 3 39.Dt GETENV 3
@@ -60,10 +60,10 @@ host
60.Em environment list . 60.Em environment list .
61For compatibility with differing environment conventions, 61For compatibility with differing environment conventions,
62the given arguments 62the given arguments
63.Ar name 63.Fa name
64and 64and
65.Ar value 65.Fa value
66may be appended and prepended, 66may be appended and prepended,
67respectively, 67respectively,
68with an equal sign 68with an equal sign
69.Dq Li \&= . 69.Dq Li \&= .
@@ -71,30 +71,30 @@ with an equal sign
71The 71The
72.Fn getenv 72.Fn getenv
73function obtains the current value of the environment variable, 73function obtains the current value of the environment variable,
74.Ar name . 74.Fa name .
75If the variable 75If the variable
76.Ar name 76.Fa name
77is not in the current environment, 77is not in the current environment,
78a null pointer is returned. 78a null pointer is returned.
79.Pp 79.Pp
80The 80The
81.Fn setenv 81.Fn setenv
82function inserts or resets the environment variable 82function inserts or resets the environment variable
83.Ar name 83.Fa name
84in the current environment list. 84in the current environment list.
85If the variable 85If the variable
86.Ar name 86.Fa name
87does not exist in the list, 87does not exist in the list,
88it is inserted with the given 88it is inserted with the given
89.Ar value . 89.Fa value .
90If the variable does exist, the argument 90If the variable does exist, the argument
91.Ar overwrite 91.Fa overwrite
92is tested; if 92is tested; if
93.Ar overwrite is 93.Fa overwrite
94zero, the 94is zero,
95variable is not reset, otherwise it is reset 95the variable is not reset, otherwise it is reset
96to the given 96to the given
97.Ar value . 97.Fa value .
98.Pp 98.Pp
99The 99The
100.Fn putenv 100.Fn putenv
@@ -122,7 +122,7 @@ is set to indicate the error and a
122.Pp 122.Pp
123If 123If
124.Fn getenv 124.Fn getenv
125is succesful, the string returned should be considered read-only. 125is succesful, the string returned should be considered read-only.
126.Sh ERRORS 126.Sh ERRORS
127.Bl -tag -width [ENOMEM] 127.Bl -tag -width [ENOMEM]
128.It Bq Er ENOMEM 128.It Bq Er ENOMEM