Deleted Added
full compact
getenv.3 (108040) getenv.3 (131504)
1.\" Copyright (c) 1988, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)getenv.3 8.2 (Berkeley) 12/11/93
1.\" Copyright (c) 1988, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)getenv.3 8.2 (Berkeley) 12/11/93
37.\" $FreeBSD: head/lib/libc/stdlib/getenv.3 108040 2002-12-18 13:33:04Z ru $
37.\" $FreeBSD: head/lib/libc/stdlib/getenv.3 131504 2004-07-02 23:52:20Z ru $
38.\"
39.Dd December 11, 1993
40.Dt GETENV 3
41.Os
42.Sh NAME
43.Nm getenv ,
44.Nm putenv ,
45.Nm setenv ,

--- 93 unchanged lines hidden (view full) ---

139Successive calls to
140.Fn setenv
141or
142.Fn putenv
143assigning a differently sized
144.Fa value
145to the same
146.Fa name
38.\"
39.Dd December 11, 1993
40.Dt GETENV 3
41.Os
42.Sh NAME
43.Nm getenv ,
44.Nm putenv ,
45.Nm setenv ,

--- 93 unchanged lines hidden (view full) ---

139Successive calls to
140.Fn setenv
141or
142.Fn putenv
143assigning a differently sized
144.Fa value
145to the same
146.Fa name
147will result in a memory leak. The
147will result in a memory leak.
148The
148.Fx
149semantics for these functions
150(namely, that the contents of
151.Fa value
152are copied and that old values remain accessible indefinitely) make this
149.Fx
150semantics for these functions
151(namely, that the contents of
152.Fa value
153are copied and that old values remain accessible indefinitely) make this
153bug unavoidable. Future versions may eliminate one or both of these
154bug unavoidable.
155Future versions may eliminate one or both of these
154semantic guarantees in order to fix the bug.
155.Sh HISTORY
156The functions
157.Fn setenv
158and
159.Fn unsetenv
160appeared in
161.At v7 .
162The
163.Fn putenv
164function appeared in
165.Bx 4.3 Reno .
156semantic guarantees in order to fix the bug.
157.Sh HISTORY
158The functions
159.Fn setenv
160and
161.Fn unsetenv
162appeared in
163.At v7 .
164The
165.Fn putenv
166function appeared in
167.Bx 4.3 Reno .