BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man3 / end.3
CommitLineData
95f51977 1.\" @(#)end.3 6.2 (Berkeley) 5/12/86
6f9bd087 2.\"
95f51977 3.TH END 3 "May 12, 1986"
6f9bd087
KM
4.AT 3
5.SH NAME
6end, etext, edata \- last locations in program
7.SH SYNOPSIS
8.nf
9.B extern end;
10.B extern etext;
11.B extern edata;
12.fi
13.SH DESCRIPTION
23857c04
KM
14These names refer neither to routines nor to locations with interesting
15contents. The address of
6f9bd087
KM
16.I etext
17is the first address above the program text,
18.I edata
19above the initialized data region, and
20.I end
21above the uninitialized data region.
22.PP
23857c04 23When execution begins, the program break coincides with
6f9bd087 24.I end,
23857c04 25but it is reset by the routines
6f9bd087
KM
26.IR brk (2),
27.IR malloc (3),
28standard input/output
a546532c 29.RI ( stdio (3S)),
6f9bd087
KM
30the profile
31.RB ( \-p )
32option of
33.IR cc (1),
34etc.
23857c04 35The current value of the program break is reliably returned by `sbrk(0)',
6f9bd087
KM
36see
37.IR brk (2).
38.SH "SEE ALSO"
39brk(2), malloc(3)