xref: /netbsd-src/share/man/man3/end.3 (revision ce63d6c20fc4ec8ddc95c84bb229e3c4ecf82b69)
1.\"	@(#)end.3	6.2 (Berkeley) 5/12/86
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\"    notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright
9.\"    notice, this list of conditions and the following disclaimer in the
10.\"    documentation and/or other materials provided with the distribution.
11.\" 3. All advertising materials mentioning features or use of this software
12.\"    must display the following acknowledgement:
13.\"	This product includes software developed by the University of
14.\"	California, Berkeley and its contributors.
15.\" 4. Neither the name of the University nor the names of its contributors
16.\"    may be used to endorse or promote products derived from this software
17.\"    without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\"     @(#)end.3	6.3 (Berkeley) 4/19/91
32.\"
33.Dd April 19, 1991
34.Dt END 3
35.Os
36.Sh NAME
37.Nm end ,
38.Nm etext ,
39.Nm edata
40.Nd end boundaries of image segments
41.Sh SYNOPSIS
42.Vt extern end;
43.Vt extern etext;
44.Vt extern edata;
45.Sh DESCRIPTION
46The global variables
47.Va end , extext
48and
49.Va edata
50correspond to the
51the next address following the end
52of the text segment,
53the initialized data segment and the
54end of the data segment
55.Pq Tn BSS .
56These values are initially set at execution time
57by
58.Xr brk 2 .
59.Sh SEE ALSO
60.Xr brk 2 ,
61.Xr malloc 3
62.Sh HISTORY
63A
64.Nm end
65manual appeared in
66.At v6 .
67