]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/malloc.3
Update description of MALLOC_CHECK_ to include description
[thirdparty/man-pages.git] / man3 / malloc.3
index 86d79afdc24035291951fded1576502cbf81c9cb..1f368457bbc88e48ea462a68683bc76e4d4485db 100644 (file)
@@ -24,7 +24,7 @@
 .\" Clarification concerning realloc, iwj10@cus.cam.ac.uk (Ian Jackson), 950701
 .\" Documented MALLOC_CHECK_, Wolfram Gloger (wmglo@dent.med.uni-muenchen.de)
 .\"
-.TH MALLOC 3  1993-04-04 "GNU" "Linux Programmer's Manual"
+.TH MALLOC 3  2007-06-25 "GNU" "Linux Programmer's Manual"
 .SH NAME
 calloc, malloc, free, realloc \- Allocate and free dynamic memory
 .SH SYNOPSIS
@@ -164,11 +164,15 @@ memory leaks can result.
 If
 .BR MALLOC_CHECK_
 is set to 0, any detected heap corruption is silently ignored;
-if set to 1, a diagnostic is printed on \fIstderr\fp;
+if set to 1, a diagnostic message is printed on \fIstderr\fP;
 if set to 2,
 .BR abort (3)
-is called immediately.
-This can be useful because otherwise
+is called immediately;
+if set to 3, a diagnostic message is printed on \fIstderr\fP
+and the program is aborted.
+Using a non-zero
+.B MALLOC_CHECK_
+value can be useful because otherwise
 a crash may happen much later, and the true cause for the problem
 is then very hard to track down.
 .SH BUGS