Deleted Added
full compact
33c33
< .\" $FreeBSD: head/lib/libc/stdlib/getenv.3 169146 2007-04-30 19:37:10Z ache $
---
> .\" $FreeBSD: head/lib/libc/stdlib/getenv.3 169177 2007-05-01 16:02:44Z ache $
35c35
< .Dd April 30, 2007
---
> .Dd October 12, 2006
53,54c53,54
< .Fn putenv "char *string"
< .Ft int
---
> .Fn putenv "const char *string"
> .Ft void
59a60,68
> For compatibility with differing environment conventions,
> the given arguments
> .Fa name
> and
> .Fa value
> may be appended and prepended,
> respectively,
> with an equal sign
> .Dq Li \&= .
91,102c100,104
< function takes an argument of the form ``name=value'' and
< puts it directly into the current environment,
< so altering the argument shall change the environment.
< If the variable
< .Fa name
< does not exist in the list,
< it is inserted with the given
< .Fa value .
< If the variable
< .Fa name
< does exist, it is reset to the given
< .Fa value .
---
> function takes an argument of the form ``name=value'' and is
> equivalent to:
> .Bd -literal -offset indent
> setenv(name, value, 1);
> .Ed
122c124
< .Rv -std setenv putenv unsetenv
---
> .Rv -std setenv putenv
125,136d126
< .It Bq Er EINVAL
< The function
< .Fn setenv
< or
< .Fn unsetenv
< failed because the
< .Fa name
< is a
< .Dv NULL
< pointer, points to an empty string, or points to a string containing an
< .Dq Li \&=
< character.
154,160d143
< The
< .Fn setenv ,
< .Fn putenv
< and
< .Fn unsetenv
< functions conforms to
< .St -p1003.1-2001 .