70 lines
1.6 KiB
HTML
70 lines
1.6 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>end(3)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>end(3)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
end, etext, edata - last locations in program
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>extern</STRONG> <STRONG>int</STRONG> <STRONG>etext;</STRONG>
|
|
<STRONG>extern</STRONG> <STRONG>int</STRONG> <STRONG>edata;</STRONG>
|
|
<STRONG>extern</STRONG> <STRONG>int</STRONG> <STRONG>end,</STRONG> <STRONG>_end;</STRONG>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
These names refer neither to routines nor to locations with interesting
|
|
contents. The address of <STRONG>etext</STRONG> is the first address above the program
|
|
text, <STRONG>edata</STRONG> above the initialized data region, and <STRONG>end</STRONG> above the
|
|
uninitialized data region. <STRONG>_end</STRONG> is the same as <STRONG>end</STRONG>, but in the
|
|
implementers name space, i.e. for use in libraries.
|
|
|
|
When execution begins, the program break coincides with <STRONG>end</STRONG>, but it is
|
|
reset by the routines <STRONG><A HREF="../man2/brk.2.html">brk(2)</A></STRONG>, <STRONG><A HREF="../man3/malloc.3.html">malloc(3)</A></STRONG>, standard input/output
|
|
(<STRONG><A HREF="../man3/stdio.3.html">stdio(3)</A></STRONG>), etc. The current value of the program break is reliably
|
|
returned by `<STRONG><A HREF="../man0/sbrk.0.html">sbrk(0)</A></STRONG>', see <STRONG><A HREF="../man2/brk.2.html">brk(2)</A></STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man2/brk.2.html">brk(2)</A></STRONG>, <STRONG><A HREF="../man3/malloc.3.html">malloc(3)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|