From 5771e6280ed94b6457e5db9facb5899254e4fb7f Mon Sep 17 00:00:00 2001 From: aaron <> Date: Tue, 29 Jun 1999 18:36:24 +0000 Subject: first round of repairs on stdlib --- src/lib/libc/stdlib/getenv.3 | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/lib/libc/stdlib/getenv.3') 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 @@ .\" 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 -- cgit v1.2.3-55-g6feb