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