File:  [Research Unix] / researchv10dc / man / adm / man3 / end.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH END 3
.CT 2 mem_man
.SH NAME
end, etext, edata \(mi last locations in program
.SH SYNOPSIS
.nf
.B extern end;
.B extern etext;
.B extern edata;
.fi
.SH DESCRIPTION
These names refer neither to routines
nor to locations with interesting contents.
The address of
.I etext
is the first address above the program text,
.I edata
above the initialized data region, and
.I end
above the uninitialized data region.
.PP
When execution begins, the program break
coincides with
.I end,
but it is reset by
the routines
.IR brk (2),
.IR malloc (3),
standard input/output
.RI ( stdio (3)),
the profile
.RB ( -p )
option of
.IR cc (1),
etc.
The current value of the program break
is reliably returned by
.BR sbrk(0) ;
see
.IR brk (2).
.SH "SEE ALSO"
.IR brk (2), 
.IR malloc (3),
.IR stdio (3),
.IR cc (1)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.