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