manual page distributed with 4.1BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 05:54:51 +0000 (21:54 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 16 May 1985 05:54:51 +0000 (21:54 -0800)
SCCS-vsn: share/man/man3/end.3 4.1

usr/src/share/man/man3/end.3 [new file with mode: 0644]

diff --git a/usr/src/share/man/man3/end.3 b/usr/src/share/man/man3/end.3
new file mode 100644 (file)
index 0000000..ba99ff6
--- /dev/null
@@ -0,0 +1,43 @@
+.\"    @(#)end.3       4.1 (Berkeley) %G%
+.\"
+.TH END 3 
+.AT 3
+.SH NAME
+end, etext, edata \- 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 `sbrk(0)',
+see
+.IR brk (2).
+.SH "SEE ALSO"
+brk(2), malloc(3)