Commit | Line | Data |
---|---|---|
de67e127 TL |
1 | .TH END 3 |
2 | .SH NAME | |
3 | end, 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 | |
11 | These names refer neither to routines | |
12 | nor to locations with interesting contents. | |
13 | The address of | |
14 | .I etext | |
15 | is the first address above the program text, | |
16 | .I edata | |
17 | above the initialized data region, and | |
18 | .I end | |
19 | above the uninitialized data region. | |
20 | .PP | |
21 | When execution begins, the program break | |
22 | coincides with | |
23 | .I end, | |
24 | but resetting the program break by | |
25 | the routines of | |
26 | .IR brk (2), | |
27 | .IR malloc (3), | |
28 | standard input/output | |
29 | .RI ( stdio (3)), | |
30 | the profile | |
31 | .RB ( \-p ) | |
32 | option of | |
33 | .IR cc (1), | |
34 | etc. | |
35 | The current value of the program break | |
36 | is reliably returned by `sbrk(0)', | |
37 | see | |
38 | .IR brk (2). | |
39 | .SH "SEE ALSO" | |
40 | brk(2), malloc(3) |