| Rev | Line | |
|---|
| [9] | 1 | .\" @(#)end.3 6.2 (Berkeley) 5/12/86
|
|---|
| 2 | .\"
|
|---|
| 3 | .TH END 3 "May 12, 1986"
|
|---|
| 4 | .AT 3
|
|---|
| 5 | .SH NAME
|
|---|
| 6 | end, etext, edata \- last locations in program
|
|---|
| 7 | .SH SYNOPSIS
|
|---|
| 8 | .nf
|
|---|
| 9 | .ft B
|
|---|
| 10 | extern int etext;
|
|---|
| 11 | extern int edata;
|
|---|
| 12 | extern int end, _end;
|
|---|
| 13 | .ft R
|
|---|
| 14 | .fi
|
|---|
| 15 | .SH DESCRIPTION
|
|---|
| 16 | These names refer neither to routines nor to locations with interesting
|
|---|
| 17 | contents. The address of
|
|---|
| 18 | .B etext
|
|---|
| 19 | is the first address above the program text,
|
|---|
| 20 | .B edata
|
|---|
| 21 | above the initialized data region, and
|
|---|
| 22 | .B end
|
|---|
| 23 | above the uninitialized data region.
|
|---|
| 24 | .B _end
|
|---|
| 25 | is the same as
|
|---|
| 26 | .BR end ,
|
|---|
| 27 | but in the implementers name space, i.e. for use in libraries.
|
|---|
| 28 | .PP
|
|---|
| 29 | When execution begins, the program break coincides with
|
|---|
| 30 | .BR end ,
|
|---|
| 31 | but it is reset by the routines
|
|---|
| 32 | .BR brk (2),
|
|---|
| 33 | .BR malloc (3),
|
|---|
| 34 | standard input/output
|
|---|
| 35 | .RB ( stdio (3)),
|
|---|
| 36 | etc.
|
|---|
| 37 | The current value of the program break is reliably returned by `sbrk(0)',
|
|---|
| 38 | see
|
|---|
| 39 | .BR brk (2).
|
|---|
| 40 | .SH "SEE ALSO"
|
|---|
| 41 | .BR brk (2),
|
|---|
| 42 | .BR malloc (3).
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.