summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/malloc.315
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 8cf547251c..9c4d94db15 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.40 2005/06/07 09:04:42 jmc Exp $ 33.\" $OpenBSD: malloc.3,v 1.41 2005/07/26 04:20:23 jaredy Exp $
34.\" 34.\"
35.Dd August 27, 1996 35.Dd August 27, 1996
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -293,7 +293,10 @@ if successful; otherwise, a null pointer is returned and
293is set to 293is set to
294.Er ENOMEM . 294.Er ENOMEM .
295.Sh ENVIRONMENT 295.Sh ENVIRONMENT
296.Bl -tag -width Ev
297.It Ev MALLOC_OPTIONS
296See above. 298See above.
299.El
297.Sh FILES 300.Sh FILES
298.Bl -tag -width "/etc/malloc.conf" 301.Bl -tag -width "/etc/malloc.conf"
299.It Pa /etc/malloc.conf 302.It Pa /etc/malloc.conf
@@ -318,7 +321,7 @@ option has been specified, warnings will also
318the process. 321the process.
319.Pp 322.Pp
320Here is a brief description of the error messages and what they mean: 323Here is a brief description of the error messages and what they mean:
321.Bl -tag -width Fl 324.Bl -tag -width Ds
322.It Dq (ES): mumble mumble mumble 325.It Dq (ES): mumble mumble mumble
323.Fn malloc 326.Fn malloc
324has been compiled with 327has been compiled with
@@ -346,7 +349,7 @@ internal freelist has been stomped on.
346.El 349.El
347.Pp 350.Pp
348Here is a brief description of the warning messages and what they mean: 351Here is a brief description of the warning messages and what they mean:
349.Bl -tag -width Fl 352.Bl -tag -width Ds
350.It Dq chunk/page is already free. 353.It Dq chunk/page is already free.
351There was an attempt to free a chunk that had already been freed. 354There was an attempt to free a chunk that had already been freed.
352.It Dq junk pointer, too high to make sense. 355.It Dq junk pointer, too high to make sense.
@@ -367,7 +370,11 @@ This pointer probably came from your data or bss segments.
367Nothing has ever been allocated, yet something is being freed or 370Nothing has ever been allocated, yet something is being freed or
368realloc'ed. 371realloc'ed.
369.It Dq modified (chunk-/page-) pointer. 372.It Dq modified (chunk-/page-) pointer.
370The pointer passed to free or realloc has been modified. 373The pointer passed to
374.Fn free
375or
376.Fn realloc
377has been modified.
371.It Dq pointer to wrong page. 378.It Dq pointer to wrong page.
372The pointer that 379The pointer that
373.Fn malloc 380.Fn malloc