source: trunk/minix/man/man3/end.3@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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