summaryrefslogtreecommitdiff
path: root/static/v10/man3/end.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/v10/man3/end.3')
-rw-r--r--static/v10/man3/end.345
1 files changed, 45 insertions, 0 deletions
diff --git a/static/v10/man3/end.3 b/static/v10/man3/end.3
new file mode 100644
index 00000000..c7ec5f6a
--- /dev/null
+++ b/static/v10/man3/end.3
@@ -0,0 +1,45 @@
+.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)